Jump to content

Template:Defn/testcases

From Wikipedia, the free encyclopedia
[edit]

Just numbering

[edit]

{{defn/sandbox|1=Lorem ipsum dolor sit amet, consectetur adipisicing elit.|2=2}}

Result:

2.  Lorem ipsum dolor sit amet, consectetur adipisicing elit.

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:

2.  Lorem ipsum dolor sit amet, consectetur adipisicing elit.

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:

2.  Lorem ipsum dolor sit amet, consectetur adipisicing elit.

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:

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

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:

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

HTML:

<dd class="glossary" id="snorkel_weasel">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</dd>

Test: Passed.