Template:Character: Difference between revisions

Jump to navigation Jump to search
13 bytes added ,  20:57, 5 September 2019
m
use #switch instead of #ifeq
(renderstr fallback logic: don't check for File:None when image is set to 'none')
m (use #switch instead of #ifeq)
Line 69: Line 69:
-->{{#invoke:infobox|infobox
-->{{#invoke:infobox|infobox
| class = qud-character-infobox
| class = qud-character-infobox
| imagearea = {{#ifeq: {{{image|none}}} | none | {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} | {{#ifexist: File:{{{image|}}} || {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }} }}
| imagearea = {{#switch: {{{image|none}}} | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} | #default = {{#ifexist: File:{{{image|}}} || {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&amp;y}}}|{{{renderstr}}}}}</div> | }} }} }}
| rows =
| rows =
<!----------------------------------------
<!----------------------------------------

Navigation menu