Hi, I am trying to rewrite a Wikipedia template without using html codes. If capital is the same as the largest town, then only one entry is shown, otherwise it will show two entries, i.e the capital and the largest town. I wrote like this but it is not working. Both conditions appear in the template:
{{#if: {{{capital}}} == {{{largest_city}}}| ! valign=top style="font-weight:normal;" {{!}} '''[[Capital (political)|Capital]]'''<br>(and largest city) ! valign=top style="padding:2px 10px; font-weight:normal;" {{!}} {{{capital}}} }} }} |- {{#if: {{{capital}}} !== {{{largest_city}}}| {{!}}- ! valign=top {{!}} [[Capital (political)|Capital]] ! valign=top style="padding:2px 10px; font-weight:normal;" {{!}} {{{capital}}} {{!}}- ! valign=top {{!}} Largest_city ! valign=top style="padding:2px 10px; font-weight:normal;" {{!}} {{{largest_city}}} }} }}
Your kind comments appreciated. I wanted to try "else" but I don't know the syntax, so I use the long method, LOL.
PM Poon