Template:Main: Difference between revisions
Jump to navigation
Jump to search
m (Includeonly the template to avoid errors on the template pages) |
Revo admin (talk | contribs) m (1 revision imported: Wikipedia Infoboxes (Hopefully working this time)) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>:<div class="noprint">''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} | ||
{{ | |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | ||
< | |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | ||
|{{#if:{{{5|}}}|, |, and }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | |||
|{{#if:{{{6|}}}|, |, and }}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}} | |||
|{{#if:{{{7|}}}|, |, and }}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}} | |||
|{{#if:{{{8|}}}|, |, and }}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}} | |||
|{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | |||
|{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | |||
|, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div></includeonly><noinclude> | |||
Use this template when an external article is directly relevant to a sub-section on a page. | |||
<tt><nowiki>{{Main|List of Beast Wars Episodes}}</nowiki></tt> | |||
{{Main|List of Beast Wars episodes}} | |||
This template can list 10 articles this way. To set the display text of those links, use the named arguments l1-l10. | |||
<tt><pre><nowiki>{{Main | |||
|Optimus Prime (G1) | |||
|Jazz (G1) | |||
|l2=Optimus Prime | |||
|l2=Jazz | |||
}}</nowiki></pre></tt> | |||
{{Main|Optimus Prime (G1)|Jazz (G1)|l1=Optimus Prime|l2=Jazz}} | |||
'''Note:''' Unlike many other templates <tt><nowiki>{{main}}</nowiki></tt> ''cannot'' be spread across multiple lines; it is shown that way in the above example for clarity. No, I don't know why— it's a Wikipedia template. | |||
[[Category:Templates|Main]] | |||
</noinclude> | </noinclude> |
Latest revision as of 17:43, 29 October 2023
Use this template when an external article is directly relevant to a sub-section on a page.
{{Main|List of Beast Wars Episodes}}
This template can list 10 articles this way. To set the display text of those links, use the named arguments l1-l10.
{{Main |Optimus Prime (G1) |Jazz (G1) |l2=Optimus Prime |l2=Jazz }}
Note: Unlike many other templates {{main}} cannot be spread across multiple lines; it is shown that way in the above example for clarity. No, I don't know why— it's a Wikipedia template.