Difference between revisions of "Template:MedalGold/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create testcases)
 
imported>Zyxw
(expand)
Line 1: Line 1:
 
{{Testcases notice <!--|toc=on-->}}
 
{{Testcases notice <!--|toc=on-->}}
  
== Test case 1 ==
+
== Normal usage ==
 
{{Testcase table|_showcode=true|[[1972 Summer Olympics|1972 Munich]]|[[Swimming at the 1972 Summer Olympics - Men's 100 metre butterfly|100 m butterfly]]}}
 
{{Testcase table|_showcode=true|[[1972 Summer Olympics|1972 Munich]]|[[Swimming at the 1972 Summer Olympics - Men's 100 metre butterfly|100 m butterfly]]}}
 
; Output as displayed in a medal table
 
; Output as displayed in a medal table
Line 9: Line 9:
 
{| class="infobox" style="width:22em; float:left;"
 
{| class="infobox" style="width:22em; float:left;"
 
{{{{BASEPAGENAME}}/sandbox|[[1972 Summer Olympics|1972 Munich]]|[[Swimming at the 1972 Summer Olympics - Men's 100 metre butterfly|100 m butterfly]]}}
 
{{{{BASEPAGENAME}}/sandbox|[[1972 Summer Olympics|1972 Munich]]|[[Swimming at the 1972 Summer Olympics - Men's 100 metre butterfly|100 m butterfly]]}}
 +
|} — '''{{BASEPAGENAME}}/sandbox'''<br clear="all">
 +
 +
== 2nd parameter missing ==
 +
{{Testcase table|_showcode=true|[[1972 Summer Olympics|1972 Munich]]}}
 +
; Output as displayed in a medal table
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}}|[[1972 Summer Olympics|1972 Munich]]}}
 +
|} — '''{{BASEPAGENAME}}'''<br clear="left">
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}}/sandbox|[[1972 Summer Olympics|1972 Munich]]}}
 +
|} — '''{{BASEPAGENAME}}/sandbox'''<br clear="all">
 +
 +
== 2nd parameter empty ==
 +
{{Testcase table|_showcode=true|[[1972 Summer Olympics|1972 Munich]]|}}
 +
; Output as displayed in a medal table
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}}|[[1972 Summer Olympics|1972 Munich]]|}}
 +
|} — '''{{BASEPAGENAME}}'''<br clear="left">
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}}/sandbox|[[1972 Summer Olympics|1972 Munich]]|}}
 +
|} — '''{{BASEPAGENAME}}/sandbox'''<br clear="all">
 +
 +
== 1st parameter empty ==
 +
{{Testcase table|_showcode=true||[[Swimming at the 1972 Summer Olympics - Men's 100 metre butterfly|100 m butterfly]]}}
 +
; Output as displayed in a medal table
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}}||[[Swimming at the 1972 Summer Olympics - Men's 100 metre butterfly|100 m butterfly]]}}
 +
|} — '''{{BASEPAGENAME}}'''<br clear="left">
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}}/sandbox||[[Swimming at the 1972 Summer Olympics - Men's 100 metre butterfly|100 m butterfly]]}}
 +
|} — '''{{BASEPAGENAME}}/sandbox'''<br clear="all">
 +
 +
== No parameters ==
 +
{{Testcase table|_showcode=true}}
 +
; Output as displayed in a medal table
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}} }}
 +
|} — '''{{BASEPAGENAME}}'''<br clear="left">
 +
{| class="infobox" style="width:22em; float:left;"
 +
{{{{BASEPAGENAME}}/sandbox}}
 
|} — '''{{BASEPAGENAME}}/sandbox'''<br clear="all">
 
|} — '''{{BASEPAGENAME}}/sandbox'''<br clear="all">

Revision as of 22:19, 24 June 2015

Normal usage

Template:Testcase table

Output as displayed in a medal table
Gold medal – first place 1972 Munich 100 m butterfly

MedalGold

Gold medal – first place 1972 Munich 100 m butterfly

MedalGold/sandbox

2nd parameter missing

Template:Testcase table

Output as displayed in a medal table
Gold medal – first place 1972 Munich {{{2}}}

MedalGold

Gold medal – first place 1972 Munich {{{2}}}

MedalGold/sandbox

2nd parameter empty

Template:Testcase table

Output as displayed in a medal table
Gold medal – first place 1972 Munich

MedalGold

Gold medal – first place 1972 Munich

MedalGold/sandbox

1st parameter empty

Template:Testcase table

Output as displayed in a medal table
Gold medal – first place 100 m butterfly

MedalGold

Gold medal – first place 100 m butterfly

MedalGold/sandbox

No parameters

Template:Testcase table

Output as displayed in a medal table
Gold medal – first place {{{1}}} {{{2}}}

MedalGold

Gold medal – first place {{{1}}} {{{2}}}

MedalGold/sandbox