Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Parameters  





2 Examples  














Template:Country listdata







مصرى
پښتو
Slovenščina
Українська
Tiếng Vit
 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikiversity
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


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

Parameters[edit]

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]

{{country listdata|Afghanistan|Albania|Algeria}}

 Afghanistan
 Albania
 Algeria

Using variants and notes:

{{country listdata|Australia|var1=naval|Brazil|note2=This is a note}}

 Australia
 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}}

 Afghanistan
 Albania
 Algeria
 Andorra

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Country_listdata&oldid=704072266"

Categories: 
Lua-based templates
Flag template system
 



This page was last edited on 9 February 2016, at 10:20 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki