Template:Main
From Zapbots
Jump to navigationJump to search
Use this template when an external article is directly relevant to a sub-section on a page.
{{Main|List of Beast Wars Episodes}}
|{{#if:|, | and }}[[{{{2}}}|{{{2}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{3}}}|{{{3}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{4}}}|{{{4}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{5}}}|{{{5}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{6}}}|{{{6}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{7}}}|{{{7}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{8}}}|{{{8}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{9}}}|{{{9}}}]]}}{{#if:
|, and [[{{{10}}}|{{{10}}}]]}}{{#if: | (too many parameters in {{main}})}}
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 }}
|{{#if:|, | and }}Jazz}}{{#if: |{{#if:|, |, and }}[[{{{3}}}|{{{3}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{4}}}|{{{4}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{5}}}|{{{5}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{6}}}|{{{6}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{7}}}|{{{7}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{8}}}|{{{8}}}]]}}{{#if: |{{#if:|, |, and }}[[{{{9}}}|{{{9}}}]]}}{{#if:
|, and [[{{{10}}}|{{{10}}}]]}}{{#if: | (too many parameters in {{main}})}}
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.