Template:MainIDW

From MediaWiki
Jump to navigation Jump to search

Use this template to link to a non-Transformers character's article on the IDW Hasbro Wiki.

{{MainIDW|Scarlett}}
Main article{{#if:|s}}: Scarlett{{#if:
 |{{#if:|, | and }}[[idwhasbro:{{{2}}}|{{{2}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{3}}}|{{{3}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{4}}}|{{{4}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{5}}}|{{{5}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{6}}}|{{{6}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{7}}}|{{{7}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{8}}}|{{{8}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{9}}}|{{{9}}}]]}}{{#if:

|, and [[idwhasbro:{{{10}}}|{{{10}}}]]}}{{#if: | (too many parameters in {{main}})}} on the IDW Hasbro Wiki

This template can list 10 articles this way. To set the display text of those links, use the named arguments l1-l10.

{{Main
 |Micronauts (comic)
 |ROM (comic)
 |l1=Micronauts
 |l2=ROM
}}
Main article{{#if:ROM (comic)|s}}: Micronauts{{#if:ROM (comic)
 |{{#if:|, | and }}ROM}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{3}}}|{{{3}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{4}}}|{{{4}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{5}}}|{{{5}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{6}}}|{{{6}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{7}}}|{{{7}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{8}}}|{{{8}}}]]}}{{#if:
 |{{#if:|, |, and }}[[idwhasbro:{{{9}}}|{{{9}}}]]}}{{#if:

|, and [[idwhasbro:{{{10}}}|{{{10}}}]]}}{{#if: | (too many parameters in {{main}})}} on the IDW Hasbro Wiki

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.