• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Country listdata

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Country listdata

This template formats a list of country data templates, for use as "see also" in the documentation of such templates.

Parameters

1, 2, ..., n
Each numbered parameter is a country, subdivision or other entity name, corresponding to what you would use as first parameter in flag templates such as {{flag}}.
var1, var2, ..., varn
Specify flag variants for the corresponding entities. The variant name is displayed in brackets.
note1, note2, ..., noten
Add explanatory text to the right of each row.
header
Inserts a standardized text above the list. Possible values are "related", "for:" followed by any text, or anything else for custom text.

Examples

{{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 BrazilThis 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
The above documentation is transcluded from Template:Country listdata/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Country_listdata&oldid=12692"
Categories:
  • Lua-based templates
  • Flag template system
Last edited on 9 February 2016, at 05:20

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 9 February 2016, at 05:20.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop