Template:Infobox voting method: Difference between revisions

I bet there's a simpler syntax for this
(I meant this)
(I bet there's a simpler syntax for this)
Line 1:
{{Infobox
|title={{{title|}}}
 
| label1 = Condorcet compliant
| data1 = {{#ifexpr: {{{condorcet|}}}
 
{{#if: {{{condorcet|}}}
|
{{#ifexpr: {{{condorcet|}}}
| Yes [[Category:Condorcet_methods]]
| No
}}
|}}
 
| label2 = Mutual majority compliant
| data2 = {{#ifexpr: {{{mutual-majority|}}}
 
{{#if: {{{mutual-majority|}}}
|
{{#ifexpr: {{{mutual-majority|}}}
| Yes
| No
}}
|}}
 
| label3 = Favorite betrayal compliant
| data3 = {{#ifexpr: {{{favorite-betrayal|}}}
 
{{#if: {{{favorite-betrayal|}}}
|
{{#ifexpr: {{{favorite-betrayal|}}}
| Yes [[Category:Favorite betrayal criterion]]
| No [[Category:Fails favorite betrayal criterion]]
}}
|}}
 
}}<noinclude>
<templatedata>