Template:ParserTest: Difference between revisions

From Exiled Kingdoms Wiki
No edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#replace:!;!;!;!|;|{{CCB}}{{OCB}}}}
==Attributes==
===Armor(a)===
====Disp====
Attributes=3,8,4,1,20,2,3<br />
{{#invoke:Attributes|Disp|3,8,4,1,20,2,3|a}}
 
====Sel====
<nowiki>{{#invoke:Attributes|Sel|3,8,4,1,20,2,3|a|tinkering|21|ne}}: </nowiki><br />
Tinkering != 21:
{{#invoke:Attributes|Sel|3,8,4,1,20,2,3|a|tinkering|21|ne}}
 
===Weapon(w)===
====Disp====
Attributes = 3,8,4,1,20,2,3,9<br />
{{#invoke:Attributes|Disp|3,8,4,1,20,2,3,9|w}}
 
====Sel====
<nowiki>{{#invoke:Attributes|Sel|3,8,4,1,20,2,3,9|w|Vicious|10|lt}}</nowiki><br />
Vicious < 10:
{{#invoke:Attributes|Sel|3,8,4,1,20,2,3,9|w|Vicious|10|lt}}
 
==Resistances==
===Disp===
RawResist = 0,0,10,10,0,10<br />
{{#invoke:Resistances|Disp|0,0,10,10,0,10}}
<br />
===Vuln===
<nowiki>{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Fire}}</nowiki><br />
Is Fire > 0 =
{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Fire}}<br />
Is Shock > 0 =
{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Shock}}<br />
<nowiki>{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Shock|5|lt}}: </nowiki>
Is Shock < 5 =
{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Shock|5|lt}}<br />
Is Shock = 10 =
{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Shock|10|eq}}<br />
Is Shock < 20 =
{{#invoke:Resistances|Vuln|0,0,10,10,0,10|Shock|20|lt}}<br />
 
==Damage==
===EleChk===
RawDmg = 4,8,0,4,1,10,5,1.5,0,0,0<br />
<nowiki>{{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Fire}}: </nowiki><br />
Is Fire =
{{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Fire}}<br />
Is Cold = {{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Cold}}<br />
<nowiki>{{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Fire|5}}: </nowiki><br />
Is Fire > 5 = {{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Fire|5}}<br />
Is Fire < 5 = {{#invoke:Damage|EleChk|4,8,0,4,1,10,5,1.5,0,0,0|Fire|5|<}}<br />
===FullDisp===
{{#invoke:Damage|FullDisp|4,8,0,4,1,10,5,1.5,0,0,0}}<br />
===DPS===
{{#invoke:Damage|DPS|4,8,0,4,1,10,5,1.5,0,0,0}}
 
==Inventory==
===getItems===
<nowiki>{{#invoke:Inventory|getItems|Scroll of Recall; Potion of Mana|Blessed Necklace; Blessed Platemail Vest|Sonnet; Deathclaw}}</nowiki><br />
 
<table class="wikitable">
<tr>
<th>Name</th>
<th>Cost</th>
<th>Description</th>
</tr>
{{#invoke:Inventory|getItems|Scroll of Recall; Potion of Mana|Blessed Necklace; Blessed Platemail Vest|Sonnet; Deathclaw}}
</table>
===make list===
<nowiki>{{#invoke:Inventory|makeList|Scroll of Recall|Blessed Necklace|Sonnet}}: </nowiki><br />
 
{{#invoke:Inventory|makeList|Scroll of Recall|Blessed Necklace|Sonnet}}
 
==Misc==
===Rarity===
<nowiki>{{#invoke:Misc|Rarity|Unique}}:</nowiki>
{{#invoke:Misc|Rarity|Unique}}<br />
<nowiki>{{#invoke:Misc|Rarity|Crafted|1}}:</nowiki><br />
{{#invoke:Misc|Rarity|Crafted|1}}<br />
<nowiki>{{#invoke:Misc|Rarity|test}}:
</nowiki>
{{#invoke:Misc|Rarity|test}}<br />
===Cost===
To get the Cost:<br />
<nowiki>{{#invoke:Misc|Cost||400|1}}:
</nowiki>
{{#invoke:Misc|Cost||400|1}}<br />
To get the Value: <br />
<nowiki>{{#invoke:Misc|Cost|400|}}:
</nowiki>
{{#invoke:Misc|Cost|400|}}<br />
===imgLink===
Regular Link with image = name.png<br />
<nowiki>{{#invoke:Misc|imgLink|Human Resources}}: </nowiki><br />
{{#invoke:Misc|imgLink|Human Resources}}<br />
Regular Link but colored as a new item:<br />
<nowiki>{{#invoke:Misc|imgLink|Human Resources|Colo=1}}</nowiki><br />
{{#invoke:Misc|imgLink|Human Resources|Colo=1}}<br />
Setting extension and size:<br />
<nowiki>{{#invoke:Misc|imgLink|Human Resources|png|64}}</nowiki><br />
{{#invoke:Misc|imgLink|Human Resources|png|64}}<br />
Icon=1:<br />
<nowiki>{{#invoke:Misc|imgLink|Human Resources|icon=1}}</nowiki><br />
{{#invoke:Misc|imgLink|Human Resources|icon=1}}<br />
Setting icon manually:<br />
<nowiki>{{#invoke:Misc|imgLink|Human Resources|icon=Human Resources.png}}</nowiki><br />
{{#invoke:Misc|imgLink|Human Resources|icon=Human Resources.png}}<br />
 
===traitDisp===
RawTrait=1,2,3,4,5,6<br />
{{#invoke:Misc|traitDisp|1,2,3,4,5,6}}<br />
 
===traitSel===
<nowiki>{{#invoke:Misc|traitSel|1,2,3,4,5,6|Agility}}</nowiki><br />
Agility > 0:  {{#invoke:Misc|traitSel|1,2,3,4,5,6|Agility}}<br />
<nowiki>{{#invoke:Misc|traitSel|1,2,3,4,5,6|Agility|3}}</nowiki><br />
Agility > 3:  {{#invoke:Misc|traitSel|1,2,3,4,5,6|Agility|3}}<br />
 
==TextC==
===SList===
Regular ; list:<br />
<nowiki>{{#invoke:TextC|SList|a;b;c;d;e;f;g}}</nowiki><br />
{{#invoke:TextC|SList|a;b;c;d;e;f;g}}<br />
Setting delimiter to ,:<br />
<nowiki>{{#invoke:TextC|SList|a,b,c,d,e,f,g|,}}</nowiki><br />
{{#invoke:TextC|SList|a,b,c,d,e,f,g|,}}<br />
===SListCol===
Need work, for determining if only one Column is necessary (max 2 ATM):<br />
<nowiki>{{#invoke:TextC|SListCol|a;b;c;d;e}}:
</nowiki>
{{#invoke:TextC|SListCol|a;b;c;d;e}}<br />
<nowiki>{{#invoke:TextC|SListCol|a;b}}:
</nowiki>
{{#invoke:TextC|SListCol|a;b}}<br />
<nowiki>{{#invoke:TextC|SListCol|}}:
</nowiki>
{{#invoke:TextC|SListCol|}}<br />
 
===DelimRepl===
<nowiki>{{#invoke:TextC|DelimRepl|a;b;c;d;e}}</nowiki><br />
{{#invoke:TextC|DelimRepl|a;b;c;d;e}}<br />
<nowiki>{{#invoke:TextC|DelimRepl|a,b,c,d,e|,}}</nowiki><br />
{{#invoke:TextC|DelimRepl|a,b,c,d,e|,}}<br />
<nowiki>{{#invoke:TextC|DelimRepl|a;b;c;d;e||° }}</nowiki><br />
{{#invoke:TextC|DelimRepl|a;b;c;d;e||° }}<br />
===Transp===
<nowiki>{{#invoke:TextC|Transp|Captain Dorse}}: </nowiki><br />
{{#invoke:TextC|Transp|Captain Dorse}}<br />
<hr />
<nowiki>{{#invoke:TextC|Transp|Captain Dorse;Boatman Narrim}}:</nowiki><br />
{{#invoke:TextC|Transp|Captain Dorse;Boatman Narrim}}<br />
<hr />
<nowiki>{{#invoke:TextC|Transp|Captain Dorse;Boatman Narrim;-This is a Test}}</nowiki><br />
{{#invoke:TextC|Transp|Captain Dorse;Boatman Narrim;-This is a Test}}<br />

Latest revision as of 07:29, 19 June 2017

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}}