Template:MainTF

From Zapbots
Jump to navigationJump to search

Use this template to link to a Transformers character's article on TFWiki.

{{MainTF|Minimus Ambus}}
File:TFWikiFavicon.png Main article{{#if:|s}}: Minimus Ambus{{#if:
 |{{#if:|, | and }}[[transformers:{{{2}}}|{{{2}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{3}}}|{{{3}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{4}}}|{{{4}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{5}}}|{{{5}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{6}}}|{{{6}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{7}}}|{{{7}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{8}}}|{{{8}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{9}}}|{{{9}}}]]}}{{#if:

|, and [[transformers:{{{10}}}|{{{10}}}]]}}{{#if: | (too many parameters in {{main}})}} on TFWiki

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)
 |Ironhide (G1)
 |l1=Optimus Prime
 |l2=Ironhide
}}
File:TFWikiFavicon.png Main article{{#if:Ironhide (G1)|s}}: Optimus Prime{{#if:Ironhide (G1)
 |{{#if:|, | and }}Ironhide}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{3}}}|{{{3}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{4}}}|{{{4}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{5}}}|{{{5}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{6}}}|{{{6}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{7}}}|{{{7}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{8}}}|{{{8}}}]]}}{{#if:
 |{{#if:|, |, and }}[[transformers:{{{9}}}|{{{9}}}]]}}{{#if:

|, and [[transformers:{{{10}}}|{{{10}}}]]}}{{#if: | (too many parameters in {{main}})}} on TFWiki

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.