Template:Brand chip: Difference between revisions

From stencil.wiki
No edit summary
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="
font-size:1rem;
background-color: {{#switch:{{lc:{{{1|}}}}}
line-height: 1rem;
| riso = #F8F1FA
display:inline-block;
| ricoh = #FFF0EF
border-radius: .5rem;
| gestetner = #FFF3E0
padding:.5rem .75rem;
}};
font-weight: 500;
border-color: {{#switch:{{lc:{{{1|}}}}}
vertical-align: middle;  
| riso = #C991D9
color: black;
| ricoh = #FF857E
background-color: {{#switch:{{{1|}}}
| gestetner = #FFC441
| riso||Riso = #F8F1FA
}};">{{#switch:{{lc:{{{1|}}}}}
| ricoh||Ricoh = #FFF0EF
| riso = [[File:Riso-logo-small.png|50px|link=Riso]]
| gestetner||Gestetner = #FFF3E0
| ricoh = [[File:Ricoh-logo-small.png|50px|link=Ricoh]]
| #default = #F8F9FA
| gestetner = [[File:Gestetner-logo-small.png|50px|link=Gestetner]]
}};"> {{#switch:{{{1|}}}
| #default = {{#if:{{{1|}}}|[[{{{1}}}]]|Generic}}
| riso||Riso = [[File:Riso-logo-small.png|50px|link=Riso]]
}}</span></includeonly><!--
| ricoh||Ricoh = [[File:Ricoh-logo-small.png|50px|link=Ricoh]]
--><noinclude>
| gestetner||Gestetner = [[File:Gestetner-logo-small.png|50px|link=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 = No brand specified
 
}}</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, adding a splash of color to highlight companies in the stencil printer industry. Currently supports [[Riso]], [[Ricoh]], and [[Gestetner]].


==Usage==
==Usage==
<pre>
===Supported Brands===
{{Brand chip|Riso}}  
<pre>{{Brand chip|Riso}}</pre><div>{{Brand chip|Riso}}</div>
</pre>
 
{{Brand chip|Riso}}
 
<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>
 


<pre>
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|Ricoh}}
</pre>
{{Brand chip|Ricoh}}


<pre>
<pre>{{Brand chip}}</pre><div>{{Brand chip}}</div>
{{Brand chip|Gestetner}}  
</pre>
{{Brand chip|Gestetner}}
</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