Difference between revisions of "Template:Badge"

18 bytes added ,  23:42, 30 August 2021
no edit summary
>Krinkle
(Only used by Template:Ptag. Use its style as the default and reduce config options. It's a simple thing. If another template needs something else, it should create its own rather than needlessly inherit from here.)
>Krinkle
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="{{#switch: {{{align|}}}
<!-- The outer <div class="mw-parser-output"> is necessary because the <indicator> tag
| right= float: right; clear: right; margin: 0 0 0.5em 0.5em;
  -- doesn't currently include class="mw-parser-output" (see T188443) -->
| left= float: left; clear: left; margin: 0 0 0.5em 0.5em;
<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>
| middle
{{Documentation}}
| center= margin: 0.5em auto;
}} background-color: #eaf3ff; padding: 5px 8px; border-radius: 10px; text-align: center; {{{style|}}}">{{{content}}}</div><noinclude>
{{TNT|Documentation}}
</noinclude>
Anonymous user