Template:Main: Difference between revisions
Template page
More actions
I misunderstood how <div> and <span> work - the <span> was a totally separate element. |
Redo: Wrap {{hatnote}} properly, using its CSS. This obviates the duplicate #switch. |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<div class="noprint" lang="{{BCP47|{{{lang|}}}}}" dir="auto"> | <div class="noprint" lang="{{BCP47|{{{lang|}}}}}" dir="auto"> | ||
{{Hatnote|{{#switch:{{{lang|{{PAGELANGUAGE}}}}} | {{Hatnote|class={{#switch:{{{lang|{{PAGELANGUAGE}}}}} | ||
|ja|ko|wuu|yue|zh|zh-hans|zh-hant= | |ja|ko|wuu|yue|zh|zh-hans|zh-hant=noitalic<!--no italics--> | ||
|#default=}}<!-- | |#default=}}|<!-- | ||
-->{{int|wm-commonstrings-mainarticle-prompt| |{{#if:{{{2|}}}|2|1}}}}<!-- | -->{{int|wm-commonstrings-mainarticle-prompt| |{{#if:{{{2|}}}|2|1}}}}<!-- | ||
--> | -->{{List | ||
| uselang = {{{lang|}}} | | uselang = {{{lang|}}} | ||
| 1 = <bdi lang="">[[{{{1|<noinclude>Example</noinclude>}}}]]</bdi> | | 1 = <bdi lang="">[[{{{1|<noinclude>Example</noinclude>}}}]]</bdi> | ||