Difference between revisions of "Template:ShowFeature"

From ScummVM :: Wiki
Jump to navigation Jump to search
m (Don't show the default value)
m (Use the new map template)
Line 1: Line 1:
{{#ifexpr: {{{alwayscommon|0}}} or {{#ifeq:{{#explode:{{{value|}}}| |1}}||1|0}}| {{#switch:{{#explode:{{{value|}}}| }}|yes={{{yes}}}|no={{{no}}}}} |<!--noshowcommon-->}}<!--
+
{{#ifexpr: {{{alwayscommon|0}}} or {{#ifeq:{{#explode:{{{value|}}}| |1}}||1|0}}| {{Map:keys={{{keys}}}|values={{{values}}}|key={{{value|}}}}} |<!--noshowcommon-->}}<!--
 +
{{#ifexpr: {{{alwayscommon|0}}} or {{#ifeq:{{#explode:{{{value|}}}| |1}}||1|0}}| {{#switch:{{#explode:{{{value|}}}| }}|yes={{{yes}}}|no={{{no}}}}} |}}
 
{{#ifeq:{{#explode:{{{value|}}}| |1}}||noextra|extra}}
 
{{#ifeq:{{#explode:{{{value|}}}| |1}}||noextra|extra}}
 
-->{{#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-->|{{#sub:{{{value}}}|{{#pos:{{{1}}}| }}|0}}}}<!--
 
-->{{#ifeq:{{#explode:{{{value|}}}| |1}}||<!--noextra-->|{{#sub:{{{value}}}|{{#pos:{{{1}}}| }}|0}}}}<!--
 
-->{{#ifexpr: {{{alwayscommon|0}}} and {{#ifeq:{{#explode:{{{value|}}}| |1}}||0|1}}|)|<!--noboth-->}}
 
-->{{#ifexpr: {{{alwayscommon|0}}} and {{#ifeq:{{#explode:{{{value|}}}| |1}}||0|1}}|)|<!--noboth-->}}

Revision as of 00:11, 8 April 2010

{{Map:keys={{{keys}}}|values={{{values}}}|key=}}