Jump to content

Template:Flag IOC/testcases

From Wikipedia, the free encyclopedia
{{flagIOC|USA}}
{{flagIOC|USA}}
 United States
 United States
Expanded code
[[File:Flag of the United States.svg|22x20px|border|alt=|link=]] [[United States at the Olympics|United States]]
[[File:Flag of the United States.svg|22x20px|border|alt=|link=]] [[United States at the Olympics|United States]]
{{flagIOC|GER|Winter}}
{{flagIOC|GER|Winter}}
 Germany
 Germany
Expanded code
[[File:Flag of Germany.svg|22x20px|border|alt=|link=]] [[Germany at the Winter Olympics|Germany]]
[[File:Flag of Germany.svg|22x20px|border|alt=|link=]] [[Germany at the Winter Olympics|Germany]]
{{flagIOC|ESP|2004 Summer}}
{{flagIOC|ESP|2004 Summer}}
 Spain
 Spain
Expanded code
[[File:Flag of Spain.svg|22x20px|border|alt=|link=]] [[Spain at the 2004 Summer Olympics|Spain]]
[[File:Flag of Spain.svg|22x20px|border|alt=|link=]] [[Spain at the 2004 Summer Olympics|Spain]]
{{flagIOC|CHN|2006 Winter}}
{{flagIOC|CHN|2006 Winter}}
 China
 China
Expanded code
[[File:Flag of the People's Republic of China.svg|22x20px|border|alt=|link=]] [[China at the 2006 Winter Olympics|China]]
[[File:Flag of the People's Republic of China.svg|22x20px|border|alt=|link=]] [[China at the 2006 Winter Olympics|China]]
{{flagIOC|CAN|1924 Winter}}
{{flagIOC|CAN|1924 Winter}}
 Canada
 Canada
Expanded code
[[File:Flag of Canada (1921–1957).svg|22x20px|border|alt=|link=]] [[Canada at the 1924 Winter Olympics|Canada]]
[[File:Flag of Canada (1921–1957).svg|22x20px|border|alt=|link=]] [[Canada at the 1924 Winter Olympics|Canada]]
{{flagIOC|GRE|2004 Summer|441}}
{{flagIOC|GRE|2004 Summer|441}}
 Greece (441)
 Greece (441)
Expanded code
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>

Spaces in unnamed parameters

[edit]
Leading spaces: template vs. sandbox
 {{flagIOC| GRE| 2004 Summer| 441}}
 Greece (441)
 Greece (441)
Expanded code
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
Trailing spaces: template vs. sandbox
 {{flagIOC|GRE |2004 Summer |441 }}
 Greece (441)
 Greece (441)
Expanded code
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
Leading & trailing spaces: template vs. sandbox
 {{flagIOC| GRE | 2004 Summer | 441 }}
 Greece (441)
 Greece (441)
Expanded code
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
Template without and with spaces
 {{flagIOC|GRE|2004 Summer|441}}
{{flagIOC| GRE | 2004 Summer | 441 }}
 Greece (441)
 Greece (441)
Expanded code
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
Sandbox without and with spaces
 {{flagIOC/sandbox|GRE|2004 Summer|441}}
{{flagIOC/sandbox| GRE | 2004 Summer | 441 }}
 Greece (441)
 Greece (441)
Expanded code
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>
[[File:Flag of Greece.svg|22x20px|border|alt=|link=]]&nbsp;[[Greece at the 2004 Summer Olympics|Greece]]&nbsp;<span style="font-size:90%;">(441)</span>

Text wrapping

[edit]
Text wrapping in narrow table cell
<table class="wikitable"><tr><td style="width:1em;">{{FlagIOC|GBR}}</td></tr></table>
 Great Britain
 Great Britain
Expanded code
<table class="wikitable"><tr><td style="width:1em;">[[File:Flag of the United Kingdom.svg|22x20px|border|alt=|link=]]&nbsp;[[Great Britain at the Olympics|Great Britain]]</td></tr></table>
<table class="wikitable"><tr><td style="width:1em;">[[File:Flag of the United Kingdom.svg|22x20px|border|alt=|link=]]&nbsp;[[Great Britain at the Olympics|Great Britain]]</td></tr></table>
Text wrapping in narrow div
<div style="width:1em;">{{FlagIOC|GBR}}</div>
Expanded code
<div style="width:1em;">[[File:Flag of the United Kingdom.svg|22x20px|border|alt=|link=]]&nbsp;[[Great Britain at the Olympics|Great Britain]]</div>
<div style="width:1em;">[[File:Flag of the United Kingdom.svg|22x20px|border|alt=|link=]]&nbsp;[[Great Britain at the Olympics|Great Britain]]</div>