Difference between revisions of "Template:Table Row/doc"

From Dungeons and Dragons Wiki
Jump to: navigation, search
(Created page with 'This template is meant for outputting things with Semantic Mediawiki. If you want a basic table output, but don't like the default style for Semantic MediaWiki tables, you can se…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
'''Do not use this template in new pages. Use [[Template:Table Row2]] instead.'''
 +
 
This template is meant for outputting things with Semantic Mediawiki. If you want a basic table output, but don't like the default style for Semantic MediaWiki tables, you can set up your own table and have the output be sent to this template, which formats it into a table row. For example, if you want to output the 3.5e base classes into a regular zebra table, you could do:
 
This template is meant for outputting things with Semantic Mediawiki. If you want a basic table output, but don't like the default style for Semantic MediaWiki tables, you can set up your own table and have the output be sent to this template, which formats it into a table row. For example, if you want to output the 3.5e base classes into a regular zebra table, you could do:
  
Line 9: Line 11:
 
|format=template
 
|format=template
 
|template=Table Row
 
|template=Table Row
 +
|link=none
 
}}
 
}}
 
|}
 
|}
 
</pre>
 
</pre>
 +
 +
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.

Latest revision as of 23:07, 22 May 2019

Do not use this template in new pages. Use Template:Table Row2 instead.

This template is meant for outputting things with Semantic Mediawiki. If you want a basic table output, but don't like the default style for Semantic MediaWiki tables, you can set up your own table and have the output be sent to this template, which formats it into a table row. For example, if you want to output the 3.5e base classes into a regular zebra table, you could do:

{| class="zebra d20"
|-
! Class Name !! Class Description
{{#ask: [[Category:3.5e]] [[Category:User]] [[Category:Class]] [[Category:Base Class]]
|?Summary
|format=template
|template=Table Row
|link=none
}}
|}

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.