Difference between revisions of "Template:FAQ group begin"
(small fix allowing one more condition) |
(changed "on FAQ Page" to "conditional" for the next parameter) |
||
| Line 1: | Line 1: | ||
| − | <includeonly><div class="NavFrame {{#ifeq:{{{hide|}}}|no||{{#ifeq:{{{hide|}}}|yes|collapsed|{{#ifeq:{{{hide|}}}| | + | <includeonly><div class="NavFrame {{#ifeq:{{{hide|}}}|no||{{#ifeq:{{{hide|}}}|yes|collapsed|{{#ifeq:{{{hide|}}}|conditional|{{#ifeq:{{Str find|{{FULLPAGENAME}}|/FAQ}}|-1|collapsed|}}|}} }} }}" style="background:#f8eaba; border:1px solid #d8ca9a; margin:4px 0px 4px 0px; padding:0px;"> |
<div class="NavHead" style="height:auto; background:#fff1c1; border:none; border-bottom:1px solid #d8ca9a; margin-bottom:-1px; padding:2px 30px 2px 2px; text-align:center; font-size:110%; font-weight:bold;">{{{header|<span class="error">Missing " header=''[header text]'' "</span>}}}</div> | <div class="NavHead" style="height:auto; background:#fff1c1; border:none; border-bottom:1px solid #d8ca9a; margin-bottom:-1px; padding:2px 30px 2px 2px; text-align:center; font-size:110%; font-weight:bold;">{{{header|<span class="error">Missing " header=''[header text]'' "</span>}}}</div> | ||
<div class="NavContent" style="padding:4px; font-size:105%; text-align:left;"></includeonly><noinclude>{{documentation}}</noinclude> | <div class="NavContent" style="padding:4px; font-size:105%; text-align:left;"></includeonly><noinclude>{{documentation}}</noinclude> | ||
Revision as of 19:57, 5 January 2011
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.
Contents
Parameters
{{FAQ group end}} has no parameters. {{FAQ group begin}} 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:
- {{FAQ}} – basic, non-collapsed list
- {{FAQ row}} – collapsed questions
- {{FAQ group begin}} – groups questions
- {{FAQ group end}} – groups questions
- {{FAQ page}} – message to be placed on top of separate FAQ pages
- {{Round in circles}} – not a FAQ (but will link to one); warns against rehashing debates
- {{Circular definition}}
| The above documentation is transcluded from Template:FAQ group begin/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |