Difference between revisions of "Template:BoolInfoLine"

m
m
Line 1: Line 1:
|-
+
{{#vardefine: yesDisplay|{{{displayText|{{{yesText|Yes}}} }}}{{#ifeq: {{#var: yesDisplay}}|Yes||{{#vardefine: yesDisplay|Yes, using [[{{#var: yesDisplay}}]]}}<nowiki>
| {{#if: {{{tip|}}}  | <span class="translatable">{{#tip-text:{{{field|}}}|{{{tip|}}} }}</span> | {{{field}}} }} || {{#if: {{{param}}} | {{#ifeq:  {{Boolean|{{{param}}} }} | 1 | <span class="translatable">{{{displayText|{{{yesText|Yes}}} }}}</span>{{#if: {{{category|}}}|[[Category:UO:{{{category}}}]]}} | <span class="translatable">No</span>}} | <span class="translatable">unknown</span>[[Category:UO:{{{unknownCat}}}]] }}
+
</nowiki>|-
 +
| {{#if: {{{tip|}}}  | <span class="translatable">{{#tip-text:{{{field|}}}|{{{tip|}}} }}</span> | {{{field}}} }} || {{#if: {{{param}}} | {{#ifeq:  {{Boolean|{{{param}}} }} | 1 | <span class="translatable">{{#var: yesDisplay}}</span>{{#if: {{{category|}}}|[[Category:UO:{{{category}}}]]}} | <span class="translatable">No</span>}} | <span class="translatable">unknown</span>[[Category:UO:{{{unknownCat}}}]] }}

Revision as of 19:23, 29 April 2017

{{#vardefine: yesDisplay|Yes {{#ifeq: |Yes|| |- | {{{field}}} || No