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
Revision as of 16:31, 1 December 2023 by Mr. Johnson (talk | contribs)
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.

  1. Will be combined with the string  Item to create a link to a Item article, so it must be a page that exists.
    • ammo can be substituted for Ammunition
    • modification and mod can be substituted for Gear Modification
  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, Quality, Summon/Compile, and Compile. It has no effect when used with other initial parameters.

Returns

{{Item|Echo}} returns:
{{#switch:Echo

| ammo = Ammo | #default = Echo

{{
{{Item|Echo}}s returns...
{{#switch:Echo

| ammo = Ammo | #default = Echo

{{s

...which is undesirable.

Instead, use {{Item|Echo|s}} to return:
{{#switch:Echo

| ammo = Ammo | #default = Echo

{{

The documentation above was transcluded from Template:Item/Documentation.