Difference between revisions of "Template:Etymology/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Nagualdesign
m (→‎Valid input: hmmm... 'english' works too...)
imported>Frietjes
(table)
 
Line 4: Line 4:
 
This table lists transclusions that are valid according to the documentation, and the output that they produce.
 
This table lists transclusions that are valid according to the documentation, and the output that they produce.
  
{{table
+
{| class="wikitable"
|type=class="wikitable"
+
! Transclusion || Result
|hdrs=Transclusion {{!!}} Result
+
|-
|row1= {{tlc|{{BASEPAGENAME}}|english|example|instance}}
+
| {{tlc|{{BASEPAGENAME}}|english|example|instance}}
     {{!!}} {{{{BASEPAGENAME}}|en|example|instance}}
+
     || {{{{BASEPAGENAME}}|en|example|instance}}
|row2= {{tlc|{{BASEPAGENAME}}|la|exempli gratia}}
+
|-
     {{!!}} {{{{BASEPAGENAME}}|la|exempli gratia}}
+
| {{tlc|{{BASEPAGENAME}}|la|exempli gratia}}
|row3= {{tlc|{{BASEPAGENAME}}|la|exempli gratia|for example}}
+
     || {{{{BASEPAGENAME}}|la|exempli gratia}}
     {{!!}} {{{{BASEPAGENAME}}|la|exempli gratia|for example}}
+
|-
|row4= {{tlc|{{BASEPAGENAME}}|grc|tele-|far off|la|visio}}
+
| {{tlc|{{BASEPAGENAME}}|la|exempli gratia|for example}}
     {{!!}} {{{{BASEPAGENAME}}|grc|tele-|far off|la|visio}}
+
     || {{{{BASEPAGENAME}}|la|exempli gratia|for example}}
|row5= {{tlc|{{BASEPAGENAME}}|grc|tele-|far off|la|visio|vision}}
+
|-
     {{!!}} {{{{BASEPAGENAME}}|grc|tele-|far off|la|visio|vision}}
+
| {{tlc|{{BASEPAGENAME}}|grc|tele-|far off|la|visio}}
|row6= {{tlc|{{BASEPAGENAME}}|en}}         
+
     || {{{{BASEPAGENAME}}|grc|tele-|far off|la|visio}}
     {{!!}} {{{{BASEPAGENAME}}|en}}
+
|-
|row9= {{tlc|{{BASEPAGENAME}}|en|example|instance|fr|exemple}}
+
| {{tlc|{{BASEPAGENAME}}|grc|tele-|far off|la|visio|vision}}
     {{!!}} {{{{BASEPAGENAME}}|en|example|instance|fr|exemple}}
+
     || {{{{BASEPAGENAME}}|grc|tele-|far off|la|visio|vision}}
|row10= {{tlc|{{BASEPAGENAME}}|grc|tele-||la|visio}}
+
|-
     {{!!}} {{{{BASEPAGENAME}}|grc|tele-||la|visio}}
+
| {{tlc|{{BASEPAGENAME}}|en}}         
|row11= {{tlc|{{BASEPAGENAME}}|grc|tele-||la|visio|vision}}
+
     || {{{{BASEPAGENAME}}|en}}
     {{!!}} {{{{BASEPAGENAME}}|grc|tele-||la|visio|vision}}
+
|-
|row12= {{tlc|{{BASEPAGENAME}}|en|||de}}
+
| {{tlc|{{BASEPAGENAME}}|en|example|instance|fr|exemple}}
     {{!!}} {{{{BASEPAGENAME}}|en|||de}}
+
     || {{{{BASEPAGENAME}}|en|example|instance|fr|exemple}}
|row13= {{tlc|{{BASEPAGENAME}}||example}}
+
|-
     {{!!}} {{{{BASEPAGENAME}}||example}}
+
| {{tlc|{{BASEPAGENAME}}|grc|tele-||la|visio}}
|row14= {{tlc|{{BASEPAGENAME}}|grc|tele-|far off||vision}}
+
     || {{{{BASEPAGENAME}}|grc|tele-||la|visio}}
     {{!!}} {{{{BASEPAGENAME}}|grc|tele-|far off||vision}}
+
|-
|row15= {{tlc|{{BASEPAGENAME}}||tele-|far off||vision}}
+
| {{tlc|{{BASEPAGENAME}}|grc|tele-||la|visio|vision}}
     {{!!}} {{{{BASEPAGENAME}}||tele-|far off||vision}}
+
     || {{{{BASEPAGENAME}}|grc|tele-||la|visio|vision}}
}}
+
|-
 +
| {{tlc|{{BASEPAGENAME}}|en|||de}}
 +
     || {{{{BASEPAGENAME}}|en|||de}}
 +
|-
 +
| {{tlc|{{BASEPAGENAME}}||example}}
 +
     || {{{{BASEPAGENAME}}||example}}
 +
|-
 +
| {{tlc|{{BASEPAGENAME}}|grc|tele-|far off||vision}}
 +
     || {{{{BASEPAGENAME}}|grc|tele-|far off||vision}}
 +
|-
 +
| {{tlc|{{BASEPAGENAME}}||tele-|far off||vision}}
 +
     || {{{{BASEPAGENAME}}||tele-|far off||vision}}
 +
|}
  
 
== Invalid input ==
 
