Template:STDT: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
(Created page with "class="{{{1|}}} table"<noinclude>__NOTOC__ ==Description== '''''S'''tandard '''T'''able '''D'''esign '''T'''emplate'' is used to give tables across the wiki a consistent desi...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
class="{{{1|}}} table"<noinclude>__NOTOC__
class="{{{1|}}} table"<noinclude>
== Description ==
The '''''S'''tandard '''T'''able '''D'''esign '''T'''emplate'' is used to give tables across the wiki a similar design, fitting the topic of the main article.


==Description==
== Usage ==
'''''S'''tandard '''T'''able '''D'''esign '''T'''emplate'' is used to give tables across the wiki a consistent design.
<pre>{{STDT}}</pre>
<pre>{{STDT|<type>}}</pre>


It uses the '''.table''' class which is currently defined in [[MediaWiki:Common.css]].
== Examples ==
 
=== Basic use ===
==Syntax==
<pre>{{STDT|<optional classes>}}</pre>
 
==Examples==
A basic table starts like this
<pre>
<pre>
{| {{STDT}}
{| {{STDT}}
! Heading 1 !! Heading 2 !! Heading 3
|-
! Subheading 1
| 1.1 || 1.2
|-
! Subheading 2
| 2.1 || 2.2
|}
</pre>
</pre>
{| {{STDT}}
! Heading 1 !! Heading 2 !! Heading 3
|-
! Subheading 1
| 1.1 || 1.2
|-
! Subheading 2
| 2.1 || 2.2
|}


A sortable table starts like this
[[Category:Table formatting templates|*]]
<pre>
{| {{STDT|sortable}}
</pre>
 
[[Category:Formatting templates|STDT]]
</noinclude>
</noinclude>

Latest revision as of 16:06, 1 April 2019

class=" table"

Description

The Standard Table Design Template is used to give tables across the wiki a similar design, fitting the topic of the main article.

Usage

{{STDT}}
{{STDT|<type>}}

Examples

Basic use

{| {{STDT}}
! Heading 1 !! Heading 2 !! Heading 3
|-
! Subheading 1
| 1.1 || 1.2
|-
! Subheading 2
| 2.1 || 2.2
|}
Heading 1 Heading 2 Heading 3
Subheading 1 1.1 1.2
Subheading 2 2.1 2.2