Difference between revisions of "Template:Badge"

From WPRDC Wiki
Jump to navigation Jump to search
>Paladox
>AKlapper (WMF)
m (11 revisions imported from meta:Template:Badge: See phab:T231001)
Line 1: Line 1:
<div style="{{#switch: {{{align|}}}
<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>
| right= float: right; clear: right; margin: 0 0 0.5em 0.5em;
===Example===
| left= float: left; clear: left; margin: 0 0 0.5em 0.5em;
{| class="wikitable"
| middle
|-
| center= margin: 0.5em auto;
! code !! output
}} background-color: {{{bg-color|#E7EFF5}}}; {{{border|border: 1px solid #A1CEF5}}}; padding: 5px 8px; {{border-radius|10px}} {{{style|}}}; text-align: center;">{{{content}}}</div><noinclude>
|-
{{TNT|Documentation}}
||<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