Difference between revisions of "Template:CountryFlagTableRow"

From 4.5 Trillion!
m (Protected "Template:CountryFlagTableRow": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
Line 10: Line 10:
  
 
<includeonly>
 
<includeonly>
  |  style="text-align: center; width: 150px" | {{#ifeq:  {{{2|}}}|||[[{{{2|}}}|center|100px]]}}  
+
  |  style="text-align: center; width: 100px" | {{#ifeq:  {{{2|}}}|||[[{{{2|}}}|center|100px]]}}  
 
  |  style="text-align: left" | [[{{{1|}}}]]  
 
  |  style="text-align: left" | [[{{{1|}}}]]  
 
  |  style="text-align: center"| {{#ifeq: {{{3|}}}||| [[{{{3|}}}]]}}
 
  |  style="text-align: center"| {{#ifeq: {{{3|}}}||| [[{{{3|}}}]]}}

Latest revision as of 06:17, 5 December 2019

This is the template to format fields for showing countries in a table. This applies to an individual row.

The ifeq parser function is used to show an empty cell if there is no data to display otherwise the code is displayed.

{{#ifeq: string 1 | string 2 | value if identical | value if different }}

Edit the page to see the template text.