Template:Created with/layout: Difference between revisions
Template page
More actions
use dir parser function in one more place |
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 |
||
| (One intermediate revision by one other user not shown) | |||
| Line 3: | Line 3: | ||
-->|{{#invoke:Logoform|format|{{{logo}}}|{{#switch:{{{iconsize|}}}|0|-|=0|{{{iconsize}}}}}|{{{ustyle|-}}}}}<!-- | -->|{{#invoke:Logoform|format|{{{logo}}}|{{#switch:{{{iconsize|}}}|0|-|=0|{{{iconsize}}}}}|{{{ustyle|-}}}}}<!-- | ||
-->|[[File:{{{logo}}}|33x22px]]}} }} <!-- | -->|[[File:{{{logo}}}|33x22px]]}} }} <!-- | ||
--> | -->{{{text|empty}}}<!-- | ||
-->{{#if:{{{more|}}}|{{{more}}}}}<!-- | -->{{#if:{{{more|}}}|{{{more}}}}}<!-- | ||
-->|style=display: | -->|{{#if:{{{text|}}}|lang={{#bcp47:{{{lang|{{USERLANGUAGE}}}}}}}|}}<!-- | ||
-->|{{#if:{{{text|}}}|dir={{#dir:{{{lang|{{USERLANGUAGE}}}}}}}|}}<!-- | |||
-->|style=display:table;width:{{{width|auto}}};vertical-align:middle;<!-- | |||
-->direction:{{#dir:{{{lang|{{int:lang}}}}}}};float:{{#ifeq:{{#dir:{{{lang|{{int:lang}}}}}}}|rtl|right|left}}<!-- }} | -->direction:{{#dir:{{{lang|{{int:lang}}}}}}};float:{{#ifeq:{{#dir:{{{lang|{{int:lang}}}}}}}|rtl|right|left}}<!-- }} | ||
-->;line-height:{{{h|2}}}2px;height:{{{h|2}}}4px;font-size:.96em;<!-- modify these attributes: | -->;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;<!-- | -->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> | -->{{{style|}}}<!-- class=createdwithtemplate;layouttemplate -->}}<noinclude> | ||
{{Documentation|{{ifsandbox|doc}}}} | {{Documentation|{{ifsandbox|doc}}}} | ||
</noinclude> | </noinclude> | ||