Difference between revisions of "Template:FAQ row/doc"
Jump to navigation
Jump to search
(update) |
imported>Dpleibovitz (Uses TemplateStyles) |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | + | {{Uses TemplateStyles|Template:FAQ row/styles.css}} | |
Use this template on FAQ subpages. | Use this template on FAQ subpages. | ||
| Line 9: | Line 9: | ||
# "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<span style="color:#888;">{index}</span>". | # "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<span style="color:#888;">{index}</span>". | ||
# "q", stands for question | # "q", stands for question | ||
| − | # "a", stands for answer | + | # "a", stands for answer. |
<pre> | <pre> | ||
| Line 29: | Line 29: | ||
===Show=== | ===Show=== | ||
| − | The box | + | 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. |
<pre> | <pre> | ||
Latest revision as of 04:05, 16 June 2019
| This is a documentation subpage for Template:FAQ row. It contains usage information, categories and other content that is not part of the original template page. |
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...
}}
Q1: This is some question text...
A1: 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...
}}
Q2: This is some question text...
A2: This is some answer 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}}