Template:ISO 3166 code-3/testcases: Difference between revisions
Appearance
Content deleted Content added
m Executed subst: test Tag: Reverted |
|||
Line 20: | Line 20: | ||
! notes || Input || Current || Sandbox || subst: || Sandbox subst: |
! notes || Input || Current || Sandbox || subst: || Sandbox subst: |
||
|- |
|- |
||
| {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code|Guinea|codetype=alpha3}} |
|||
</td><td> |
|||
GIN |
|||
</td>|2=$|3=Guinea}}}}}} |
|||
|- |
|- |
||
| hyphenated country name {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| hyphenated country name {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code|Guinea-Bissau|codetype=alpha3}} |
|||
</td><td> |
|||
GNB |
|||
</td>|2=$|3=Guinea-Bissau}}}}}} |
|||
|- |
|- |
||
| off-by-hyphen name {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| off-by-hyphen name {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code|GuineaBissau|codetype=alpha3}} |
|||
</td><td> |
|||
</td>|2=$|3=GuineaBissau}}}}}} |
|||
|- |
|- |
||
| invalid name {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| invalid name {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code|Foobarbaz|codetype=alpha3}} |
|||
</td><td> |
|||
</td>|2=$|3=Foobarbaz}}}}}} |
|||
|- |
|- |
||
| subdivision in second argument {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| subdivision in second argument {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code|United Kingdom|codetype=alpha3}} |
|||
</td><td> |
|||
GB-ENG |
|||
</td>|2=$|3=United Kingdom!England}}}}}} |
|||
|- |
|- |
||
| subdivision after hyphen {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| subdivision after hyphen {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code|United Kingdom-England|codetype=alpha3}} |
|||
</td><td> |
|||
GB-ENG |
|||
</td>|2=$|3=United Kingdom-England}}}}}} |
|||
|- |
|- |
||
| Wikilinks {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| Wikilinks {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code|[[Russia]]|codetype=alpha3}} |
|||
</td><td> |
|||
RU-SA |
|||
</td>|2=$|3=[[Russia]]![[Sakha Republic]]}}}}}} |
|||
|- |
|- |
||
| no input {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td> |
| no input {{Expand wikitext|{{Make code|{=(|}=)|{{Replace|1=<td>((Separated entries!separator=|!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}!$))</td><td>(({{NAMESPACE}}:{{ROOTPAGENAME}}/sandbox!$))</td><td> |
||
{{#invoke:ISO 3166|code||codetype=alpha3}} |
|||
</td><td> |
|||
<span class="error">ISO 3166: name not specified</span> |
|||
</td>|2=$|3=<!--nothing-->}}}}}} |
|||
|} |
|} |
||
<!-- |
<!-- |
Revision as of 10:45, 4 April 2022
This is the template test cases page for the sandbox of Template:ISO 3166 code-3. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
{{ISO 3166 code-3|Switzerland}}
→ CHE
notes | Input | Current | Sandbox | subst: | Sandbox subst: |
---|---|---|---|---|---|
Guinea | GIN | GIN |
GIN |
GIN |
|
hyphenated country name | Guinea-Bissau | GNB |
GNB |
||
off-by-hyphen name | GuineaBissau | GNB | GNB |
GNB | |
invalid name | Foobarbaz | ||||
subdivision in second argument | United Kingdom|England | GB-ENG | GB-ENG |
GBR |
GB-ENG |
subdivision after hyphen | United Kingdom-England | GB-ENG | GB-ENG |
GB-ENG |
GB-ENG |
Wikilinks | Russia|Sakha Republic | RU-SA | RU-SA |
RUS |
RU-SA |
no input |
ISO 3166: name not specified |