Difference between revisions of "Template:Status"

134 bytes added ,  07:52, 6 September 2020
Attempt at reducing amount of SMW queries
(Attempt at reducing amount of SMW queries)
Line 1: Line 1:
<includeonly><onlyinclude>{{#vardefine:status subobj|{{#ask:
<includeonly><onlyinclude>{{#varexists:status subobj{{{id|0}}}|{{#vardefine:status subobj{{{id|}}}|{{#if:{{{subobject|}}}|{{{subobject}}}|{{#ask:
   [[Has game context::Status]]
   [[Has game context::Status]]
   {{#if:{{{1|}}}|[[Has Japanese name::{{{1|}}}]]}}
   {{#if:{{{1|}}}|[[Has Japanese name::{{{1|}}}]]}}
Line 8: Line 8:
   |headers=hide
   |headers=hide
   |searchlabel=
   |searchlabel=
}}}}{{#ifeq:{{#var:hide icons|}}|true||{{Status icon|subobject={{#var:status subobj}}}}&#32;}}{{Tooltip|[[{{#var:status subobj}}|{{Status name|subobject={{#var:status subobj}}}}]]|{{Status description|subobject={{#var:status subobj}}}} ({{Status type|subobject={{#var:status subobj}}}})}}<!--{{#if:{{#var:skill page}}|[[Category:Skill that uses {{Status name|subobject={{#var:status subobj}}}}]]}}--></onlyinclude></includeonly>
}}}}}}}}{{#ifeq:{{#var:hide icons|}}|true||{{Status icon|subobject={{#var:status subobj{{{id|}}}}}}}&#32;}}{{Tooltip|[[{{#var:status subobj{{{id|}}}}}|{{Status name|subobject={{#var:status subobj{{{id|}}}}}}}]]|{{Status description|subobject={{#var:status subobj{{{id|}}}}}}} ({{Status type|subobject={{#var:status subobj{{{id|}}}}}}})}}<!--{{#if:{{#var:skill page}}|[[Category:Skill that uses {{Status name|subobject={{#var:status subobj}}}}]]}}--></onlyinclude></includeonly>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>
trusted
5,920

edits