Difference between revisions of "Template:Badge"

From WPRDC Wiki
Jump to navigation Jump to search
>AKlapper (WMF)
m (11 revisions imported from meta:Template:Badge: See phab:T231001)
>Krinkle
 
(11 intermediate revisions by 4 users not shown)
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>
<!-- The outer <div class="mw-parser-output"> is necessary because the <indicator> tag
===Example===
  -- doesn't currently include class="mw-parser-output" (see T188443) -->
{| class="wikitable"
<onlyinclude><div class="mw-parser-output"><templatestyles src="Template:Badge/styles.css"/><div class="tpl-badge {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}}>{{{content}}}</div></div></onlyinclude>
|-
{{Documentation}}
! 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>

Latest revision as of 23:42, 30 August 2021

{{{content}}}

Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.