Editing Template:Building Stats Table Row/doc
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 16: | Line 16: | ||
{{Building Stats Table | Spike trap}} | {{Building Stats Table | Spike trap}} | ||
+ | |||
+ | == Multiple buildings == | ||
+ | This functionality is only soft supported and should be used with caution. | ||
+ | <div><li style="display: inline-table;"> | ||
+ | {| {{STDT|sortable c_01 text-right}} | ||
+ | ! Sculptures | ||
+ | ! Material | ||
+ | ! data-sort-type="number" | Beauty | ||
+ | ! data-sort-type="number" | Work to Build | ||
+ | ! data-sort-type="number" | HP | ||
+ | ! data-sort-type="number" | Flamma­bility | ||
+ | ! data-sort-type="number" | Market Value | ||
+ | ! Beauty<br>/Work | ||
+ | ! Beauty<br>/Value | ||
+ | ! Value<br>/Work | ||
+ | ! Value<br>/Material <!-- | ||
+ | -->{{#vardefine:multipleBuildings|true}}<!-- | ||
+ | -->{{#vardefine:workValueRatios|true}}<!-- | ||
+ | -->{{#vardefine:useWorkToMake|true}}<!-- | ||
+ | -->{{#vardefine:beautyFactor|1}}<!-- | ||
+ | SMALL SCULPTURE | ||
+ | -->{{#vardefine:name | Small sculpture}}<!-- | ||
+ | -->{{#vardefine:beauty | {{formatnum:{{Q|{{#var:name}}|Beauty Base|0}}|R}} }}<!-- | ||
+ | -->{{#vardefine:flammability | {{formatnum:{{Q|{{#var:name}}|Flammability Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:hasQuality | {{#ifeq: {{Q|{{#var:name}}|Has Quality}} | true | true}} }}<!-- | ||
+ | -->{{#vardefine:HP | {{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:stufftags | {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- | ||
+ | -->{{#vardefine:stuffAmount | {{Q|{{#var:name}}|Resource 1 Amount}} }}<!-- | ||
+ | -->{{#vardefine:value | {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:work | {{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}} }}<!-- | ||
+ | -->{{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] | ||
+ | | format = template | ||
+ | | template = Building Stats Table Row | ||
+ | | link = none | ||
+ | }}<!-- | ||
+ | LARGE SCULPTURE | ||
+ | -->{{#vardefine:name | Large sculpture}}<!-- | ||
+ | -->{{#vardefine:beauty | {{formatnum:{{Q|{{#var:name}}|Beauty Base|0}}|R}} }}<!-- | ||
+ | -->{{#vardefine:flammability | {{formatnum:{{Q|{{#var:name}}|Flammability Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:hasQuality | {{#ifeq: {{Q|{{#var:name}}|Has Quality}} | true | true}} }}<!-- | ||
+ | -->{{#vardefine:HP | {{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:stufftags | {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- | ||
+ | -->{{#vardefine:stuffAmount | {{Q|{{#var:name}}|Resource 1 Amount}} }}<!-- | ||
+ | -->{{#vardefine:value | {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:work | {{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}} }}<!-- | ||
+ | -->{{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] | ||
+ | | format = template | ||
+ | | template = Building Stats Table Row | ||
+ | | link = none | ||
+ | }}<!-- | ||
+ | GRAND SCULPTURE | ||
+ | -->{{#vardefine:name | Grand sculpture}}<!-- | ||
+ | -->{{#vardefine:beauty | {{formatnum:{{Q|{{#var:name}}|Beauty Base|0}}|R}} }}<!-- | ||
+ | -->{{#vardefine:flammability | {{formatnum:{{Q|{{#var:name}}|Flammability Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:hasQuality | {{#ifeq: {{Q|{{#var:name}}|Has Quality}} | true | true}} }}<!-- | ||
+ | -->{{#vardefine:HP | {{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:stufftags | {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}<!-- | ||
+ | -->{{#vardefine:stuffAmount | {{Q|{{#var:name}}|Resource 1 Amount}} }}<!-- | ||
+ | -->{{#vardefine:value | {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}} }}<!-- | ||
+ | -->{{#vardefine:work | {{formatnum:{{Q|{{#var:name}}|Work To Make}}|R}} }}<!-- | ||
+ | -->{{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}} || [[Stuff Category::Woody]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} | ||
+ | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] | ||
+ | | format = template | ||
+ | | template = Building Stats Table Row | ||
+ | | link = none | ||
+ | }} | ||
+ | |} | ||
+ | </li></div> | ||
<includeonly>[[Category:Customized table templates]]</includeonly> | <includeonly>[[Category:Customized table templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |