m (typo) |
(Allow omission of all parameters and use #sub parser function to determine mod name) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{{1}}} modicon |
+ | <includeonly>[[{{{1|{{ #sub: {{PAGENAME}} | 8 | -4 }}}}}|{{{2|{{{1|{{ #sub: {{PAGENAME}} | 8 | -4 }}}}}}}}]] modicon. |
[[Category:Modicons]]</includeonly><noinclude>{{Documentation}}</noinclude> |
[[Category:Modicons]]</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 02:56, 4 December 2020
This template should be transcluded when uploading or modifying modicons. It is meant to standardize the format of modicon file summaries. For simple usage, {{Modicon}}
can be used to automatically link to the mod page if the filename is in the EXACT format of File:Modicon (mod).png
.
Parameters
- 1: (Optional) The wikilink to replace the content before "modicon". If not set, will default to the name extracted from the form
File:Modicon (mod).png
to get the mod name. - 2: (Optional) The link text to show when displaying the wikilink
Examples
{{Modicon|Crop Dusting}}
produces
[[Crop Dusting]] modicon [[Category:Modicons]]
The above documentation is transcluded from Template:Modicon/doc. (edit | history)