Template:Main: Difference between revisions
mNo edit summary |
VibranceBot (talk | contribs) m (use Template:sup) |
||
(29 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude> | ||
{{Documentation/sandbox|doc = | |||
When an article is large, it is often written in summary style. This template is used after the heading of the summary, to link to the subtopic article that has been summarized. | |||
==Usage== | |||
===Parameters=== | |||
;<code>1</code> {{sup|required}} | |||
:The name of the first page that you want to link to. | |||
;<code>2</code> | |||
:The name of the second page that you want to link to. | |||
;<code>3</code> | |||
:The name of the third page that you want to link to. | |||
:A maximum of 3 pages will be displayed. | |||
;<code>l1</code> | |||
:What the first linked page is to be displayed as. | |||
;<code>l2</code> | |||
:What the second linked page is to be displayed as. | |||
;<code>l3</code> | |||
:What the third linked page is to be displayed as. | |||
:A maximum of 3 links will be displayed. | |||
==Examples== | |||
*{{tll|Main|Project Zomboid Wiki}} | |||
{{Main|Project Zomboid Wiki}} | |||
*{{tll|Main|Project Zomboid Wiki|l1{{=}}Main}} | |||
{{Main|Project Zomboid Wiki|l1=Main}} | |||
*{{tll|Main|Project Zomboid Wiki|Items}} | |||
{{Main|Project Zomboid Wiki|Items}} | |||
{{Translation guide|<syntaxhighlight lang="html"> | |||
{{#switch: {{{1}}} | |||
| main_article = Main article | |||
| main_articles = Main articles | |||
| #default = [[Category:Incorrect template usage]] | |||
}} | |||
</syntaxhighlight>}} | |||
==See also== | |||
*{{ll|Template:About}} | |||
*{{ll|Template:See}} | |||
*{{ll|Template:Main/core}} | |||
}} | |||
{{ll|Category:Templates}} | |||
</noinclude><includeonly>{{#if: {{{1|}}} | |||
| :''{{tt|name = Main | |||
| default = Main article{{#if: {{{2|}}}|s|}} | |||
| arg1 = main_article{{#if: {{{2|}}}|s|}} | |||
}}: {{Main/core|{{{1}}}|{{{l1|}}}}}{{#if: {{{2|}}} | |||
| , {{Main/core|{{{2}}}|{{{l2|}}}}} | |||
}}{{#if: {{{3|}}} | |||
| , {{Main/core|{{{3}}}|{{{l3|}}}}} | |||
}}'' | |||
| [[Category:Incorrect template usage]] | |||
}}</includeonly> |
Latest revision as of 04:49, 8 January 2024
When an article is large, it is often written in summary style. This template is used after the heading of the summary, to link to the subtopic article that has been summarized.
Usage
Parameters
1
Required- The name of the first page that you want to link to.
2
- The name of the second page that you want to link to.
3
- The name of the third page that you want to link to.
- A maximum of 3 pages will be displayed.
l1
- What the first linked page is to be displayed as.
l2
- What the second linked page is to be displayed as.
l3
- What the third linked page is to be displayed as.
- A maximum of 3 links will be displayed.
Examples
{{Main|Project Zomboid Wiki}}
- Main article: Project Zomboid Wiki
{{Main|Project Zomboid Wiki|l1=Main}}
- Main article: Main
{{Main|Project Zomboid Wiki|Items}}
- Main articles: Project Zomboid Wiki, Items
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1}}}
| main_article = Main article
| main_articles = Main articles
| #default = [[Category:Incorrect template usage]]
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.