Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
<includeonly><onlyinclude>{{#switch:{{{1|}}} | <includeonly><onlyinclude>{{#switch:{{{1|}}} | ||
| ammo = [[Ammunition Item|Ammo]] | | ammo = [[Ammunition Item|Ammo]] | ||
| modification | |||
| mod = [[Gear Modification Item|Modification]] | |||
| #default = [[{{{1}}} Item|{{{1}}}]] | | #default = [[{{{1}}} Item|{{{1}}}]] | ||
{{</onlyinclude></includeonly> | {{</onlyinclude></includeonly> | ||
Revision as of 16:33, 1 December 2023
Template:Item
Template:Item simplyfies the wiki syntax for creating shortened, more readable links to Item articles.
Usage
It accepts one mandatory string parameter and one optional string parameter.
- Will be combined with the string
Itemto create a link to a Item article, so it must be a page that exists.ammocan be substituted forAmmunitionmodificationandmodcan be substituted forGear Modification
- If set to
swill adjust the returned text as pluralized for words that don't simply slap an "s" on the end:Echo,Quality,Summon/Compile, andCompile. It has no effect when used with other initial parameters.
Returns
{{Item|Echo}} returns: {{#switch:Echo
| ammo = Ammo | modification | mod = Modification | #default = Echo
{{{{Item|Echo}}s returns... {{#switch:Echo
| ammo = Ammo | modification | mod = Modification | #default = Echo
{{s...which is undesirable.
Instead, use{{Item|Echo|s}} to return: {{#switch:Echo
| ammo = Ammo | modification | mod = Modification | #default = Echo
{{The documentation above was transcluded from Template:Item/Documentation. [ edit ]
