Difference between revisions of "Template:Main"

From Team Fortress Wiki
Jump to: navigation, search
m
 
(46 intermediate revisions by 31 users not shown)
Line 1: Line 1:
:''{{lang
+
{{hatnote|1={{lang
   | cs = Původní článek{{#if:{{{2|}}}|s}}
+
  | ar = :المقالة الأساسية
   | en = Main article{{#if:{{{2|}}}|s}}
+
   | cs = {{#if:{{{2|}}}|Původní články|Původní článek}}:
   | hu = Részletek a következő szócikk{{#if:{{{2|}}}|ek}}ben
+
  | da = {{#if:{{{2|}}}|Hovedartikler|Hovedartikel}}:
   | it = {{#if:{{{2|}}}|Articoli principali|Articolo principale}}
+
  | de = Hauptartikel:
   | pl = {{#if:{{{2|}}}|Osobne artykuły|Osobny artykuł}}
+
   | en = Main article{{#if:{{{2|}}}|s}}:
   | pt = Artigo principal{{#if:{{{2|}}}|s}}
+
  | es = {{#if:{{{2|}}}|Artículos principales|Artículo principal}}:
   | ru = {{#if:{{{2|}}}Основные статьи|Основная статья}}
+
  | fi = Pääartikkeli{{#if:{{{2|}}}|t}}:
   | fr = {{#if:{{{2|}}}|Articles principaux|Article principal}}
+
  | fr = {{#if:{{{2|}}}|Articles principaux|Article principal}} :
   }}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
+
  | ja = もっと詳しく:
  |{{#if:{{{3|}}}|, | {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
+
   | hu = Részletek a következő szócikk{{#if:{{{2|}}}|ek}}ben:
  |{{#if:{{{4|}}}|, |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
+
   | it = {{#if:{{{2|}}}|Articoli principali|Articolo principale}}:
  |{{#if:{{{5|}}}|, |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
+
  | ko = 본문:
  |{{#if:{{{6|}}}|, |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}}
+
  | nl = Hoofdartikel:
  |{{#if:{{{7|}}}|, |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}}
+
  | no ={{#if:{{{2|}}}|Hovedartikler|Hovedartikkel}}:
  |{{#if:{{{8|}}}|, |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}}
+
   | pl = {{#if:{{{2|}}}|Osobne artykuły|Osobny artykuł}}:
  |{{#if:{{{9|}}}|, |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
+
   | pt = {{#if:{{{2|}}}|Artigos principais|Artigo principal}}:
  |{{#if:{{{10|}}}|, |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|fr=et}} }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
+
  | pt-br = {{#if:{{{2|}}}|Artigos principais|Artigo principal}}:
  |, {{lang|en=and|it=e|pl=i|ru=и|hu=és|it=et}} [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]][[Category:ERROR]]&#125;&#125;)}}<noinclude>
+
  | ro = {{#if:{{{2|}}}|Articole principale|Articol principal}}:
{{translation switching|cs, fr, hu, it, pl, pt, ru}}
+
   | ru = {{#if:{{{2|}}}Основные статьи|Основная статья}}:
 
+
   | sv = Huvudartik{{#if:{{{2|}}}|lar|el}}:
 +
   | tr = Ana madde{{#if:{{{2|}}}|ler}}:
 +
  | zh-hans = 主条目:
 +
  | zh-hant = 主條目:
 +
  }} [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
 +
  |{{#if:{{{3|}}}|,&#32;|,&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 +
  |{{#if:{{{4|}}}|,&#32;|,&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 +
  |{{#if:{{{5|}}}|,&#32;|,&#32;}}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
 +
  |{{#if:{{{6|}}}|,&#32;|,&#32;}}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}}
 +
  |{{#if:{{{7|}}}|,&#32;|,&#32;}}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}}
 +
  |{{#if:{{{8|}}}|,&#32;|,&#32;}}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}}
 +
  |{{#if:{{{9|}}}|,&#32;|,&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 +
  |{{#if:{{{10|}}}|,&#32;|,&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
 +
  |{{#if:{{{11|}}}|,&#32;|,&#32;}}[[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11|}}}
 +
|,&#32;[[{{{11}}}|{{{l11|{{{11}}}}}}]]}}''{{#if:{{{12| }}}|&#32;<span class="error">ERROR {{tl|main}}: too many articles linked.[[Category:ERROR Template:Main]]</span>}}
 +
|style={{{style|}}}}}<noinclude>
 +
{{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}}
 +
{{Wikipedia doc}}
 +
{{Doc begin}}
 +
For usage under headers to link to the main article of a subject. Supports 11 articles.
 
== Usage ==
 
== Usage ==
 
* {{tlx|main|Soldier}} generates:
 
* {{tlx|main|Soldier}} generates:
 
{{main|Soldier}}
 
{{main|Soldier}}
 
* For alternate title use this: <code><nowiki>{{main|Article|l1=Alternate title}}</nowiki></code>.
 
* For alternate title use this: <code><nowiki>{{main|Article|l1=Alternate title}}</nowiki></code>.
* For full documentation see [[wikipedia:Template:Main/doc]].
+
** To use this for translations: <code><nowiki>{{main|Article/</nowiki>''lang''<nowiki>|l1=</nowiki>''Translated title''<nowiki>}}</nowiki></code>.
* See also: {{tl|see also}}, {{tl|hatnote}}
+
 
 +
{{Hatnote templates list}}
  
 
[[Category:Formatting templates|Main]]
 
[[Category:Formatting templates|Main]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:24, 15 July 2024

Main article: [[{{{1}}}|{{{1}}}]]

Documentation for Main

For usage under headers to link to the main article of a subject. Supports 11 articles.

Usage

  • {{main|Soldier}} generates:
Main article: Soldier
  • For alternate title use this: {{main|Article|l1=Alternate title}}.
    • To use this for translations: {{main|Article/lang|l1=Translated title}}.

See also