Template:Defn/testcases
Appearance
Tests of id
, numbering and related code
[edit]Just numbering
[edit]{{defn/sandbox|1=Lorem ipsum dolor sit amet, consectetur adipisicing elit.|2=2}}
Result:
HTML:
<dd class="glossary">2. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</dd>
Test: Passed.
Numbering (with "no=") and term
[edit]{{defn/sandbox|1=Lorem ipsum dolor sit amet, consectetur adipisicing elit.|no=2|term=blubbermonster}}
Result:
HTML:
<dd class="glossary" id="blubbermonster-defn2">2. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</dd>
Test: Passed.
Explicit ID will override numbering and term
[edit]{{defn/sandbox|1=Lorem ipsum dolor sit amet, consectetur adipisicing elit.|2=2|term=blubbermonster|id=snorkelweasel}}
Result:
HTML:
<dd class="glossary" id="snorkelweasel">2. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</dd>
Test: Passed.
Term without numbering defaults to numbering of 1
[edit]{{defn/sandbox|1=Lorem ipsum dolor sit amet, consectetur adipisicing elit.|term=blubbermonster}}
Result:
HTML:
<dd class="glossary" id="blubbermonster-defn1">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</dd>
Test: Passed.
Can MediaWiki compensate for " " (space) in the ID?
[edit]{{defn/sandbox|1=Lorem ipsum dolor sit amet, consectetur adipisicing elit.|id=snorkel weasel}}
Result:
HTML:
<dd class="glossary" id="snorkel_weasel">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</dd>
Test: Passed.