Template:POTY-Button/doc
Jump to navigation
Jump to search
A smart voting button that hides itself if {{POTY2012/state}} does not equal the round the gallery where used is made for.
Usage
{{POTY-Button |r= |f= |s= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
r | Round this gallery is made for: R1 or R2 | empty | optional | |
f | Filename without namespace; If f is specified, r (Round) is required. | empty | optional | |
s | Size of the gallery boxes: l=large, m=medium, s=small | empty | optional | |
link | Either wikilink or external link; Either this is required or parameter f (Filename) | empty | optional | |
color1 | empty | optional | ||
color2 | empty | optional | ||
color3 | empty | optional | ||
style | valid inline CSS | empty | optional | |
text | Text to display | “Vote for this picture” | optional | |
external | Whether link is external. | empty | optional | |
POTYSTATE | The current state of POTY. Possible values: weAreWorking|R1Soon|beforeR1|duringR1|afterR1|beforeR2|duringR2|afterR2|end | Determined by the <year> and {{POTY<year>/state}} | optional | |
POTYYEAR | The year of the current POTY event. If POTYSTATE is set, it's only used to build links. | Intelligent guess from the page title the template is used on. | optional |
Additional information
The template is intended to be used in the following namespaces: the Commons namespace
The template is intended to be used by the following user groups: all users
Relies on:
{{POTY2012/state}} (acutally the year must be passed as {{{POTYYEAR}}}
)
Localization
This template is localized by utilizing custom MediaWiki namespace messages.
Please translate MediaWiki:POTY-Button-text-full and MediaWiki:POTY-Button-text-short and post the translation with {{Edit request}}
at the according sub page (e.g. German traslation at MediaWiki talk:POTY-Button-text-full/de).