Template:Created with/layout: Difference between revisions
Template page
More actions
first version |
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 |
||
| (17 intermediate revisions by 8 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}}<!- | ||
-->{{#if:{{{text|}}}|{{{ | -->|{{#invoke:Logoform|format|{{{logo}}}|{{#switch:{{{iconsize|}}}|0|-|=0|{{{iconsize}}}}}|{{{ustyle|-}}}}}<!-- | ||
-->{{#if:{{{ | -->|[[File:{{{logo}}}|33x22px]]}} }} <!-- | ||
-->|style=display: | -->{{{text|empty}}}<!-- | ||
-->margin: | -->{{#if:{{{more|}}}|{{{more}}}}}<!-- | ||
--> | -->|{{#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}}<!-- }} | |||
-->;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> | ||