Zelda Dungeon Wiki:Sandbox: Difference between revisions

Want an adless experience? Log in or Create an account.
Replaced content with "{{Sandbox Header}} <!-- Feel free to test your editing skills here. Do not edit above this line. --> {{User:Locke/Sandbox/Template3|User:Locke/Sandbox}} {{User:Locke/Sand..."
mNo edit summary
(Replaced content with "{{Sandbox Header}} <!-- Feel free to test your editing skills here. Do not edit above this line. --> {{User:Locke/Sandbox/Template3|User:Locke/Sandbox}} {{User:Locke/Sand...")
Line 2: Line 2:
<!-- Feel free to test your editing skills here. Do not edit above this line. -->
<!-- Feel free to test your editing skills here. Do not edit above this line. -->


==Current Method==
{{User:Locke/Sandbox/Template3|User:Locke/Sandbox}}
The current method is to place the vote in the appropriate section, and then modify the number in the "Total" section. The following methods update this number automatically, but require more set-up.
{{User:Locke/Sandbox/Template3|User:Locke/Sandbox2}}
 
==Using Existing Templates==
*The ++ and -- templates would be modified to not display the value.
*NumberColor may be modified to automatically print the vote variable (or a helper template could be made to do this), so usage would just be <nowiki>{{NumberColor}}</nowiki> (or a differently-named template).
 
===Nomination 1===
====Support====
*{{++|vote}}I support it
*{{++|vote}}Me too
*{{++|vote}}Who wouldn't?
*{{++|vote}}ikr?
====Oppose====
*{{--|vote}}Oppose
====Total====
{{NumberColor|{{#var:vote}}{{#vardefine:vote|0}}}}
 
===Nomination 2===
====Support====
====Oppose====
*{{--|vote}}Terrible idea.
*{{--|vote}}Yep.
====Total====
{{NumberColor|{{#var:vote}}{{#vardefine:vote|0}}}}
 
==Parse Votes Within a Template==
 
===Nomination 1===
====Support====
{{Votes/Support|
*I support it
*Me too
*Who wouldn't?
*ikr?
}}
====Oppose====
{{Votes/Oppose|
*Oppose
}}
====Total====
{{Votes/Total|~}}
 
===Nomination 2===
====Support====
{{Votes/Support|
 
}}
====Oppose====
{{Votes/Oppose|
*Terrible idea.
*Yep.
}}
====Total====
{{Votes/Total|~}}
 
==Each Header Is a Template==
*Not implemented; this section only demonstrates what the code would look like. (view the source)
 
{{Support|
*I support it
*Me too
*Who wouldn't?
*ikr?
}}
 
{{Oppose|
*Oppose
}}
 
{{TotalVotes}}
 
==All In One Template==
*Not implemented; this section only demonstrates what the code would look like. (view the source)
 
{{Nomination
| support =
*I support it
*Me too
*Who wouldn't?
*ikr?
| oppose =
*Oppose
}}
 
==Each Vote In a Template==
*Not implemented; this section only demonstrates what the code would look like. (view the source)
 
===Nomination 1===
====Support====
{{Support|I support it}}
{{Support|Me too}}
{{Support|Who wouldn't?}}
{{Support|ikr?}}
====Oppose====
{{Oppose|Oppose}}
====Total====
{{TotalVotes}}
 
==Each Vote Uses a Template==
*This is similar to the first one and the one above.
*Not implemented; this section only demonstrates what the code would look like. (view the source)
===Nomination 1===
====Support====
*{{Support}}I support it
*{{Support}}Me too
*{{Support}}Who wouldn't?
*{{Support}}ikr?
====Oppose====
*{{Oppose}}Oppose
====Total====
{{TotalVotes}}