Module:Country listdata/doc
Jump to navigation
Jump to search
| icon | This is a documentation subpage for Module:Country listdata. It may contain usage information, categories and other content that is not part of the original module page. |
| File:Greek lc beta icon.svg | This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
This template formats a list of country data templates, for use as "see also" in the documentation of such templates.
Parameters
[edit source]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
[edit source]{{country listdata|Afghanistan|Albania|Algeria}} →
| Template:Country data Afghanistan | File:Flag of the Taliban.svg Afghanistan | |
| Template:Country data Albania | File:Flag of Albania.svg Albania | |
| Template:Country data Algeria | File:Flag of Algeria.svg Algeria |
Using variants and notes:
{{country listdata|Australia|var1=naval|Brazil|note2=This is a note}} →
Template:Country data Australia (naval variant) | File:Naval Ensign of Australia.svg Australia | |
| Template:Country data Brazil | File:Flag of Brazil.svg 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}} →