Module:Flag/testcases: Difference between revisions
Appearance
Content deleted Content added
add testcases |
cleanup tests |
||
Line 1: | Line 1: | ||
{{Template test cases notice}} |
{{Template test cases notice}} |
||
{{flagathlete|[[Andy Murray]]|GBR}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|athlete|[[Andy Murray]]|GBR}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|athlete|[[Andy Murray]]|GBR}} |
||
{{flagathlete|John Doe|France|code=FRA}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|athlete|John Doe|France|code=FRA}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|athlete|John Doe|France|code=FRA}} |
||
{{flagathlete|Federer}} |
|||
⚫ | |||
{{flag|Ireland}} |
|||
⚫ | |||
{{flagcountry|Spain}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|country|Spain}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|country|Spain}} |
||
{{flagdeco|Italy}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|deco|Italy}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|deco|Italy}} |
||
{{flagicon|Germany}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|icon|Germany}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|icon|Germany}} |
||
{{flag|Germany|2=icon|variant=navy}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|Germany|2=icon|variant=navy}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|Germany|2=icon|variant=navy}} |
||
{{flag+link|History of|Ukraine}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|+link|History of|Ukraine}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|+link|History of|Ukraine}} |
||
{{flagmedalist|[[Andy Murray]]|GBR}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Andy Murray]]|GBR}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Andy Murray]]|GBR}} |
||
{{flagmedalist|[[Andy Murray]]|United Kingdom}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Andy Murray]]|United Kingdom}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Andy Murray]]|United Kingdom}} |
||
{{flagmedalist|[[Michael Phelps]]|USA}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Michael Phelps]]|USA}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Michael Phelps]]|USA}} |
||
{{flagmedalist|[[Michael Phelps]]|United States}} |
|||
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Michael Phelps]]|United States}} |
{{test case|_template=#invoke:Flag|_collapsible=y|_titlecode=y|medalist|[[Michael Phelps]]|United States}} |
||
==Errors== |
|||
⚫ | |||
⚫ |
Revision as of 09:22, 8 May 2025
![]() | This is the template test cases page for the sandbox of Module:Flag. 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: |
{{#invoke:Flag|athlete|[[Andy Murray]]|GBR}}
{{#invoke:Flag|athlete|John Doe|France|code=FRA}}
{{#invoke:Flag|country|Spain}}
{{#invoke:Flag|deco|Italy}}
{{#invoke:Flag|icon|Germany}}
{{#invoke:Flag|Germany|icon|variant=navy}}
{{#invoke:Flag|+link|History of|Ukraine}}
{{#invoke:Flag|medalist|[[Andy Murray]]|GBR}}
{{#invoke:Flag|medalist|[[Andy Murray]]|United Kingdom}}
{{#invoke:Flag|medalist|[[Michael Phelps]]|USA}}
{{#invoke:Flag|medalist|[[Michael Phelps]]|United States}}
Errors
{{#invoke:Flag|athlete|Federer}}
{{#invoke:Flag|main|Ireland}}