Template:Attribute label: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Alleryn (talk | contribs)
mNo edit summary
AllyBot (talk | contribs)
Bot added info for game version v342, bot version 107. Contact User:Alleryn for issues concerning this bot edit.
Line 1: Line 1:
<noinclude>
<noinclude>
<!-- v341 -->
<!-- v342 -->
<!-- This section has been added automatically by a bot. Please contact [[User:Alleryn]] (check page history for link to user page with contact info) if you believe this section is in error. -->
<!-- This section has been added automatically by a bot. Please contact [[User:Alleryn]] (check page history for link to user page with contact info) if you believe this section is in error. -->
</noinclude>{{ #if: {{{1|}}} |  
</noinclude>{{ #if: {{{1|}}} |  
Line 1,556: Line 1,556:
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Attribute not found</span> }}
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Attribute not found</span> }}
}}|
}}|
http://cdn.projectgorgon.com/v341/icons/icon_<span style="color:red">Error: Attribute not found</span>.png |  
http://cdn.projectgorgon.com/v342/icons/icon_<span style="color:red">Error: Attribute not found</span>.png |  
<span style="color:red">Error: Attribute not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
<span style="color:red">Error: Attribute not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
{{Attribute label/Explanation}}
{{Attribute label/Explanation}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 09:43, 26 March 2021

Description

This accepts an Attribute name as input and returns the in-game label.

Syntax

{{Attribute label|<name>}}

Parameters

<name>
The name of the Attribute. It must match exactly what the Attributes json uses. NOT the Label.

Examples

Basic Use

{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}

{{ #replace:Chance for Thrown Knives to Stick in Corpse| http://cdn.projectgorgon.com/v342/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}