Anonymous
×
Create a new article
Write your page title here:
We currently have 55 articles on SR5 Foundry VTT System Wiki. Type your article name above or click on one of the titles below and start writing!



SR5 Foundry VTT System Wiki

Template:Item/Documentation: Difference between revisions

(Created page with "<includeonly><!--Template Subcategories--></includeonly> {{Template|Item}} simplyfies the wiki syntax for creating shortened, more readable links to {{Category|Item}} articles. ==Usage== 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. There is no valiation. # If set to {{Code|s}} will adjust the ret...")
 
No edit summary
Line 4: Line 4:
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|&nbsp;Item}} to create a link to a {{Category|Item}} article, so it must be a page that exists. There is no valiation.
# Will be combined with the string {{Code|&nbsp;Item}} to create a link to a {{Category|Item}} article, so it must be a page that exists. There is no valiation.
# If set to {{Code|s}} will adjust the returned text as pluralized for words that don't simply slap an "s" on the end.
# 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 iwth 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 16:58, 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.

  1. 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.
  2. If set to s will adjust the returned text as pluralized for words that don't simply slap an "s" on the end, Echo and Summon/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 returns: