Template:Table/docEdit This Page

From FamilySearch Wiki

< Template:Table(Difference between revisions)
m
(moved reflist)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Documentation subpage}}  
  
== Usage ==
+
== Usage ==
  
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).  
+
To specify a straight forward table without needing to input ''all the wikicode required&nbsp;<ref>http://en.wikipedia.org/wiki/Template:Table</ref>''&nbsp;(in particular the <code><big>{{!-}}</big></code> row divisions).  
 
<pre>{{Table
 
<pre>{{Table
 
|type  =        // default: style="background:transparent;"
 
|type  =        // default: style="background:transparent;"
Line 13: Line 13:
 
}}
 
}}
 
</pre>  
 
</pre>  
All parameters optional.
+
All parameters optional.  
  
==Examples==
+
<br>
===Example One===
+
 
<pre>
+
 
{{Table
+
== Examples ==
 +
 
 +
=== Example One ===
 +
<pre>{{Table
 
|hdrs=Timeline
 
|hdrs=Timeline
 
|row1=2001 Started research
 
|row1=2001 Started research
 
|row2=2002 Published findings}}
 
|row2=2002 Published findings}}
</pre>
+
</pre>  
{{Table|hdrs=Timeline|row1=2001 Started research|row2=2002 Published findings}}
+
{{Table|hdrs=Timeline|row1=2001 Started research|row2=2002 Published findings}}  
===Example Two===
+
 
<pre>
+
=== Example Two ===
{{Table
+
<pre>{{Table
 
|type=class="wikitable sortable"
 
|type=class="wikitable sortable"
 
|title=Example Table Two
 
|title=Example Table Two
Line 32: Line 35:
 
|row1=2001{{!!}}Started research
 
|row1=2001{{!!}}Started research
 
|row2=2002{{!!}}Published findings}}
 
|row2=2002{{!!}}Published findings}}
</pre>
+
</pre>  
{{Table|type=class="wikitable sortable"|title=Example Table Two|hdrs=Year!!Comments|row1=2001{{!!}}Started research|row2=2002{{!!}}Published findings}}
+
{{Table|type=class="wikitable sortable"|title=Example Table Two|hdrs=Year!!Comments|row1=2001{{!!}}Started research|row2=2002{{!!}}Published findings}}  
  
==Misuse of this template==
+
== Misuse of this template ==
Inexperienced editors may confuse this template with the [[Help:Tables|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: '''<nowiki>{{table}}</nowiki>'''. To prevent this from occurring, a message is displayed to the user instructing them about misuse. Also, the page is added to the [[:Category:Articles using the table template incorrectly|Articles using the table template incorrectly]] category. After the initial cleanup (all instances of <nowiki>{{table}}</nowiki> 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==
+
Inexperienced editors may confuse this template with the [[Help:Tables|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: '''<nowiki>{{table}}</nowiki>'''. To prevent this from occurring, a message is displayed to the user instructing them about misuse. Also, the page is added to the [[:Category:Articles using the table template incorrectly|Articles using the table template incorrectly]] category. After the initial cleanup (all instances of <nowiki>{{table}}</nowiki> 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!
* [http://excel2wiki.net/wikipedia.php Copy & Paste Excel-to-Wiki Converter]; a fine tool for copying excel to wiki
+
 
 +
== External links ==
 +
 
 +
*[http://excel2wiki.net/wikipedia.php Copy &amp; Paste Excel-to-Wiki Converter]; a fine tool for copying excel to wiki  
 
*[[commons:Commons:Convert tables and charts to wiki code|Commons:Convert tables and charts to wiki code]]
 
*[[commons:Commons:Convert tables and charts to wiki code|Commons:Convert tables and charts to wiki code]]
 +
 +
 
<includeonly>
 
<includeonly>
 
[[Category:Table and column templates|{{PAGENAME}}]]
 
[[Category:Table and column templates|{{PAGENAME}}]]
 
</includeonly>
 
</includeonly>
 +
 +
 +
{{reflist}}

Latest revision as of 22:19, 26 February 2015

Contents

Usage

To specify a straight forward table without needing to input all the wikicode required [1] (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

Example One

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

Example Two

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

Misuse of this template

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




  • This page was last modified on 26 February 2015, at 22:19.
  • This page has been accessed 898 times.