Wikipedia:Wikipedia Signpost/Templates/Voter/Setup/Counter EditIntro: Difference between revisions

Content deleted Content added
edit
edit
Line 1:
{{info|You are now creating the vote-counting page for an option in your poll.
<br/>
The text of the page has been pre-loaded with all of the code needed for vote counting to work, but therethe arefine aadjustments coupleto ofmake thingsit thatall youwork needmust tobe domade manually:
<br/>
#Replace <code>{ARTICLE_LINK}</code> with a link to the article (or page) which will use this poll. This is the link that users will be prompted to click on after their vote is recorded. For instance, if this poll ran in the "News and notes" section of the February 11, 2015 edition of the ''Signpost'' the correct link to insert would be <code>Wikipedia:Wikipedia Signpost/2015-02-11/News and notes</code>.
# Now, preview the page.
#A poll without any responses should naturally be zeroed, and if you previewed this page you will notice that this is probably ''not'' the case. You must adjust the number being subtracted&mdash;which must equal to the byte-length of the page&mdash;until you "zero" the vote count. This depends on the length of the string in the link you created in step one, and as the ''Signpost'' uses standardized publication pages, here are the usual suspects:
#Change the size of the divisor to match the btye-size of what users will be voting. The way that this page is set up each vote will consist of the string that labels the vote button corresponding with this page, a period, and two return characters (equivalent to hitting the {{key press|Enter}} key twice). If you count the number of characters (including spaces) in the resulting string and add three, all will be in order. For example: if your vote button label is "Yes", then you need a divisor of <code><nowiki>3 + 3 = 6</nowiki></code>; if it is labelled "No", you will need a <code><nowiki>2 + 3 = 5</nowiki></code> divisor.
#Once you have zeroed the counter replace the <code>#</code> in the <code><!-#</code> to make it a comment-opener <code><nowiki><!--</nowiki></code>, hiding the internals of this page from our viewers; and then hit save.
|image=Artículo bueno.svg}}