Editing Template:hcount

From Homestar Runner Wiki

Jump to: navigation, search
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:{{{1}}}|{{{2|1}}}}}</span><noinclude>
+
<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. '''''This parameter is required.''''' Place this template at the beginning of each cell of a given column.  You can specify custom increment values for the counter (''note that brackets denote optional parameters''):
+
where ''countername'' is the name of the counter being used.  Place this template in each cell of a given column.   
-
 
+
-
:<code><nowiki>{{ </nowiki> hcount | ''countername'' [ | ''increment'' ] }}</code>
+
'''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 can set the hidden counter value to something other than the default value of 10,000 and count by something other than the default value of 1. (''It is recommended to use a value with all nines if counting by a negative value.'') :  
+
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=9999 | countby=-1 }}</code>
+
:<code><nowiki>{{</nowiki>[[Template:hresetcount|hresetcount]] | ''countername''  | v=100000 }}</code>
-
This resets the hidden counter to a value of 9,999 (once the proper increment of -1 is applied when calling the counter).
+
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:Counter Formatting Templates|{{PAGENAME}}]]
+
[[Category:Formatting Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Your changes will be visible immediately. If you would like to test or practice editing, please do so in the sandbox. You are encouraged to create, expand, and improve upon articles; however, bad edits to articles are watched for and will be quickly removed.


CAPTCHA Image
Image Code:
Cancel | Editing help (opens in new window)
You are required to enter a code from an image in order to perform certain operations. This image is designed to protect the site from vandalism. If the images are too obscured to read, just give it your best shot and a new image will be shown next time. If you are visually impaired or limited to text-based browsing, you can contact the site administrator and something can be arranged. The code is not case-sensitive.

The Homestar Runner Wiki is neither owned by nor affiliated with homestarrunner.com. Much of the material presented here is copyrighted by The Brothers Chaps and/or Harmless Junk, Inc. For more information, see the legal stuff page on the official Homestar Runner website. The proprietor of this site asserts that publication of such material on the wiki qualifies as fair use under United States copyright law.

Material on this site that is not copyrighted by The Brothers Chaps (e.g. opinions and mindless chatter) is licensed to the various authors, where indicated, and is released under a Creative Commons Deed, which simply ensures that none of this information may legally be used for commercial purposes.

Templates used on this page:

Personal tools