Template:FAQItem: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<templatedata> | |||
{ | |||
"description": "Creates a FAQ item", | |||
"params": { | |||
"text": { | |||
"label": "Question", | |||
"description": "The Question", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"answer": { | |||
"label": "Answer", | |||
"description": "The Answer to the question", | |||
"type": "string", | |||
"required": true | |||
} | |||
} | |||
} | |||
</templatedata> | |||
<big>FAQItem usage</big> | <big>FAQItem usage</big> | ||
# Copy text between the horizontal lines for each Question with Answer | |||
# Put the Question after | question = | |||
# Put the Answer after | answer = | |||
---- | |||
<nowiki>{{</nowiki>'''FAQItem''' | |||
| question = | |||
| answer = | |||
<nowiki>}}</nowiki> | |||
---- | ---- | ||
The FAQItem will render as it appears below this line. | |||
---- | ---- | ||
</noinclude> | </noinclude> | ||
<html> | <html> | ||
<details class="faq-item" | <details class="faq-item"> | ||
<summary style="font-weight: bold; font-size:larger;"></html>{{{question|Question}}}<html></summary> | |||
<blockquote class="faq-answer"> | <blockquote class="faq-answer"> | ||
</html> | </html>{{{answer|Answer}}}<html> | ||
{{{answer|Answer}}} | |||
<html> | |||
</blockquote> | </blockquote> | ||
</details> | </details> | ||
</html> | </html> | ||
Latest revision as of 06:33, 26 February 2026
Creates a FAQ item
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Question | text | The Question | String | required |
| Answer | answer | The Answer to the question | String | required |
FAQItem usage
- Copy text between the horizontal lines for each Question with Answer
- Put the Question after | question =
- Put the Answer after | answer =
{{FAQItem
| question =
| answer =
}}
The FAQItem will render as it appears below this line.
Question
Answer