Difference between revisions of "Template:Badge"

From WPRDC Wiki
Jump to navigation Jump to search
>Fbstj
m (fix)
>Krinkle
 
(13 intermediate revisions by 6 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: {{{bg-color|#E7EFF5}}}; {{{border|border: 1px solid #A1CEF5}}}; padding: 5px 8px; {{border-radius|10px}} {{{style|}}}; text-align: center;">{{{content}}}</div><noinclude>
 
<templatedata>
{
"description": "",
"paramOrder": [
"content",
"align",
"bg-color",
"border",
"style"
],
"params": {
"align": {
"label": "Alignment",
"description": "How to align the badge, either left, right or middle/center ",
"type": "string",
"required": true
},
"bg-color": {
"label": "Background color",
"description": "A CSS color string",
"type": "string",
"default": "#E7EFF5"
},
"border": {
"label": "Border style",
"description": "A CSS border style string",
"type": "string",
"default": "border: 1px solid #A1CEF5"
},
"style": {
"label": "Extra style",
"description": "Extra CSS for the badge's style tag.",
"type": "string",
"default": "10px"
},
"content": {
"label": "Contents",
"description": "The badge's content",
"type": "content",
"required": true
}
}
}
</templatedata>
</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.