Difference between revisions of "Template:Single Column"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (missed an argument I think)
m (clean up)
 
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
|-
 
|-
| {{Pipe Trick|{{{1}}}}} <!--
+
| {{Pipe Trick|{{{1}}}}}
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{2|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{2}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{3|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{3}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{4|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{4}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{5|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{5}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{6|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{6}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{7|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{7}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{8|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{8}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{9|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{9}}}}}<!--
 
-->{{#ifeq:TEMPLATE_TABLE_ARGUMENT_ABSENT|{{{10|TEMPLATE_TABLE_ARGUMENT_ABSENT}}} {{!!}} {{{10}}}}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 04:53, 17 August 2010

Template documentation (for the above template, sometimes hidden or invisible)

This template is meant for outputting things with Semantic Mediawiki. This template is designed as an alternative to Template:Table Row, as it allows for output in a single column. This template is primarily intended for making simple lists. For example, if you want to output a specific author's (in this case, Eiji-kun) base classes, you could do:

{| style="text-align:left;"
|-
! Class Name
{{#ask: [[Author::Eiji-kun]] [[Category:Class]] [[Category:Base Class]]
|format=template
|template=Single Column
|link=none
|limit=2
}}
|}

Which provides the following list:

Class Name
Adversary of Faith
Architect

... further results

You can also modify this list in any of the same ways that you would modify a table. Adding class="zebra d20" to the first line would make it look like most other tables on the wiki.

Whenever you use this template, be sure you use the "link=none" parameter. This template automatically turns its first argument into a page link, and removes the () tags at the end of most pages.