Template:Defn/testcases
Appearance
This is the template test cases page for the sandbox of Template:Defn. 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: |
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.