Difference between revisions of "Template:Armor test"
Jump to navigation
Jump to search
(translation optimization) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
--- If item name is provided as parameter, use the parameter instead of root page. --- | --- If item name is provided as parameter, use the parameter instead of root page. --- | ||
-->{{#vardefine:Page|{{#if:{{{1|}}}|{{{1|}}}|{{ROOTPAGENAME}}}}}}<!-- | -->{{#vardefine:Page|{{#if:{{{1|}}}|{{{1|}}}|{{ROOTPAGENAME}}}}}}<!-- | ||
--- Load complete datastring into a variable - to only load from the | --- Load complete datastring into a variable - to only load from the Armor data page once. --- | ||
-->{{#vardefine:Datastring|{{:Armor_data|{{#var:Page}}}}}}<!-- | -->{{#vardefine:Datastring|{{:Armor_data|{{#var:Page}}}}}}<!-- | ||
--- Separate values from datastring into individual variables. --- | --- Separate values from datastring into individual variables. --- | ||
Line 21: | Line 21: | ||
|style="text-align:center;"|<!-- | |style="text-align:center;"|<!-- | ||
--- Check if item is marked as not obtainable in game (manually in g.sheet) --- | --- Check if item is marked as not obtainable in game (manually in g.sheet) --- | ||
-->{{#if:{{#var:Unobtainable}}|{{ | -->{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}<!-- | ||
--- Check if item is of better rarity than common --- | --- Check if item is of better rarity than common --- | ||
-->{{#if:{{#var:Rarity}}|<span style="font-size: 20px;">{{c|{{#var:Rarity}}|{{#var:TranslateName}}}}</span><br /><span style="color:#9d9a9a;">{{Translate|{{#var:Rarity}}|Properties}}|<span style="font-size: 20px;">{{#var:TranslateName}}</span><br /><span style="color:#9d9a9a;">{{Translate|Common|Properties}} }} <!-- | -->{{#if:{{#var:Rarity}}|<span style="font-size: 20px;">{{c|{{#var:Rarity}}|{{#var:TranslateName}}}}</span><br /><span style="color:#9d9a9a;">{{Translate|{{#var:Rarity}}|Properties}}|<span style="font-size: 20px;">{{#var:TranslateName}}</span><br /><span style="color:#9d9a9a;">{{Translate|Common|Properties}} }} <!-- | ||
Line 33: | Line 33: | ||
|<div style="width:100%;color:#9d9a9a;"><!-- | |<div style="width:100%;color:#9d9a9a;"><!-- | ||
--- Load and sort item properties via this template --- | --- Load and sort item properties via this template --- | ||
-->{{ | -->{{Test_test|{{#var:Page}}}}</div><!-- | ||
--- Load armor durability --- | --- Load armor durability --- | ||
--><div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{#var:Durability}}/{{#var:Durability}}</span></div> | --><div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{#var:Durability}}/{{#var:Durability}}</span></div> |
Latest revision as of 16:23, 26 May 2023
This template has no documentation. If you know how to use this template, please add some.