Difference between revisions of "Template:ShowFeature"
Jump to navigation
Jump to search
m (Use just the first word as the color key) |
m (Use the proper variable) |
||
Line 1: | Line 1: | ||
{{#if:{{#pos:#{{{keys}}}#|#{{#explode:{{{value|}}}| }}#}}|<!-- | {{#if:{{#pos:#{{{keys}}}#|#{{#explode:{{{value|}}}| }}#}}|<!-- | ||
valid key-->{{#ifexpr: {{{alwayscommon|0}}} or {{#ifeq:{{#explode:{{{value|}}}| |1}}||1|0}} | valid key-->{{#ifexpr: {{{alwayscommon|0}}} or {{#ifeq:{{#explode:{{{value|}}}| |1}}||1|0}} | ||
|{{Map|keys={{{keys}}}|values={{{values}}}|key={{#explode:{{{value|}}}| }}}}|<!--noshowcommon-->}}<!-- | |{{Map|keys={{{keys}}}|values={{{values}}}|key={{#explode:{{{value|}}}| }}}}|<!--noshowcommon-->}}<!-- | ||
-->{{#ifexpr: {{{alwayscommon|0}}} and {{#ifeq:{{#explode:{{{value|}}}| |1}}||0|1}}| (|<!--noboth-->}}<!-- | -->{{#ifexpr: {{{alwayscommon|0}}} and {{#ifeq:{{#explode:{{{value|}}}| |1}}||0|1}}| (|<!--noboth-->}}<!-- | ||
-->{{#ifeq:{{#explode:{{{value|}}}| |1}}||<!--noextra-->|extra:{{#sub:{{{value}}}|{{#pos:{{{ | -->{{#ifeq:{{#explode:{{{value|}}}| |1}}||<!--noextra-->|extra:{{#sub:{{{value|}}}|{{#pos:{{{value|}}}| }}|0}}}}<!-- | ||
-->{{#ifexpr: {{{alwayscommon|0}}} and {{#ifeq:{{#explode:{{{value|}}}| |1}}||0|1}}|)|<!--noboth-->}} | -->{{#ifexpr: {{{alwayscommon|0}}} and {{#ifeq:{{#explode:{{{value|}}}| |1}}||0|1}}|)|<!--noboth-->}} | ||
|<!-- | |<!-- | ||
unknown key-->{{{value|}}}}} | unknown key-->{{{value|}}}}} |