Template:hcount
From Homestar Runner Wiki
(Difference between revisions)
(adding sort info link) |
It's dot com (Talk | contribs) (I think it will reset *six* counters) |
||
Line 10: | Line 10: | ||
Please be sure to first reset the counter before making any calls to this template in order to a sufficiently high enough by using the {{tl|hresetcount}} template: | Please be sure to first reset the counter before making any calls to this template in order to a sufficiently high enough by using the {{tl|hresetcount}} template: | ||
:<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername''}}</code> | :<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername''}}</code> | ||
- | This ensures that the table is sorted correctly (in proper numerical order). You may also reset up to ''' | + | This ensures that the table is sorted correctly (in proper numerical order). You may also reset up to '''6''' counters with the {{tl|hresetcount}} template. (''Note that brackets denote optional parameters''): |
:<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername1'' [ |''countername2'' ] [ | ''countername3'' ] [ |''countername4'' ] [ |''countername5'' ] }}</code> | :<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername1'' [ |''countername2'' ] [ | ''countername3'' ] [ |''countername4'' ] [ |''countername5'' ] }}</code> | ||
Optionally, you may set the initial value to something other than the default value of 10,000. (''However, this is not recommended and in most cases, unnecessary''): | Optionally, you may set the initial value to something other than the default value of 10,000. (''However, this is not recommended and in most cases, unnecessary''): |
Revision as of 22:49, 15 October 2007
This template is for adding a hidden count meant for use in aUsage:
{{ 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 by using the {{hresetcount}} template:
{{hresetcount | countername}}
This ensures that the table is sorted correctly (in proper numerical order). You may also reset up to 6 counters with the {{hresetcount}} template. (Note that brackets denote optional parameters):
{{hresetcount | countername1 [ |countername2 ] [ | countername3 ] [ |countername4 ] [ |countername5 ] }}
Optionally, you may set the initial value to something other than the default value of 10,000. (However, this is not recommended and in most cases, unnecessary):
{{hresetcount | countername | v=100000 }}
This resets the counter to a value of 100,000.