| Mr. Johnson (talk | contribs) No edit summary | Mr. Johnson (talk | contribs)  No edit summary | ||
| Line 6: | Line 6: | ||
| #* {{code|ammo}} can be substituted for {{code|Ammunition}} | #* {{code|ammo}} can be substituted for {{code|Ammunition}} | ||
| #* {{code|modification}} and {{code|mod}} can be substituted for {{Code|Gear Modification}} | #* {{code|modification}} and {{code|mod}} can be substituted for {{Code|Gear Modification}} | ||
| # If set to {{Code|s}} will adjust the returned text as pluralized for words that don't simply slap an "s" on the end, {{code|Echo}} and {{Code|Summon/Compile}}. It has no effect when used  | # If set to {{Code|s}} will adjust the returned text as pluralized for words that don't simply slap an "s" on the end, {{code|Echo}} and {{Code|Summon/Compile}}. It has no effect when used with other initial parameters. | ||
| ==Returns== | ==Returns== | ||
| {{Code|<nowiki>{{Item|Echo}}</nowiki>}} returns: {{Return|{{Item|Echo}}}} | {{Code|<nowiki>{{Item|Echo}}</nowiki>}} returns: {{Return|{{Item|Echo}}}} | ||
Revision as of 18:18, 1 December 2023
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 for- Ammunition
- modificationand- modcan be substituted for- Gear Modification
 
- If set to swill adjust the returned text as pluralized for words that don't simply slap an "s" on the end,EchoandSummon/Compile. It has no effect when used with other initial parameters.
Returns
{{Item|Echo}} returns: 
{{Item|Echo}}s returns... 
...which is undesirable.
Instead, use {{Item|Echo|s}} to return: 
