en>Dpleibovitz (Uses TemplateStyles) |
|||
(One intermediate revision by the same user not shown) | |||
Line 57: | Line 57: | ||
</includeonly> | </includeonly> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"index": { | |||
"aliases": [ | |||
"identifier", | |||
"unique ID", | |||
"unique number" | |||
], | |||
"label": "FAQ unique identifier", | |||
"description": "Numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page.", | |||
"example": "To link to FAQ 2 on the Global warming FAQ page, you could use \"Global warming/FAQ#Q2\". So the link follows the pattern of \"#Q{index}\".", | |||
"type": "number" | |||
}, | |||
"show": { | |||
"label": "Always (not) show answer?", | |||
"description": "The box hides the answer on Talk page and shows it on the normal/actual page. You may override this by setting to \"yes\" so that the answer is always shown, or \"no\" so that the answer is always hidden. ", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"yes", | |||
"no" | |||
] | |||
}, | |||
"q": { | |||
"label": "Question", | |||
"description": "The actual frequently asked question", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"a": { | |||
"label": "Answer", | |||
"description": "The actual answer to the frequently asked question", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "Adds a new specific frequently asked question and answer combination.", | |||
"paramOrder": [ | |||
"index", | |||
"show", | |||
"q", | |||
"a" | |||
] | |||
} | |||
</templatedata> |
Latest revision as of 16:02, 23 November 2023
Template:Mbox Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. Use this template on FAQ subpages.
Parameters
Use
There are three main features:
- "index", numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page. For example, to link to FAQ 2 for the Global warming FAQ page, "Talk:Global warming/FAQ#Q2". Follows the pattern "#Q{index}".
- "q", stands for question
- "a", stands for answer.
{{FAQ row |index=1 |q=This is some question text... |a=This is some answer text... }}
Show
The box hides the answer on talk page and shows it on the /FAQ page. You may override this by adding "show=yes" so that the answer is always shown, or "show=no" so that the answer is always hidden.
{{FAQ row |show=yes |index=2 |q=This is some question text... |a=This is some answer text... }}
See also
Similar templates:
- REDIRECT Template:Template link
Template:Redirect category shell – basic, non-collapsed list
- REDIRECT Template:Template link
Template:Redirect category shell – collapsed questions
- REDIRECT Template:Template link
Template:Redirect category shell – groups questions
- REDIRECT Template:Template link
Template:Redirect category shell – groups questions
- REDIRECT Template:Template link
Template:Redirect category shell – message to be placed on top of separate FAQ pages
- REDIRECT Template:Template link
Template:Redirect category shell – not a FAQ (but will link to one); warns against rehashing debates
- REDIRECT Template:Template link
Template:Redirect category shell
Adds a new specific frequently asked question and answer combination.
Parameter | Description | Type | Status | |
---|---|---|---|---|
FAQ unique identifier | index identifier unique ID unique number | Numbers a specific FAQ. You can link to each specific FAQ that has a unique index on a particular page.
| Number | optional |
Always (not) show answer? | show | The box hides the answer on Talk page and shows it on the normal/actual page. You may override this by setting to "yes" so that the answer is always shown, or "no" so that the answer is always hidden.
| String | optional |
Question | q | The actual frequently asked question | String | required |
Answer | a | The actual answer to the frequently asked question | String | required |