Difference between revisions of "Template:Main"
m |
GrampaSwood (talk | contribs) |
||
(56 intermediate revisions by 35 users not shown) | |||
Line 1: | Line 1: | ||
− | : | + | {{hatnote|1={{lang |
− | |{{#if:{{{3|}}}|, | | + | | ar = :المقالة الأساسية |
− | |{{#if:{{{4|}}}|, |, | + | | cs = {{#if:{{{2|}}}|Původní články|Původní článek}}: |
− | |{{#if:{{{5|}}}|, |, | + | | da = {{#if:{{{2|}}}|Hovedartikler|Hovedartikel}}: |
− | |{{#if:{{{6|}}}|, |, | + | | de = Hauptartikel: |
− | |{{#if:{{{7|}}}|, |, | + | | en = Main article{{#if:{{{2|}}}|s}}: |
− | |{{#if:{{{8|}}}|, |, | + | | es = {{#if:{{{2|}}}|Artículos principales|Artículo principal}}: |
− | |{{#if:{{{9|}}}|, |, | + | | fi = Pääartikkeli{{#if:{{{2|}}}|t}}: |
− | |{{#if:{{{10|}}}|, |, | + | | fr = {{#if:{{{2|}}}|Articles principaux|Article principal}} : |
− | |, | + | | ja = もっと詳しく: |
− | {{ | + | | hu = Részletek a következő szócikk{{#if:{{{2|}}}|ek}}ben: |
− | + | | it = {{#if:{{{2|}}}|Articoli principali|Articolo principale}}: | |
+ | | ko = 본문: | ||
+ | | nl = Hoofdartikel: | ||
+ | | no ={{#if:{{{2|}}}|Hovedartikler|Hovedartikkel}}: | ||
+ | | pl = {{#if:{{{2|}}}|Osobne artykuły|Osobny artykuł}}: | ||
+ | | pt = {{#if:{{{2|}}}|Artigos principais|Artigo principal}}: | ||
+ | | pt-br = {{#if:{{{2|}}}|Artigos principais|Artigo principal}}: | ||
+ | | ro = {{#if:{{{2|}}}|Articole principale|Articol principal}}: | ||
+ | | 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|}}}|, |, }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | ||
+ | |{{#if:{{{4|}}}|, |, }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | ||
+ | |{{#if:{{{5|}}}|, |, }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | ||
+ | |{{#if:{{{6|}}}|, |, }}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}} | ||
+ | |{{#if:{{{7|}}}|, |, }}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}} | ||
+ | |{{#if:{{{8|}}}|, |, }}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}} | ||
+ | |{{#if:{{{9|}}}|, |, }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | ||
+ | |{{#if:{{{10|}}}|, |, }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | ||
+ | |{{#if:{{{11|}}}|, |, }}[[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11|}}} | ||
+ | |, [[{{{11}}}|{{{l11|{{{11}}}}}}]]}}''{{#if:{{{12| }}}| <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 == | ||
+ | * {{tlx|main|Soldier}} generates: | ||
+ | {{main|Soldier}} | ||
+ | * For alternate title use this: <code><nowiki>{{main|Article|l1=Alternate title}}</nowiki></code>. | ||
+ | ** To use this for translations: <code><nowiki>{{main|Article/</nowiki>''lang''<nowiki>|l1=</nowiki>''Translated title''<nowiki>}}</nowiki></code>. | ||
+ | {{Hatnote templates list}} | ||
+ | |||
+ | [[Category:Formatting templates|Main]] | ||
</noinclude> | </noinclude> |
Latest revision as of 12:24, 15 July 2024
Main article: [[{{{1}}}|{{{1}}}]]
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Main/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: 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 (add) |
Documentation for this template is available at Template:Main on Wikipedia. |
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}}
.
- To use this for translations:
See also
{{See also}}
– link to a related article inline.{{Main}}
– "main article" template.{{Other uses}}
– "other uses" template.{{Redirects here}}
– "redirects here" template.{{For Classic article}}
– use on TF2 pages to link to the TFC/QTF article.{{For TF2 article}}
– use on TFC/QTF pages to link to the TF2 article.{{Hatnote}}
– plain hatnote template, no predefined text.{{Obtain note}}
– for use on achievement pages.