Template:T: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 14: Line 14:


== Usage ==
== Usage ==
 
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Default Usage</span><br><span style="font-weight: normal;">When used with no additional parameters, the template will return a list split in 3 columns.</span>
|-
! width=25%|You Type
!You Get
|-
| style="text-align: left; background-color: white;" |<pre>
{{columns|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
</pre>
| style="background-color: white;" |{{columns|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Count Parameter</span><br><span style="font-weight: normal;">You can specify the number of columns in the output through use of the <code>count=</code> parameter.</span>
|-
! width=25%|You Type
!You Get
|-
| style="text-align: left; background-color: white;" |<pre>
{{columns|count=2|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
</pre>
| style="background-color: white;" |{{columns|count=2|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
|}
{{t|t|template name|first parameter|second parameter}}.
{{t|t|template name|first parameter|second parameter}}.



Revision as of 23:18, 17 April 2025

Description

This template is used to provide stylized formatting to template displays without actually using the template itself. It will provide a link to that templates page in the Templates namespace. Most commonly, this template is used for demonstrative or linking purposes in the Help Guide or on Template Description pages.

Usage

Default Usage
When used with no additional parameters, the template will return a list split in 3 columns.
You Type You Get
{{columns|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6
Count Parameter
You can specify the number of columns in the output through use of the count= parameter.
You Type You Get
{{columns|count=2|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6

{{t|template name|first parameter|second parameter}}.

To pass named parameters, you can

  • use name &#61; value — {{t|Rosharan numeric date|year &#61; 1172|month &#61; 5|week &#61; 10|day &#61; 6}};
  • surround it in <nowiki /> tags — {{t|Rosharan numeric date|<nowiki>year=1172|month=5|week=1|day=6</nowiki>}}; or
  • use correctly numbered parameters.

{{Columns|count=3|* Item 1* Item 2}}

Pages using Template