Difference between revisions of "Template:FAQ row"
Jump to navigation
Jump to search
imported>ChyranandChloe (caught the bug) |
imported>ChyranandChloe (optimization) |
||
| Line 1: | Line 1: | ||
| − | <div class="NavFrame" style="background: | + | <includeonly><div class="NavFrame" style="background:#f8eaba; border:1px solid #d8ca9a; margin:4px 0px 4px 0px; padding:0px;"> |
| − | <div class="NavHead" style="height:auto; background:# | + | <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=" | + | <div class="NavContent" style="padding:4px; font-size:105%; text-align:left;{{#ifeq:{{{hide|}}}|yes|display:none;|}}"></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 19:25, 20 September 2009
Script error: No such module "Uses TemplateStyles". Use this template on FAQ subpages.
Contents
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...
}}
Missing " header=[header 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...
}}
Missing " header=[header text] "
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 row/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. |