Mr. Johnson (talk | contribs) |
Mr. Johnson (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
It accepts one {{Parameter|mandatory|string}} and one {{parameter|optional|string}}. | It accepts one {{Parameter|mandatory|string}} and one {{parameter|optional|string}}. | ||
# Will be combined with the string {{Code| Item}} to create a link to a {{Category|Item}} article, so it must be a page that exists. | # Will be combined with the string {{Code| Item}} to create a link to a {{Category|Item}} article, so it must be a page that exists. | ||
# 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|ammo}} can be substituted for {{Code|Ammunition}} | ||
#* {{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}}, {{Code|Quality}}, {{Code|Summon/Compile}}, and {{Code|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}}}} | ||
Latest revision as of 05:37, 3 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 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:
{{Item|Echo}}s returns...
...which is undesirable.
Instead, use {{Item|Echo|s}} to return:
