Difference between revisions of "Template:Country showdata/testcases"

From blackwiki
Jump to navigation Jump to search
imported>GPHemsley
(Add test for link alias.)
imported>GPHemsley
(Add more testcases.)
Line 5: Line 5:
  
 
{{tlx|{{TEMPLATENAMEE|require=testcases}}/sandbox}}
 
{{tlx|{{TEMPLATENAMEE|require=testcases}}/sandbox}}
 +
{{{{TEMPLATENAMEE|require=testcases}}/sandbox}}
  
{{{{TEMPLATENAMEE|require=testcases}}/sandbox}}
+
{{country data Taiwan|country showdata/sandbox}}
 +
{{country data Japan|country showdata/sandbox}}
 +
{{country data Empire of Japan|country showdata/sandbox}}
  
 
{{clear}}
 
{{clear}}
 
<!-- Test link alias -->
 
{{country showdata/sandbox
 
| alias = Taiwan
 
| flag alias = Flag of the Republic of China.svg
 
| flag alias-army = Flag of the Republic of China Army.svg
 
| link alias-army = Republic of China Army
 
| flag alias-air force = Flag of the Republic of China Air Force.svg
 
| link alias-air force = Republic of China Air Force
 
| link alias-naval = Republic of China Navy
 
| flag alias-civil = Civil Ensign of the Republic of China.svg
 
| flag alias-japan = Flag of Japan (1870-1999).svg
 
| link alias-japan = Taiwan under Japanese rule
 
| link alias-football = Chinese Taipei {{{mw|}}} national {{{age|}}} football team
 
| link alias-basketball = Chinese Taipei {{{mw|}}} national {{{age|}}} basketball team
 
| link alias-rugby union = Chinese Taipei {{{mw|}}} national {{{age|}}} rugby union team
 
| size = {{{size|}}}
 
| name = {{{name|}}}
 
| variant = {{{variant|}}}
 
| altlink = {{{altlink|}}}
 
| altvar = {{{altvar|}}}
 
<noinclude>
 
| redir1 = TWN
 
| var1 = civil
 
| var2 = japan
 
| related1 = Republic of China
 
| related2 = Chinese Taipei
 
</noinclude>
 
}}
 
 
  
 
== Testing main template ==
 
== Testing main template ==
  
 
{{tlx|{{TEMPLATENAMEE|require=testcases}}}}
 
{{tlx|{{TEMPLATENAMEE|require=testcases}}}}
 +
{{ {{TEMPLATENAMEE|require=testcases}} }}
 +
 +
{{country data Taiwan|country showdata}}
 +
{{country data Japan|country showdata}}
 +
{{country data Empire of Japan|country showdata}}
  
{{ {{TEMPLATENAMEE|require=testcases}} }}
 
 
}}
 
}}

Revision as of 18:41, 6 November 2016


Testing sandbox version

{{Country_showdata/sandbox}}

50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias undefined! Main article name ([[{{{alias}}}]])
flag alias undefined! Image name ([[:File:{{{flag alias}}}]], shown on right)


Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified



