Diferencia entre revisiones de «Template:Table/doc»

(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> {{Documentation subpage}} ==Usage== To specify a straightforward t...")
 
Sin resumen de edición
 
(No se muestran 5 ediciones intermedias del mismo usuario)
Línea 3: Línea 3:


{{Documentation subpage}}
{{Documentation subpage}}


==Usage==
==Usage==
Línea 8: Línea 9:
<pre>
<pre>
{{Table
{{Table
|type  =        // default: style="background:transparent;"
|type  =        // default: style="border:#c9c9c9 1px solid; margin: 1em 1em 1em 0; border-collapse: collapse;"
|title =     
|title =     
|hdrs  =        // first header !! second header !! ...  
|hdrs  =        // first header !! second header !! ...  
Línea 39: Línea 40:
{{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==
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==
==External links==
* [http://excel2wiki.net/wikipedia.php Copy & Paste Excel-to-Wiki Converter]; a fine tool for copying Excel data to wiki
* [http://excel2wiki.net/wikipedia.php Copy & Paste Excel-to-Wiki Converter]  
 
<includeonly>
<includeonly>
[[Category:Table and column templates]]
[[Category:Table and column templates]]


</includeonly>
</includeonly>

Revisión actual - 12:08 3 nov 2014



Usage

To specify a straightforward table without needing to input all the wikicode required (in particular the |- row divisions).

{{Table
|type  =        // default: style="border:#c9c9c9 1px solid; margin: 1em 1em 1em 0; border-collapse: collapse;"
|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}}

class="wikitable"

Example Two

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

class="wikitable"


External links