Template:Mod: Difference between revisions
(Added documentation.) |
(Testing of additional argument) |
||
Line 1: | Line 1: | ||
<indicator name="mod"><div style="font-size: | <indicator name="mod"><div style="font-size:70%; | ||
text-align:center; | text-align:center; | ||
float:right; | float:right; | ||
Line 13: | Line 13: | ||
background:#FFFFff; | background:#FFFFff; | ||
padding-left:1em; | padding-left:1em; | ||
padding-right:1em;"> | padding-right:1em;"><abbr title="This page is about the following mod:">{{#switch:{{{1}}} | ||
{{#switch:{{{1}}} | |||
|Boats = [[:category:Boats|MOD Boats]] | |Boats = [[:category:Boats|MOD Boats]] | ||
|Folding Parts pack = [[:category:Folding Parts pack|MOD Folding]] | |Folding Parts pack = [[:category:Folding Parts pack|MOD Folding]] | ||
Line 20: | Line 19: | ||
|PRM = [[:category:Pisskop's Rebalancing Mod|PKs Reimagining]] | |PRM = [[:category:Pisskop's Rebalancing Mod|PKs Reimagining]] | ||
|#default={{{1|Mod}}} | |#default={{{1|Mod}}} | ||
}}{{#switch:{{{1}}} | }}<!-- | ||
Comment: this prints the secondary argument on a new line in the mod box. Allows for more specific comments than just the mod name above. | |||
-->{{#if:{{{2|}}}|<br />{{{2}}} }}<!-- | |||
--></abbr>{{#switch:{{{1}}} | |||
|Boats = [[category:Boats]] | |Boats = [[category:Boats]] | ||
|Folding Parts pack = [[category:Folding Parts pack]] | |Folding Parts pack = [[category:Folding Parts pack]] |
Revision as of 22:16, 7 November 2017
Use this template to add an infobox describing the mod in the upper right corner, and to automatically add the mods category page.
How to use
Just add
{{Mod|Crazy}}
to a page if you want to list it as being part of the Crazy Cataclysm mod.
Please add the mod template to the bottom of the page, next to any category definitions and headers is preferred. And if the page has a noinclude part, try to put the template in there, otherwise other pages can falsely get the version template included.
Possible arguments
- 'Boats' - called 'Boats' ingame.
- 'Folding Parts pack' - called 'Folding Parts pack'.
- 'Crazy' - Crazy Cataclysm mod.
- 'PRM' - Pisskop's Rebalancing Mod, called 'PK's Reimagining' ingame.
What not to do
Don't try to keep mod pages up to date for different versions. Always update the wiki for the latest experimental version. Keeping a list of changes is no problem, as long as you use Template:InlineVer to reference to a version, and don't mention versions directly.
Don't add multiple mod templates to one page. A page can only have one mod infobox. (and a ver infobox).
See also
- The Template:InlineVer, used to create a reference to a specific version without creating the infobox, and tagging the page as being of that version.
- The Template:ver, used to create an infobox with the page's version information.