m (1 revision imported) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 86: | Line 86: | ||
[[Category:Talk header templates]] | [[Category:Talk header templates]] | ||
}}</includeonly> | }}</includeonly> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"hide": { | |||
"label": "Group box hidden?", | |||
"description": "Specifies whether the group block is hidden or not. You may want to hide this group box only on the talk page while having it open on the FAQ page, in which case you choose 'conditional'.", | |||
"suggestedvalues": [ | |||
"no", | |||
"conditional", | |||
"yes" | |||
], | |||
"default": "no", | |||
"autovalue": "no" | |||
}, | |||
"header": { | |||
"label": "Group box title", | |||
"description": "Title text displayed at the top of the group box", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "This template is used to mark the beginning of a boxed group of frequently asked questions and answers. This template is used together with 'FAQ group end', which in turn obviously marks the end of the boxed group of frequently asked questions and answers. You can nest groups into one another." | |||
} | |||
</templatedata> |
Latest revision as of 15:49, 23 November 2023
This template is used to group FAQ questions and answers. This template is used together with:
This template is usually used with Template:FAQ row, which contains the question and answer.
Parameters
- REDIRECT Template:Template link
Template:Redirect category shell has no parameters.
- REDIRECT Template:Template link
Template:Redirect category shell has two parameters: header, and hide.
header
The parameter header controls the text displayed at the top of the group.
{{FAQ group begin|header=some text here}} some filler text... {{FAQ group end}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
hide
The parameter "hide" is optional. The default is "hide=no". You may hide this box only on the talk page while having it open on the FAQ page by defining "hide=conditional". You may have this box always hidden by defining the condition "hide=yes".
{{FAQ group begin|header=some text here|hide=yes}} some filler text... {{FAQ group end}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Example
This template is often used with Template:FAQ row to provide a complete picture of its use.
{{FAQ group begin|header=Family and religious background}} {{FAQ row |q=Q1: Why isn't... |a='''A1''': the answer... }} {{FAQ row |q=Q2: The article refers to him as... |a='''A2''': the answer... }} {{FAQ group end}}
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
This template is used to mark the beginning of a boxed group of frequently asked questions and answers. This template is used together with 'FAQ group end', which in turn obviously marks the end of the boxed group of frequently asked questions and answers. You can nest groups into one another.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Group box hidden? | hide | Specifies whether the group block is hidden or not. You may want to hide this group box only on the talk page while having it open on the FAQ page, in which case you choose 'conditional'.
| Unknown | optional |
Group box title | header | Title text displayed at the top of the group box | String | required |