Template:Created with/layout: Difference between revisions
Template page
More actions
m Protected "Template:Created with/layout": Widely used template: User_talk:JoKalliauer#Please_protect ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
fulfilling edit request by User:Derbeth – replace Template:lang (which adds an inappropriate "description" class) with direct lang= and dir= attributes (and also use {{USERLANGUAGE}} instead of {{int:lang}} while we’re at it, see T4085); previously tested on the sandbox at Special:Diff/1098484891 |
||
| (13 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
{{#tag: | {{#tag:div|{{#switch:{{{logo|-}}}|-|=|#default=<!-- when there is a logo, it can be a file - or a Unicode codepoint | ||
--> | -->{{#if:{{#switch:{{padleft:|2|{{{logo}}}}}|U+|&#=1}}{{#switch:{{{iconsize|}}}|0|-|=|1}}<!- | ||
--> | -->|{{#invoke:Logoform|format|{{{logo}}}|{{#switch:{{{iconsize|}}}|0|-|=0|{{{iconsize}}}}}|{{{ustyle|-}}}}}<!-- | ||
-->|[[File:{{{logo}}}|33x22px]]}} }} <!-- | |||
-->{{{text|empty}}}<!-- | |||
-->{{#if:{{{more|}}}|{{{more}}}}}<!-- | -->{{#if:{{{more|}}}|{{{more}}}}}<!-- | ||
-->|style=display: | -->|{{#if:{{{text|}}}|lang={{#bcp47:{{{lang|{{USERLANGUAGE}}}}}}}|}}<!-- | ||
-->float:{{# | -->|{{#if:{{{text|}}}|dir={{#dir:{{{lang|{{USERLANGUAGE}}}}}}}|}}<!-- | ||
-->line-height: | -->|style=display:table;width:{{{width|auto}}};vertical-align:middle;<!-- | ||
-->margin:0px;padding:2px 4px 2px 6px;color:#000;background:#F8F9FA;border:1px solid #BAB;<!-- | -->direction:{{#dir:{{{lang|{{int:lang}}}}}}};float:{{#ifeq:{{#dir:{{{lang|{{int:lang}}}}}}}|rtl|right|left}}<!-- }} | ||
-->{{{style|}}}<!-- class=createdwithtemplate;layouttemplate | -->;line-height:{{{h|2}}}2px;height:{{{h|2}}}4px;font-size:.96em;<!-- modify these attributes: | ||
{{ | -->margin:0px;padding:2px 4px 2px 6px;color:var(--color-base,#000);background:var(--background-color-neutral-subtle,#F8F9FA);border:1px solid #BAB;border-collapse:separate;border-spacing:0px;<!-- | ||
-->{{{style|}}}<!-- class=createdwithtemplate;layouttemplate -->}}<noinclude> | |||
{{Documentation|{{ifsandbox|doc}}}} | |||
</noinclude> | </noinclude> | ||