Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main: Difference between revisions

Template page
mark template language machine-readably, use template language for language-dependent things instead of page language
Redo: Wrap {{hatnote}} properly, using its CSS. This obviates the duplicate #switch.
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if: {{{1|<noinclude>Example</noinclude>}}} |
<div class="noprint" lang="{{BCP47|{{{lang|}}}}}" dir="auto">
<div class="noprint" lang="{{BCP47|{{{lang|}}}}}" dir="auto">
: {{#switch:{{{lang|}}}
{{Hatnote|class={{#switch:{{{lang|{{PAGELANGUAGE}}}}}
|ja|ko|wuu|yue|zh|zh-hans|zh-hant=<!--no italics-->
|ja|ko|wuu|yue|zh|zh-hans|zh-hant=noitalic<!--no italics-->
|#default=''}}{{#if: {{{2|}}}
|#default=}}|<!--
| {{{Main articles|Main articles}}}
-->{{int|wm-commonstrings-mainarticle-prompt|&#32;|{{#if:{{{2|}}}|2|1}}}}<!--
| {{{Main article|Main article}}}
-->{{List
}}{{colon|{{{lang|}}}}}{{#switch:{{{lang|}}}
|ja|ko|wuu|yue|zh|zh-hans|zh-hant=<!--no italics-->
|#default=''}}{{List
  | uselang = {{{lang|}}}
  | uselang = {{{lang|}}}
  | 1 = <bdi lang="">[[{{{1|<noinclude>Example</noinclude>}}}]]</bdi>
  | 1 = <bdi lang="">[[{{{1|<noinclude>Example</noinclude>}}}]]</bdi>
Line 20: Line 16:
  | {{#if:{{{9|}}}||void}}9 = {{#if:{{{9|}}} | <bdi lang="">[[{{{9|}}}]]</bdi> }}
  | {{#if:{{{9|}}}||void}}9 = {{#if:{{{9|}}} | <bdi lang="">[[{{{9|}}}]]</bdi> }}
  | =
  | =
}}<!--
}}}}<!--
-->{{#if: {{{10|}}} | [[Category:Template:Main/too many parameters]] }}
-->{{#if: {{{10|}}} | [[Category:Template:Main/too many parameters]] }}
</div>
</div><noinclude>{{documentation|Template:Main/doc}}</noinclude>
}}<noinclude>{{documentation|Template:Main/doc}}</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.