This template uses Lua: |
This template formats a list of country data templates, for use as "see also" in the documentation of such templates.
1
, 2
, ..., n
var1
, var2
, ..., varn
note1
, note2
, ..., noten
header
((country listdata|Afghanistan|Albania|Algeria))
→
Template:Country data Afghanistan | Afghanistan | |
Template:Country data Albania | Albania | |
Template:Country data Algeria | Algeria |
Using variants and notes:
((country listdata|Australia|var1=naval|Brazil|note2=This is a note))
→
Template:Country data Australia (naval variant) | Australia | |
Template:Country data Brazil | Brazil | This is a note |
In the parameter list, parameters with empty strings or whitespace only are allowed and not included in the output, so parameters can be safely emptied to remove a country. Undefined "gaps", however, such as parameter 6 in this example, will cause all higher-number parameters to be ignored.
((country listdata|1=Afghanistan|2=Albania|3= |4=Algeria|5=Andorra|7=Angola|8=Antigua and Barbuda))
→
Template:Country data Afghanistan | Afghanistan | |
Template:Country data Albania | Albania | |
Template:Country data Algeria | Algeria | |
Template:Country data Andorra | Andorra |