Editing Template:hcount
From Homestar Runner Wiki
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Current revision | Your text | ||
Line 1: | Line 1: | ||
- | <span style="display:none">{{#count:{{{ | + | <span style="display:none">{{#count:{{{1}}}}}</span><noinclude> |
This template is for adding a hidden count meant for use in a [[HRW:SORT|sortable table]]. | This template is for adding a hidden count meant for use in a [[HRW:SORT|sortable table]]. | ||
'''Usage:''' | '''Usage:''' | ||
:<code><nowiki>{{ </nowiki> hcount | ''countername'' }}</code> | :<code><nowiki>{{ </nowiki> hcount | ''countername'' }}</code> | ||
- | where ''countername'' is the name of the counter being used. | + | where ''countername'' is the name of the counter being used. Place this template in each cell of a given column. |
- | + | ||
- | + | ||
'''IMPORTANT:''' | '''IMPORTANT:''' | ||
Line 14: | Line 12: | ||
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''): | 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'' ] [ |''countername6'' ] }}</code> | :<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername1'' [ |''countername2'' ] [ | ''countername3'' ] [ |''countername4'' ] [ |''countername5'' ] [ |''countername6'' ] }}</code> | ||
- | Optionally, you | + | 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''): |
- | :<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername'' | v= | + | :<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername'' | v=100000 }}</code> |
- | This resets the | + | This resets the counter to a value of 100,000. In addition, you can set the visible value to something other than the default value of 1: |
+ | :<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername'' | v=100000 | vv=10 }}</code> | ||
+ | This resets the counter to a value of 100,000 and the first visible value to 10. | ||
'''Technical Information:''' | '''Technical Information:''' | ||
Line 24: | Line 24: | ||
*[[HRWiki:Counter|Counter function usage]] | *[[HRWiki:Counter|Counter function usage]] | ||
*{{tl|vcount}} | *{{tl|vcount}} | ||
- | [[Category: | + | [[Category:Formatting Templates|{{PAGENAME}}]] |
</noinclude> | </noinclude> |