Predloga:Country listdata
Videz
Uporablja Lua: |
This template formats a list of country data templates, for use as "see also" in the documentation of such templates.
Parameters
[uredi kodo]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
[uredi kodo]{{country listdata|Afganistan|Albanija|Alžirija}}
→
Predloga:Podatki države Afganistan | Afganistan | |
Predloga:Podatki države Albanija | Albanija | |
Predloga:Podatki države Alžirija | Alžirija |
Using variants and notes:
{{country listdata|Avstralija|var1=naval|Brazilija|note2=This is a note}}
→
Predloga:Podatki države Avstralija (naval variant) | Avstralija | |
Predloga:Podatki države Brazilija | Brazilija | 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=Afganistan|2=Albanija|3= |4=AAlžirijageria|5=Andora|7=Angola|8=Italija}}
→
Predloga:Podatki države Afganistan | Afganistan | |
Predloga:Podatki države Albanija | Albanija | |
Predloga:Podatki države Alžirija | Alžirija | |
Predloga:Podatki države Andora | Andora |