Template:Main: Difference between revisions
Jump to navigation
Jump to search
(New documentation style.) |
m (Text replacement - "[[{{{" to "[[:{{{") |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{dablink|Main article{{#if:{{{2|}}}|s}}: '''[[{{{1}}}|{{{ | {{dablink|Main article{{#if:{{{2|}}}|s}}: '''[[:{{{1}}}|{{{t1|{{{1}}}}}}]]'''{{#if:{{{2| }}} | ||
|{{#if:{{{3|}}}|, | and }}'''[[{{{2}}}|{{{ | |{{#if:{{{3|}}}|, | and }}'''[[:{{{2}}}|{{{t2|{{{2}}}}}}]]'''}}{{#if:{{{3|}}} | ||
|{{#if:{{{4|}}}|, |, and }}'''[[{{{3}}}|{{{ | |{{#if:{{{4|}}}|, |, and }}'''[[:{{{3}}}|{{{t3|{{{3}}}}}}]]'''}}{{#if:{{{4|}}} | ||
|{{#if:{{{5|}}}|, |, and }}'''[[{{{4}}}|{{{ | |{{#if:{{{5|}}}|, |, and }}'''[[:{{{4}}}|{{{t4|{{{4}}}}}}]]'''}}{{#if:{{{5|}}} | ||
|, and '''[[{{{5}}}|{{{ | |, and '''[[:{{{5}}}|{{{t5|{{{5}}}}}}]]'''}}.{{#if:{{{6| }}}|  (too many parameters in {{tem|Main}})}}}}<noinclude> | ||
==Info== | ==Info== | ||
Line 15: | Line 15: | ||
| '''Yes''' || || Link 1 || Link to the main article. | | '''Yes''' || || Link 1 || Link to the main article. | ||
|- | |- | ||
! | ! t1 | ||
| No || || Text 1 || Text to display on the link to the main article. | | No || || Text 1 || Text to display on the link to the main article. | ||
|- | |- | ||
Line 21: | Line 21: | ||
| No || || Alternative links || Alternative links to other main articles. | | No || || Alternative links || Alternative links to other main articles. | ||
|- | |- | ||
! | ! t2 - t5 | ||
| No || || Alternative text || Text to display on the alternative links. | | No || || Alternative text || Text to display on the alternative links. | ||
|} | |} | ||
== | ==Skeleton== | ||
<pre> | <pre> | ||
{{main|<link>| | {{main|<link>|t1=<text>|<other links>|t*=<other links' text>}} | ||
</pre> | </pre> | ||
Line 37: | Line 37: | ||
| {{main|Main Page}} | | {{main|Main Page}} | ||
|- | |- | ||
| <pre>{{main|Main Page| | | <pre>{{main|Main Page|t1=The front page}}</pre> | ||
| {{main|Main Page| | | {{main|Main Page|t1=The front page}} | ||
|- | |- | ||
| <pre>{{main | | <pre>{{main | ||
|Main Page|Talk:Main Page|Pikipedia:About | |Main Page|Talk:Main Page|Pikipedia:About | ||
| | |t2=Main Page talk|t3=About Pikipedia}}</pre> | ||
| {{main|Main Page|Talk:Main Page|Pikipedia:About| | | {{main|Main Page|Talk:Main Page|Pikipedia:About|t2=Main Page talk|t3=About Pikipedia}} | ||
|} | |} | ||
[[Category: | [[Category:Disambiguation link templates]]</noinclude> | ||
</noinclude> |
Latest revision as of 11:37, June 2, 2023
- Main article: [[:{{{1}}}|{{{1}}}]].
Info
This template adds a link to the main article for the subheading it is placed in.
Parameters
Parameter | Mandatory | Default | Purpose | Detailed description |
---|---|---|---|---|
1 | Yes | Link 1 | Link to the main article. | |
t1 | No | Text 1 | Text to display on the link to the main article. | |
2 - 5 | No | Alternative links | Alternative links to other main articles. | |
t2 - t5 | No | Alternative text | Text to display on the alternative links. |
Skeleton
{{main|<link>|t1=<text>|<other links>|t*=<other links' text>}}
Examples
Code | Result |
---|---|
{{main|Main Page}} |
|
{{main|Main Page|t1=The front page}} |
|
{{main |Main Page|Talk:Main Page|Pikipedia:About |t2=Main Page talk|t3=About Pikipedia}} |
|