Difference between revisions of "Template:Badge"
Jump to navigation
Jump to search
>Paladox |
>AKlapper (WMF) m (11 revisions imported from meta:Template:Badge: See phab:T231001) |
||
Line 1: | Line 1: | ||
< | <includeonly><span style="border-radius: 3px; border: 1px solid #CCC; color: inherit; padding: .2em; font-weight:bold; font-size:80%; text-decoration:none; background-color:{{#switch:{{{1|}}}|1=#FFC|2=#FCC|3=#FCF|4=#CCF|5=#CFF|6=#CFC|0=transparent}}">{{{2}}}</span></includeonly><noinclude> | ||
===Example=== | |||
{| class="wikitable" | |||
|- | |||
! code !! output | |||
|- | |||
{{ | ||<tt><nowiki>{{badge|1|Hello}}</nowiki></tt>||{{badge|1|Hello}} | ||
|- | |||
||<tt><nowiki>{{badge|2|Hello}}</nowiki></tt>||{{badge|2|Hello}} | |||
|- | |||
||<tt><nowiki>{{badge|3|Hello}}</nowiki></tt>||{{badge|3|Hello}} | |||
|- | |||
||<tt><nowiki>{{badge|4|Hello}}</nowiki></tt>||{{badge|4|Hello}} | |||
|- | |||
||<tt><nowiki>{{badge|5|Hello}}</nowiki></tt>||{{badge|5|Hello}} | |||
|- | |||
||<tt><nowiki>{{badge|6|Hello}}</nowiki></tt>||{{badge|6|Hello}} | |||
|- | |||
||<tt><nowiki>{{badge|0|Hello}}</nowiki></tt>||{{badge|0|Hello}} | |||
|- | |||
|} | |||
[[Category:Research templates]] | |||
</noinclude> | </noinclude> |
Revision as of 12:38, 2 September 2019
Example
code | output |
---|---|
{{badge|1|Hello}} | Hello |
{{badge|2|Hello}} | Hello |
{{badge|3|Hello}} | Hello |
{{badge|4|Hello}} | Hello |
{{badge|5|Hello}} | Hello |
{{badge|6|Hello}} | Hello |
{{badge|0|Hello}} | Hello |