Difference between revisions of "Data"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
m
old>Realpsojed
m
Line 11: Line 11:
{{:Data|Peasant Hatchet}}
{{:Data|Peasant Hatchet}}
  <nowiki>Option 2 seems like it won't work</nowiki>
  <nowiki>Option 2 seems like it won't work</nowiki>
</noinclude>
</noinclude><includeonly>{{#switch: {{{1}}}<!--
 
<includeonly>{{#switch: {{{1}}}<!--


----- ITEMS FOR TESTING -----
----- ITEMS FOR TESTING -----

Revision as of 16:29, 2 July 2021

Page for all Stoneshard data.

The plan is to use our Parser to convert data from game data into the switch format we use on the wiki. Different templates then transclude data from this page and display it elsewhere on the wiki.

Currently this is in testing phase with templates {{Skill test}} and {{Armor test}}.

Option 1 - Keeping the Switch, transcluding individual attributes. {{:Data|Ornate Sallet|ArmorType}} produces:

Headgear

Option 2 - Removing the Switch, transcluding all attributes at once as plaintext. {{:Data|Peasant Hatchet}} produces:

{{#switch: {{{2}}} <!-- Updated with Weapon Parser V 1.01 --> |WeaponType = Axe |Damage1 = 21 |DamageType1 = Slashing |Properties1 = Armor Penetration |Values1 = {{pos|+10%}} |Properties2 = Bodypart Damage |Values2 = {{pos|+10%}} |Properties3 = Fumble Chance |Values3 = {{pos|-1%}} |Properties4 = Skills Energy Cost |Values4 = {{neg|+15%}} |Properties5 = Spells Energy Cost |Values5 = {{neg|+15%}} |Durability = 85 |Description = The only thing this axe is decent at is chopping wood. |Price = 25 |#default = }}

Option 2 seems like it won't work