Template:hcount
From Homestar Runner Wiki
(Difference between revisions)
(rv. done testing.) |
(+desc) |
||
Line 1: | Line 1: | ||
<span style="display:none">{{#count:{{{1}}}}}</span><noinclude> | <span style="display:none">{{#count:{{{1}}}}}</span><noinclude> | ||
+ | This template is for adding a hidden count meant for use in a sortable table. | ||
+ | Usage: | ||
+ | :<code><nowiki>{{ </nowiki> hcount | ''countername'' }}</code> | ||
+ | where ''countername'' is the name of the counter being used. Place this template in each cell of a given column. | ||
+ | |||
+ | '''IMPORTANT:''' | ||
+ | |||
+ | Please be sure to first reset the counter before making any calls to this template in order to a sufficiently high enough number like this: | ||
+ | :<code><nowiki>{{ </nowiki> resetcount: ''countername'' | 10000 }}</code> | ||
+ | This ensures that the table is sorted correctly (in proper numerical order). | ||
+ | |||
[[Category:Formatting Templates|{{PAGENAME}}]] | [[Category:Formatting Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 14:50, 28 April 2007
This template is for adding a hidden count meant for use in a sortable table. Usage:
{{ hcount | countername }}
where countername is the name of the counter being used. Place this template in each cell of a given column.
IMPORTANT:
Please be sure to first reset the counter before making any calls to this template in order to a sufficiently high enough number like this:
{{ resetcount: countername | 10000 }}
This ensures that the table is sorted correctly (in proper numerical order).