== Invalid input ==
 
This table lists intentionally erroneous input to see what kind of output the template produces. Ideally it should produce output that gives the transcluder some clue what they may have done wrong.
 
This table lists intentionally erroneous input to see what kind of output the template produces. Ideally it should produce output that gives the transcluder some clue what they may have done wrong.
  
{{table
+
{| class="wikitable"
|type=class="wikitable"
+
! Transclusion || Result
|hdrs=Transclusion {{!!}} Result
+
|-
|row1= {{tlc|ety}}
+
| {{tlc|ety}}
     {{!!}} {{ety}}
+
     || {{ety}}
|row2= {{tlc|{{BASEPAGENAME}}|english}}         
+
|-
     {{!!}} {{{{BASEPAGENAME}}|english}}
+
| {{tlc|{{BASEPAGENAME}}|english}}         
|row3= {{tlc|{{BASEPAGENAME}}|english|example}}
+
     || {{{{BASEPAGENAME}}|english}}
     {{!!}} {{{{BASEPAGENAME}}|english|example}}
+
|-
|row4= {{tlc|{{BASEPAGENAME}}|english|example|instance}}
+
| {{tlc|{{BASEPAGENAME}}|english|example}}
     {{!!}} {{{{BASEPAGENAME}}|english|example|instance}}
+
     || {{{{BASEPAGENAME}}|english|example}}
|row5= {{tlc|{{BASEPAGENAME}}|english|example|instance|french}}
+
|-
     {{!!}} {{{{BASEPAGENAME}}|english|example|instance|french}}
+
| {{tlc|{{BASEPAGENAME}}|english|example|instance}}
|row6= {{tlc|{{BASEPAGENAME}}|english|example|instance|french|exemple}}
+
     || {{{{BASEPAGENAME}}|english|example|instance}}
     {{!!}} {{{{BASEPAGENAME}}|english|example|instance|french|exemple}}
+
|-
|row7= {{tlc|{{BASEPAGENAME}}|english|example|instance|french|exemple}}
+
| {{tlc|{{BASEPAGENAME}}|english|example|instance|french}}
     {{!!}} {{{{BASEPAGENAME}}|english|example|instance|french|exemple}}
+
     || {{{{BASEPAGENAME}}|english|example|instance|french}}
|row8= {{tlc|{{BASEPAGENAME}}|la|tele-|far off|grc|vision|vision|toomany}}
+
|-
     {{!!}} {{{{BASEPAGENAME}}|la|tele-|far off|grc|vision|vision|toomany}}
+
| {{tlc|{{BASEPAGENAME}}|english|example|instance|french|exemple}}
}}
+
     || {{{{BASEPAGENAME}}|english|example|instance|french|exemple}}
 +
|-
 +
| {{tlc|{{BASEPAGENAME}}|english|example|instance|french|exemple}}
 +
     || {{{{BASEPAGENAME}}|english|example|instance|french|exemple}}
 +
|-
 +
| {{tlc|{{BASEPAGENAME}}|la|tele-|far off|grc|vision|vision|toomany}}
 +
     || {{{{BASEPAGENAME}}|la|tele-|far off|grc|vision|vision|toomany}}
 +
|}

Latest revision as of 00:15, 21 February 2015

Valid input

This table lists transclusions that are valid according to the documentation, and the output that they produce.

Transclusion Result
{{Etymology|english|example|instance}} from English example 'instance'
{{Etymology|la|exempli gratia}} from Latin exempli gratia
{{Etymology|la|exempli gratia|for example}} from Latin exempli gratia 'for example'
{{Etymology|grc|tele-|far off|la|visio}} from Ancient Greek tele- 'far off', and Latin visio
{{Etymology|grc|tele-|far off|la|visio|vision}} from Ancient Greek tele- 'far off', and Latin visio 'vision'
{{Etymology|en}} from English
{{Etymology|en|example|instance|fr|exemple}} from English example 'instance', and French exemple
{{Etymology|grc|tele-||la|visio}} from Ancient Greek tele- and Latin visio
{{Etymology|grc|tele-||la|visio|vision}} from Ancient Greek tele- and Latin visio 'vision'
{{Etymology|en|||de}} from English and German
{{Etymology||example}} from example
{{Etymology|grc|tele-|far off||vision}} from Ancient Greek tele- 'far off', and vision
{{Etymology||tele-|far off||vision}} from tele- 'far off', and vision

Invalid input

This table lists intentionally erroneous input to see what kind of output the template produces. Ideally it should produce output that gives the transcluder some clue what they may have done wrong.

Transclusion Result
{{ety}} {{etymology}} requires 1st or 2nd parameter in each triplet!
{{Etymology|english}} from english
{{Etymology|english|example}} from english example
{{Etymology|english|example|instance}} from english example 'instance'
{{Etymology|english|example|instance|french}} from english example 'instance', and french
{{Etymology|english|example|instance|french|exemple}} from english example 'instance', and french exemple
{{Etymology|english|example|instance|french|exemple}} from english example 'instance', and french exemple
{{Etymology|la|tele-|far off|grc|vision|vision|toomany}} from Latin tele- 'far off', Ancient Greek vision 'vision', and toomany