Template:Item: Difference between revisions

65 bytes added ,  18:50, 25 October 2020
add support for overrideimages field
(Add chairlevel)
(add support for overrideimages field)
Line 97: Line 97:
-->{{#invoke:infobox|infobox
-->{{#invoke:infobox|infobox
| class = qud-item-infobox
| class = qud-item-infobox
| imagearea = {{#switch: {{{image|none}}} | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} | #default = {{#ifexist: File:{{#switch: {{{image|none}}} | none = Caves_of_qud_logo.png | #default = {{{image}}} }} |{{#if:{{{gif|}}}|{{infobox image and gif|{{{image}}}|{{{gif}}}|{{PAGENAME}}}}}}| {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }} }}
| imagearea =
{{#if: {{{overrideimages|}}} | {{{overrideimages}}} |
  {{#switch: {{{image|none}}}
  | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }}
  | #default = {{#ifexist: File:{{#switch: {{{image|none}}} | none = Caves_of_qud_logo.png | #default = {{{image}}} }} |{{#if:{{{gif|}}}|{{infobox image and gif|{{{image}}}|{{{gif}}}|{{PAGENAME}}}}}}| {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }}
  }}
}}
| rows =  
| rows =  
{{#if: {{{pv|}}}{{{maxpv|}}}{{{vibro|}}}{{{damage|}}}{{{av|}}}{{{dv|}}}{{{weight|}}}{{{commerce|}}} |
{{#if: {{{pv|}}}{{{maxpv|}}}{{{vibro|}}}{{{damage|}}}{{{av|}}}{{{dv|}}}{{{weight|}}}{{{commerce|}}} |