Template:Ink card: Difference between revisions
IssuePress (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
===Simple=== | ===Simple=== | ||
<pre> | <pre> | ||
{{ | {{Ink card|Burgundy}} | ||
</pre> | </pre> | ||
{{ | {{Ink card|Burgundy}} | ||
===Advanced=== | ===Advanced=== | ||
You can also use this template to pull in full categories of inks, such as all [[:Category:Riso inks|Riso inks]]: | You can also use this template to pull in full categories of inks, such as all Standard-series [[:Category:Riso inks|Riso inks]]: | ||
<pre> | <pre> | ||
{{#arraymaptemplate:{{#ask:[[Category:Riso_inks]] | {{#arraymaptemplate:{{#ask:[[Category:Riso_inks]] | ||
[[Has series::Standard]] | |||
|format=plainlist | |format=plainlist | ||
|headers=hide | |headers=hide | ||
|link=none | |link=none | ||
|limit=100 | |limit=100 | ||
}}| | }}|Ink card|,|}} | ||
</pre> | </pre> | ||
{{#arraymaptemplate:{{#ask:[[Category:Riso_inks]] | {{#arraymaptemplate:{{#ask:[[Category:Riso_inks]] | ||
[[Has series::Standard]] | |||
|format=plainlist | |format=plainlist | ||
|headers=hide | |headers=hide | ||
|link=none | |link=none | ||
|limit=100 | |limit=100 | ||
}}| | }}|Ink card|,|}} | ||
</noinclude> | </noinclude> | ||
<includeonly><div class="ink-card-wrapper" style="position:relative; margin-bottom: 1rem; background: #f8f9fa;border-radius:.75rem; overflow: hidden;border: 1px solid #F1F3F5;"> | <includeonly><div class="ink-card-wrapper" style="position:relative; margin-bottom: 1rem; background: #f8f9fa;border-radius:.75rem; overflow: hidden;border: 1px solid #F1F3F5;"> | ||
<div class="color-ramp text-{{#ifexpr:{{#invoke:Color|csvrgbToLum|{{#show: {{{1}}} |? Has rgb#}}}}>75|black|white}}" style="background-color:rgba({{#show: {{{1}}} |? Has rgb#}},1);border-color:rgba({{#show: {{{1}}} |? Has rgb#}},1); display: flex; flex-direction:row; width:100%;box-sizing: border-box;"> | <div class="color-ramp text-{{#ifexpr:{{#invoke:Color|csvrgbToLum|{{#show: {{{1}}} |? Has rgb#}}}}>75|black|white}}" style="background-color:rgba({{#show: {{{1}}} |? Has rgb#}},1);border-color:rgba({{#show: {{{1}}} |? Has rgb#}},1); display: flex; flex-direction:row; width:100%;box-sizing: border-box;"> | ||
<div class="p100" style="width:55%;display: inline-flex; align-items:center; justify-content: flex-start; padding: 1rem;"><span class="title" style="font-size: 1.25rem; line-height: 1.25rem;">[[{{{1}}}]]</span></div> | <div class="p100" style="width:55%;display: inline-flex; align-items:center; justify-content: flex-start; padding: 1rem;"><span class="title" style="font-size: 1.25rem; line-height: 1.25rem;">{{#ifeq:{{{1}}}|{{PAGENAME}}|{{{1}}}|[[{{{1}}}]]}}</span></div> | ||
<div class="p75" style="width:15%; background-color: rgba(250,250,250,.25);display: inline-flex; align-items:center; justify-content: flex-end; padding: 1rem"><span style="font-size: .75rem; line-height: .75rem;">75%</span></div> | <div class="p75" style="width:15%; background-color: rgba(250,250,250,.25);display: inline-flex; align-items:center; justify-content: flex-end; padding: 1rem"><span style="font-size: .75rem; line-height: .75rem;">75%</span></div> | ||
<div class="p50" style="width:15%; background-color: rgba(250,250,250,.5);display: inline-flex; align-items:center; justify-content: flex-end; padding: 1rem;"><span style="font-size: .75rem; line-height: .75rem;">50%</span></div> | <div class="p50" style="width:15%; background-color: rgba(250,250,250,.5);display: inline-flex; align-items:center; justify-content: flex-end; padding: 1rem;"><span style="font-size: .75rem; line-height: .75rem;">50%</span></div> | ||
Latest revision as of 17:52, 29 November 2025
A template for displaying inks as simple color ramps.
Usage
Simple
{{Ink card|Burgundy}}
Advanced
You can also use this template to pull in full categories of inks, such as all Standard-series Riso inks:
{{#arraymaptemplate:{{#ask:[[Category:Riso_inks]]
[[Has series::Standard]]
|format=plainlist
|headers=hide
|link=none
|limit=100
}}|Ink card|,|}}