Difference between revisions of "Data"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(test for training crossbow)
old>Realpsojed
Line 1: Line 1:
<noinclude>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 {{tl|Skill test}} and {{tl|Armor test}}.
<nowiki>Option 1 - Keeping the Switch, transcluding individual attributes. {{:Data|Ornate Sallet|ArmorType}} produces:</nowiki>
{{:Data|Ornate Sallet|ArmorType}}
<nowiki>Option 2 - Removing the Switch, transcluding all attributes at once as plaintext. {{:Data|Peasant Hatchet}} produces:</nowiki>
{{:Data|Peasant Hatchet}}
<nowiki>Option 2 seems like it won't work</nowiki>
</noinclude>
<includeonly>{{#switch: {{{1}}}<!--
<includeonly>{{#switch: {{{1}}}<!--


Line 361: Line 375:
|#default = }}
|#default = }}


|#default = Data does not exist.}}</includeonly><noinclude>Page for all Stoneshard data.
|#default = Data does not exist.}}</includeonly>
 
<nowiki>Option 1 - Keeping the Switch, transcluding individual attributes. {{:Data|Ornate Sallet|ArmorType}} produces:</nowiki>
{{:Data|Ornate Sallet|ArmorType}}
 
<nowiki>Option 2 - Removing the Switch, transcluding all attributes at once as plaintext. {{:Data|Peasant Hatchet}} produces:</nowiki>
{{:Data|Peasant Hatchet}}
<nowiki>Option 2 seems like it won't work</nowiki>
</noinclude>

Revision as of 13:42, 25 June 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