Template:Hs: Difference between revisions
Jump to navigation
Jump to search
m (Created page with '<span style="display:none">{{{1}}}</span>') |
(Table formatting) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="display:none">{{{1}}}</span> | <span style="display:none">{{{1}}}</span><noinclude> | ||
===Use=== | |||
This template hides a string of text. If the contents of a cell of a sortable table are prefixed with a hidden string, the cell will sort using the hidden string. | |||
The syntax for this template is: | |||
<nowiki>{{hs|var}}</nowiki> | |||
where var is a string of text. | |||
===Example=== | |||
<pre>{| class="wikitable sortable" border="1" | |||
|- | |||
!C1 | |||
|- | |||
|{{hs|1999-12-15}}15 December 1999 | |||
|- | |||
|{{hs|1997-04-21}}21 April 1997 | |||
|- | |||
|{{hs|1998-04-21}}21 April 1998 | |||
|}</pre> produces: | |||
{| class="wikitable sortable" border="1" | |||
|- | |||
!C1 | |||
|- | |||
|{{hs|1999-12-15}}15 December 1999 | |||
|- | |||
|{{hs|1997-04-21}}21 April 1997 | |||
|- | |||
|{{hs|1998-04-21}}21 April 1998 | |||
|} | |||
===See also=== | |||
* [[Template:Ss]] | |||
[[Category:Table formatting templates]] | |||
</noinclude> |
Latest revision as of 04:13, 27 August 2012
Use
This template hides a string of text. If the contents of a cell of a sortable table are prefixed with a hidden string, the cell will sort using the hidden string.
The syntax for this template is:
{{hs|var}}
where var is a string of text.
Example
{| class="wikitable sortable" border="1" |- !C1 |- |{{hs|1999-12-15}}15 December 1999 |- |{{hs|1997-04-21}}21 April 1997 |- |{{hs|1998-04-21}}21 April 1998 |}
produces:
C1 |
---|
15 December 1999 |
21 April 1997 |
21 April 1998 |