Template:ParserTest

Revision as of 07:29, 19 June 2017 by M3lkor (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Attributes

Armor(a)

Disp

Attributes=3,8,4,1,20,2,3
Detection 3; Gossip 8; Stability; Stun Immunity; Tinkering 20; Wisdom 2; Shield

Sel

{{#invoke:Attributes|Sel|3,8,4,1,20,2,3|a|tinkering|21|ne}}:
Tinkering != 21: 1

Weapon(w)

Disp

Attributes = 3,8,4,1,20,2,3,9
Beast Slayer 3; Holy 8; Orc Slayer 4; Paralysis; Silver; Slow; Stun; Vicious 9

Sel

{{#invoke:Attributes|Sel|3,8,4,1,20,2,3,9|w|Vicious|10|lt}}
Vicious < 10: 1

Resistances

Disp

RawResist = 0,0,10,10,0,10
Shock.png 10 Death.png 10 Spirit.png 10

Vuln

{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Fire}}
Is Fire > 0 = 0
Is Shock > 0 = 1
{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Shock|5|lt}}: Is Shock < 5 = 0
Is Shock = 10 = 1
Is Shock < 20 = 1

Damage

EleChk

RawDmg = 4,8,0,4,1,10,5,1.5,0,0,0
{{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Fire}}:
Is Fire = 1
Is Cold = 0
{{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Fire|5}}:
Is Fire > 5 = 0
Is Fire < 5 = 1

FullDisp

Sword.png 4-8 +Fire.png4

DPS

10.2

Inventory

getItems

{{#invoke:Inventory|getItems|Scroll of Recall; Potion of Mana|Blessed Necklace; Blessed Platemail Vest|Sonnet; Deathclaw}}

Name Cost Description
Scroll of Recall 280 Recall Teleports you and your party to a nearby town.
Potion of Mana 350 Gain Mana 35 Keep going and going! Recovers +35 mana.
Blessed Necklace 800   +5 HP   +3 MP    Death.png 15 Poison.png 10  
Blessed Platemail Vest 8600 +3 AR    +9 HP   +4 MP 
Sonnet Light   DMG: Sword.png 3-8 +Holy.png 5  Spd: 12   Crit: 6%
Deathclaw Light   DMG: Sword.png 3-7 +Death.png 3  Spd: 11   Crit: 7%

make list

{{#invoke:Inventory|makeList|Scroll of Recall|Blessed Necklace|Sonnet}}:

Scroll of Recall; Blessed Necklace; Sonnet

Misc

Rarity

{{#invoke:Misc|Rarity|Unique}}: Unique
{{#invoke:Misc|Rarity|Crafted|1}}:
This is a Crafted item, obtainable as a rare drop or by the player interacting with certain NPCs.
{{#invoke:Misc|Rarity|test}}: Common

Cost

To get the Cost:
{{#invoke:Misc|Cost||400|1}}: 1600
To get the Value:
{{#invoke:Misc|Cost|400|}}: 100

imgLink

Regular Link with image = name.png
{{#invoke:Misc|imgLink|Human Resources}}:
Human Resources.png Human Resources
Regular Link but colored as a new item:
{{#invoke:Misc|imgLink|Human Resources|Colo=1}}
Human Resources.png Human Resources
Setting extension and size:
{{#invoke:Misc|imgLink|Human Resources|png|64}}
Human Resources.png Human Resources
Icon=1:
{{#invoke:Misc|imgLink|Human Resources|icon=1}}
Human Resources.png Human Resources
Setting icon manually:
{{#invoke:Misc|imgLink|Human Resources|icon=Human Resources.png}}
Human Resources.png Human Resources

traitDisp

RawTrait=1,2,3,4,5,6
Strength.png 1 Endurance.png 2 Agility.png 3 Intellect.png 4 Awareness.png 5 Personality.png 6

traitSel

{{#invoke:Misc|traitSel|1,2,3,4,5,6|Agility}}
Agility > 0: 1
{{#invoke:Misc|traitSel|1,2,3,4,5,6|Agility|3}}
Agility > 3: 0

TextC

SList

Regular ; list:
{{#invoke:TextC|SList|a;b;c;d;e;f;g}}

  • a
  • b
  • c
  • d
  • e
  • f
  • g


Setting delimiter to ,:
{{#invoke:TextC|SList|a,b,c,d,e,f,g|,}}

  • a
  • b
  • c
  • d
  • e
  • f
  • g


SListCol

Need work, for determining if only one Column is necessary (max 2 ATM):
{{#invoke:TextC|SListCol|a;b;c;d;e}}: 2
{{#invoke:TextC|SListCol|a;b}}: 1
{{#invoke:TextC|SListCol|}}: 1

DelimRepl

{{#invoke:TextC|DelimRepl|a;b;c;d;e}}
♦ a ♦b ♦c ♦d ♦e
{{#invoke:TextC|DelimRepl|a,b,c,d,e|,}}
♦ a ♦b ♦c ♦d ♦e
{{#invoke:TextC|DelimRepl|a;b;c;d;e||° }}
° a° b° c° d° e

Transp

{{#invoke:TextC|Transp|Captain Dorse}}:



{{#invoke:TextC|Transp|Captain Dorse;Boatman Narrim}}:



{{#invoke:TextC|Transp|Captain Dorse;Boatman Narrim;-This is a Test}}