Difference between revisions of "Template:Infobox astro object/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Topbanana
(Adding test case for automatic pluralisation of 'nebula')
imported>Sardanaphalus
(Testcases notice, div col, headings, Testcase table)
Line 1: Line 1:
{{Template test cases notice}}
 
 
{{nobots}}
 
{{nobots}}
 +
{{Testcases notice |toc=on}}
  
----
+
{{Testcase table |_caption=No parameters}}
<nowiki>{{Template:Infobox astro object/sandbox}}</nowiki>
+
 
{{Template:Infobox astro object/sandbox}}
+
{{clear}}
<br clear=all/>
+
 
----
+
== ''dist_'' ==
<nowiki>
+
{{Start div col}}
{{Template:Infobox astro object/sandbox
+
 
|name= testcase1
+
{{Testcase table |_caption=''dist_ly'' {{=}} 50
|dist_ly=50
+
| name = ''dist_ly'' {{=}} 50
 +
| dist_ly = 50
 
}}
 
}}
</nowiki>
+
 
{{Template:Infobox astro object/sandbox
+
{{Testcase table |_caption=''dist_pc'' {{=}} 50
|name= testcase1
+
| name = ''dist_pc'' {{=}} 50
|dist_ly=50
+
| dist_pc = 50
 
}}
 
}}
<br clear=all/>
+
 
----
+
{{Testcase table |_caption=''dist_ly'' {{=}} 50<br/>''dist_pc'' {{=}} 50
<nowiki>
+
| name = ''dist_ly'' {{=}} 50<br/>''dist_pc'' {{=}} 50
{{Template:Infobox astro object/sandbox
+
| dist_ly = 50
|name= testcase2
+
| dist_pc = 50
|dist_pc=50
 
 
}}
 
}}
</nowiki>
+
 
{{Template:Infobox astro object/sandbox
+
{{End div col}}
|name= testcase2
+
{{clear}}
|dist_pc=50
+
 
 +
== ''type'' ==
 +
{{Start div col}}
 +
 
 +
{{Testcase table |_caption=''type'' {{=}} void
 +
| name = ''type'' {{=}} void
 +
| type = void
 
}}
 
}}
<br clear=all/>
+
 
----
+
{{Testcase table |_caption=''type'' {{=}} galaxy
<nowiki>
+
| name = ''type'' {{=}} galaxy
{{Template:Infobox astro object/sandbox
+
| type = galaxy
|name= testcase3
 
|dist_ly=50
 
|dist_pc=50
 
 
}}
 
}}
</nowiki>
+
 
{{Template:Infobox astro object/sandbox
+
{{Testcase table |_caption=''type'' {{=}} emission nebula
|name= testcase3
+
| name = ''type'' {{=}} emission nebula
|dist_ly=50
+
| type = emission nebula
|dist_pc=50
 
 
}}
 
}}
<br clear=all/>
+
 
----
+
{{End div col}}
<nowiki>
 
{{Template:Infobox astro object/sandbox
 
|name= testcase4
 
|type= void
 
}}
 
</nowiki>
 
{{Template:Infobox astro object/sandbox
 
|name= testcase4
 
|type= void
 
}}
 
<br clear=all/>
 
----
 
<nowiki>
 
{{Template:Infobox astro object/sandbox
 
|name= testcase4
 
|type= galaxies
 
}}
 
</nowiki>
 
{{Template:Infobox astro object/sandbox
 
|name= testcase4
 
|type= galaxies
 
}}
 
<br clear=all/>
 
----
 
<nowiki>
 
{{Template:infobox astro object/sandbox
 
|name= testcase5
 
|type=emission nebula
 
}}
 
</nowiki>
 
{{Template:infobox astro object/sandbox
 
|name= testcase5
 
|dist_ly=50
 
|dist_pc=50
 
|type= emission nebula
 
}}
 
<br clear=all/>
 
----
 

Revision as of 14:15, 23 December 2014

Template:Nobots

Template:Testcase table

dist_

Template:Start div col

Template:Testcase table

Template:Testcase table

Template:Testcase table

type

Template:Start div col

Template:Testcase table

Template:Testcase table

Template:Testcase table