Template:Table/doc: Difference between revisions

From FamilySearch Wiki
(Created page with '{{Documentation subpage}} ==Usage== To specify a straightforward table without needing to input ''all the wikicode required''{{Citation needed|reason=specify the required code, …')
 
mNo edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


==Usage==
== Usage ==
To specify a straightforward table without needing to input ''all the wikicode required''{{Citation needed|reason=specify the required code, incomplete. Reference?}} (in particular the <code><big>{{!-}}</big></code> row divisions).
 
<pre>
To specify a straight forward table without needing to input ''all the wikicode required''{{Citation needed|reason=specify the required code, incomplete. Reference?}} (in particular the <code><big>{{!-}}</big></code> row divisions).  
{{Table
<pre>{{Table
|type  =        // default: style="background:transparent;"
|type  =        // default: style="background:transparent;"
|title =     
|title =     
|hdrs  =        // first header !! second header !! ...  
|hdrs  =        // first header&nbsp;!! second header&nbsp;!! ...  
|row1  =        // first cell's contents {{!!}} second cell's contents {{!!}} ...  
|row1  =        // first cell's contents {{!!}} second cell's contents {{!!}} ...  
...
...
|row100 =        // last possible row
|row100 =        // last possible row
}}
}}
</pre>
</pre>  
 
All parameters optional.
All parameters optional.



Revision as of 07:12, 18 June 2012

Usage[edit source]

To specify a straight forward table without needing to input all the wikicode required[citation needed]

(in particular the |- row divisions). 
{{Table
|type  =        // default: style="background:transparent;"
|title =     
|hdrs  =        // first header !! second header !! ... 
|row1  =        // first cell's contents {{!!}} second cell's contents {{!!}} ... 
...
|row100 =        // last possible row
}}

All parameters optional.

Examples[edit source]

Example One[edit source]

{{Table
|hdrs=Timeline
|row1=2001 Started research
|row2=2002 Published findings}}

Example Two[edit source]

{{Table
|type=class="wikitable sortable"
|title=Example Table Two
|hdrs=Year!!Comments
|row1=2001{{!!}}Started research
|row2=2002{{!!}}Published findings}}

Misuse of this template[edit source]

Inexperienced editors may confuse this template with the manual way of making tables, and mix the two, or otherwise make odd mistakes. For example, this text (that accomplishes nothing) may appear within a page's wikimarkup: {{table}}. To prevent this from occurring, a message is displayed to the user instructing them about misuse. Also, the page is added to the Articles using the table template incorrectly category. After the initial cleanup (all instances of {{table}} were removed), it seems unlikely now that someone would use this template wrong because of the warning message. But keep an eye on that category, just in case!

External links[edit source]