Template:Hs: Difference between revisions
Jump to navigation
Jump to search
m (Created page with '<span style="display:none">{{{1}}}</span>') |
(documentation from wikipedia:Template:Hs) |
||
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 | |||
|} | |||
[[Category:Templates|{{NAMESPACE}}]] | |||
</noinclude> |
Revision as of 23:23, 16 March 2010
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 |