Template:Brand chip: Difference between revisions
IssuePress (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span class="chip brand-chip" style=" | <includeonly><span class="chip brand-chip" style=" | ||
background-color: {{#switch:{{lc:{{{1|}}}}} | |||
| riso = #F8F1FA | |||
| ricoh = #FFF0EF | |||
| gestetner = #FFF3E0 | |||
}}; | |||
border-color: {{#switch:{{lc:{{{1|}}}}} | |||
| riso = #C991D9 | |||
| ricoh = #FF857E | |||
| gestetner = #FFC441 | |||
| riso | }};">{{#switch:{{lc:{{{1|}}}}} | ||
| ricoh | | riso = [[File:Riso-logo-small.png|50px|link=Riso]] | ||
| gestetner | | ricoh = [[File:Ricoh-logo-small.png|50px|link=Ricoh]] | ||
| gestetner = [[File:Gestetner-logo-small.png|50px|link=Gestetner]] | |||
}};"> {{#switch:{{{1|}}} | | #default = {{#if:{{{1|}}}|[[{{{1}}}]]|Generic}} | ||
| riso | }}</span></includeonly><!-- | ||
| ricoh | --><noinclude> | ||
| gestetner | A template to showcase brand links as visually engaging [https://m3.material.io/components/chips/overview chips] to highlight companies important to the stencil printing industry. Currently supports logos for [[Riso]], [[Ricoh]], and [[Gestetner]]. | ||
| #default = | |||
}}</span></includeonly> | Brand chips can be included inline within a paragraph using <code><nowiki>{{Brand chip|riso}}</nowiki></code> to produce a {{Brand chip|riso}} chip. When used this way, they appear smaller to maintain the article's visual flow. | ||
<noinclude> | |||
A template to showcase brand links as visually engaging chips | |||
==Usage== | ==Usage== | ||
<pre> | ===Supported Brands=== | ||
{{Brand chip| | <pre>{{Brand chip|Riso}}</pre><div>{{Brand chip|Riso}}</div> | ||
</pre> | |||
{{Brand chip| | |||
<pre>{{Brand chip|Ricoh}}</pre><div>{{Brand chip|Ricoh}}</div> | |||
<pre>{{Brand chip|gestetner}}</pre><div>{{Brand chip|gestetner}}</div> | |||
===Unsupported Brands=== | |||
If the specified brand is not supported, the chip will display without a color background and include a red link. | |||
<pre>{{Brand chip|Roneo}}</pre><div>{{Brand chip|Roneo}}</div> | |||
If no brand is specified, the chip defaults to "Generic." This fallback is provided for completeness but is not intended for regular use. | |||
<pre> | <pre>{{Brand chip}}</pre><div>{{Brand chip}}</div> | ||
{{Brand chip | |||
</pre> | |||
{{Brand chip | |||
</noinclude> | </noinclude> |
Latest revision as of 15:39, 12 December 2024
A template to showcase brand links as visually engaging chips to highlight companies important to the stencil printing industry. Currently supports logos for Riso, Ricoh, and Gestetner.
Brand chips can be included inline within a paragraph using {{Brand chip|riso}}
to produce a chip. When used this way, they appear smaller to maintain the article's visual flow.
Usage
Supported Brands
{{Brand chip|Riso}}
{{Brand chip|Ricoh}}
{{Brand chip|gestetner}}
Unsupported Brands
If the specified brand is not supported, the chip will display without a color background and include a red link.
{{Brand chip|Roneo}}
If no brand is specified, the chip defaults to "Generic." This fallback is provided for completeness but is not intended for regular use.
{{Brand chip}}
Generic