50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias Taiwan Main article name (Taiwan)
flag alias Flag of the Republic of China.svg Image name (File:Flag of the Republic of China.svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
marines40pxFlag of the Republic of China Marine Corps.svg
navy40pxNaval Jack of the Republic of China.svg
air force40pxFlag of the Republic of China Air Force.svg
army40pxFlag of the Republic of China Army.svg

Military ensigns

This nation's naval ensign is the same as its national flag, so Template:Navy produces the following:

This template includes an air force ensign flag variant that can be used with Template:Air force:

This template includes a marine ensign flag variant that can be used with Template:Marines:

This template includes a navy flag variant that can be used with Template:Naval:

This template includes an army ensign flag variant that can be used with Template:Army:

Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified


50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias Japan Main article name (Japan)
flag alias Flag of Japan.svg Image name (File:Flag of Japan.svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
naval40pxNaval Ensign of Japan.svg
marines40pxFlag of JSDF.svg
military40pxFlag of the Japan Self-Defense Forces.svg
coast guard40pxEnsign of the Japanese Coast Guard.svg
air force40pxFlag of the Japan Air Self-Defense Force.svg
army40pxFlag of JSDF.svg

Military ensigns

This template includes a naval ensign flag variant that can be used with Template:Navy:

This template includes an air force ensign flag variant that can be used with Template:Air force:

This template includes a marine ensign flag variant that can be used with Template:Marines:

This template includes a marine ensign flag variant that can be used with Template:Armed forces:

This template includes a coast guard ensign flag variant that can be used with Template:Coast guard:

This template includes an army ensign flag variant that can be used with Template:Army:

Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified


50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias Empire of Japan Main article name (Empire of Japan)
shortname alias Japan (optional) Display name to be used for the wikilink, if alias is a disambiguated article name, for example
flag alias Merchant flag of Japan (1870).svg Image name (File:Merchant flag of Japan (1870).svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
naval40pxNaval ensign of the Empire of Japan.svg
air force40pxWar flag of the Imperial Japanese Army (1868-1945).svg
army40pxWar flag of the Imperial Japanese Army (1868-1945).svg

Military ensigns

This template includes a naval ensign flag variant that can be used with Template:Navy:

This template includes an air force ensign flag variant that can be used with Template:Air force:



This template includes an army ensign flag variant that can be used with Template:Army:

Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified


Testing main template

{{Country_showdata}}

50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias undefined! Main article name ([[{{{alias}}}]])
flag alias undefined! Image name ([[:File:{{{flag alias}}}]], shown on right)


Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified



50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias Taiwan Main article name (Taiwan)
flag alias Flag of the Republic of China.svg Image name (File:Flag of the Republic of China.svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
marines40pxFlag of the Republic of China Marine Corps.svg
navy40pxNaval Jack of the Republic of China.svg
air force40pxFlag of the Republic of China Air Force.svg
army40pxFlag of the Republic of China Army.svg

Military ensigns

This nation's naval ensign is the same as its national flag, so Template:Navy produces the following:

This template includes an air force ensign flag variant that can be used with Template:Air force:

This template includes a marine ensign flag variant that can be used with Template:Marines:

This template includes a navy flag variant that can be used with Template:Naval:

This template includes an army ensign flag variant that can be used with Template:Army:

Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified


50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias Japan Main article name (Japan)
flag alias Flag of Japan.svg Image name (File:Flag of Japan.svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
naval40pxNaval Ensign of Japan.svg
marines40pxFlag of JSDF.svg
military40pxFlag of the Japan Self-Defense Forces.svg
coast guard40pxEnsign of the Japanese Coast Guard.svg
air force40pxFlag of the Japan Air Self-Defense Force.svg
army40pxFlag of JSDF.svg

Military ensigns

This template includes a naval ensign flag variant that can be used with Template:Navy:

This template includes an air force ensign flag variant that can be used with Template:Air force:

This template includes a marine ensign flag variant that can be used with Template:Marines:

This template includes a marine ensign flag variant that can be used with Template:Armed forces:

This template includes a coast guard ensign flag variant that can be used with Template:Coast guard:

This template includes an army ensign flag variant that can be used with Template:Army:

Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified


50px Template documentation

Template:Country showdata/testcases is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

Standard parameters

Parameter nameValueMeaning
alias Empire of Japan Main article name (Empire of Japan)
shortname alias Japan (optional) Display name to be used for the wikilink, if alias is a disambiguated article name, for example
flag alias Merchant flag of Japan (1870).svg Image name (File:Merchant flag of Japan (1870).svg, shown on right)

Flag variants

LabelFlag image (40px)Image name
naval40pxNaval ensign of the Empire of Japan.svg
air force40pxWar flag of the Imperial Japanese Army (1868-1945).svg
army40pxWar flag of the Imperial Japanese Army (1868-1945).svg

Military ensigns

This template includes a naval ensign flag variant that can be used with Template:Navy:

This template includes an air force ensign flag variant that can be used with Template:Air force:

This template includes an army ensign flag variant that can be used with Template:Army:

Example usage



TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Country showdata

This template should not be used directly. It is used indirectly by flag templates such as Template:Flag and Template:Flagicon. See Category:Flag template system for a full list of flag templates and Wikipedia:WikiProject Flag Template for further documentation.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified