Difference between revisions of "Template:Infobox Weapon/tags/doc"

From Sunrust Wiki
Jump to navigation Jump to search
 
Line 5: Line 5:
<code><nowiki>{{Template:Infobox_Weapon/tags|(TEXT)}}</nowiki></code>
<code><nowiki>{{Template:Infobox_Weapon/tags|(TEXT)}}</nowiki></code>


<!-- Others (Note: the argument "tags" will also parse for weapon type) -->
(TEXT) = It creates an image if the text is in argument 1.<br>
(TEXT) = It creates an image if the text is in argument 1.<br>
Available Matches:  
{| class="wikitable"
* fire
|+ Available matches
* acid
! Parameter || Result
* serrate (bleed)
|-
* frost
| style="width:1em" | fire
* soften
| {{Template:Infobox_Weapon/tags|(fire)}}
* electro
|-
* sap
| acid || {{Template:Infobox_Weapon/tags|(acid)}}
* soften
|-
* bounty
| serrate || {{Template:Infobox_Weapon/tags|(serrate)}}
* hinder
|-
* spotted
| frost|| {{Template:Infobox_Weapon/tags|(frost)}}
|-
| electro|| {{Template:Infobox_Weapon/tags|(electro)}}
|-
| sap|| {{Template:Infobox_Weapon/tags|(sap)}}
|-
| soften|| {{Template:Infobox_Weapon/tags|(soften)}}
|-
| bounty|| {{Template:Infobox_Weapon/tags|(bounty)}}
|-
| hinder|| {{Template:Infobox_Weapon/tags|(hinder)}}
|-
| spotted|| {{Template:Infobox_Weapon/tags|(spotted)}}
|-
! colspan=2 | Category Exclusive Matches<br><span style="font-weight: normal;">Is automatically done with values calc.<br>Can be disabled if <code>nocat</code> is true<br>If <code>nocat</code> is false, it will require these tags</span>
|-
! Parameter || Description
|-
| melee || Defines the weapon as melee
|-
| gun || Defines the weapon as gun
|-
| medtool || Defines the weapon as medical tool, e.g.: Medical Kit, Critical Care
|-
| heal || Defines the weapon as weapon with healing implemented.
|-
| consumable || Defines the weapon as consumable, e.g.: Grenades.
|}
Note: This template has case-sensitive arguments, i.e., putting in capital letters will not work.
Note: This template has case-sensitive arguments, i.e., putting in capital letters will not work.



Latest revision as of 18:24, 22 December 2021

This template is used for implementing which "Innate" the weapon has.

Usage

{{Template:Infobox_Weapon/tags|(TEXT)}}

(TEXT) = It creates an image if the text is in argument 1.

Available matches
Parameter Result
fire Innate Fire
acid Innate Acid
serrate Inflicts Serrate
frost Innate Ice
electro Innate Electro
sap Innate Sap
soften Innate Soften
bounty Innate Bounty
hinder Innate Hinder
spotted Innate Spotted
Category Exclusive Matches
Is automatically done with values calc.
Can be disabled if nocat is true
If nocat is false, it will require these tags
Parameter Description
melee Defines the weapon as melee
gun Defines the weapon as gun
medtool Defines the weapon as medical tool, e.g.: Medical Kit, Critical Care
heal Defines the weapon as weapon with healing implemented.
consumable Defines the weapon as consumable, e.g.: Grenades.

Note: This template has case-sensitive arguments, i.e., putting in capital letters will not work.

Example

Wikitext Result
{{Template:Infobox_Weapon/tags|(bountyfire)}}
Innate FireInnate Bounty
{{Template:Infobox_Weapon/tags|(BOUNTYFIRE)}}
{{Template:Infobox_Weapon/tags|(BOUNTYFIREfrosthinder)}}
Innate IceInnate Hinder
{{Template:Infobox_Weapon/tags|(zselectrozsacidzs)}}
Innate ElectroInnate Acid
{{Template:Infobox_Weapon/tags|(acidacidacidshockfire)}}
Innate FireInnate ElectroInnate Acid