Template:Wmdgs-simplesurveyquestion-5
Appearance
- if: |}}
| {{{question}}} =
</includeonly> This template creates a survey question, allowing for 5 answers (such as rating 1 through 5). The image in the response box will be the same for each answer.
Usage
[edit source]{{subst:Wmdgs-simplesurveyquestion-5| | question = | topic link = | Image = | participant category = | response 1 = | showtext 1 = | category 1 = | response 2 = | showtext 2 = | category 2 = | response 3 = | showtext 3 = | category 3 = | response 4 = | showtext 4 = | category 4 = | response 5 = | showtext 5 = | category 5 = }}
First, copy the text above and add it to the template page, then fill in as follows:
- question = enter the question as you want it to appear on the template
- topic link = this defines what page the "(discuss)" link will lead to. It automatically adds "[[Wikimedian Demographics/" to the beginning of the link.
- Image = add the filename of the image you'd like to use, not including the "Image:" prefix. The template automatically sets the size.
- response 1 = this is what you want the first valid response to be (for example, just enter a "y" if it's a yes or no question)
- showtext 1 = this will show the text. For example, "{{BASEPAGENAME}} likes dogs" (the {{BASEPAGENAME}} will be translated by the template to show the user's name).
- category 1 = Add the name of the category (without the survey prefix) that you want the template to add. For example "Likes dogs" will add [[WMDGS/Likes dogs]]
Now do the same for response 2, adding the appropriate text and category.
You can use this template repeatedly on the same page to make a set of questions and responses in order to create a complete template. When you've added all the questions, cut and paste the questions to the bottom within "pre" tags.
Example
[edit source]{{subst:Wmdgs-simplesurveyquestion-2| | question = Do you like dogs (y/n)? | topic link = Pets | Image = Image:Beauceron_portrait.jpg | response 1 = y | showtext 1 = {{BASEPAGENAME}} likes dogs. | category 1 = Likes dogs | response 2 = n | showtext 2 = {{BASEPAGENAME}} does not like dogs. | category 2 = Dislikes dogs }}