Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) |
||
Line 9: | Line 9: | ||
{{Code|<nowiki>{{Item|Echo}}s</nowiki>}} returns... {{Return|{{Item|Echo}}s}} | {{Code|<nowiki>{{Item|Echo}}s</nowiki>}} returns... {{Return|{{Item|Echo}}s}} | ||
...which is undesirable. | ...which is undesirable. | ||
Instead, use {{Code|<nowiki>{{Item|Echo|s}}</nowiki>}} to | Instead, use {{Code|<nowiki>{{Item|Echo|s}}</nowiki>}} to return: {{Return|{{Item|Echo|s}}}} |
Revision as of 18:16, 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
Item
to create a link to a Item article, so it must be a page that exists. There is no valiation. - If set to
s
will adjust the returned text as pluralized for words that don't simply slap an "s" on the end,Echo
andSummon/Compile
. It has no effect when used iwth other initial parameters.
Returns
{{Item|Echo}}
returns:
{{Item|Echo}}s
returns...
...which is undesirable.
Instead, use {{Item|Echo|s}}
to return: