Template:FAQItem: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude> <templatedata> { "description": "Creates a FAQ item with collapsible details and a permalink", "params": { "question": { "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> # Copy text between th...") |
mNo edit summary |
||
| Line 49: | Line 49: | ||
<details class="faq-item"> | <details class="faq-item"> | ||
<summary style="font-weight: bold; font-size:larger;"></html>{{{question}}}<html></summary> | <summary style="font-weight: bold; font-size:larger;"></html>{{{question}}}<html></summary> | ||
</html> | |||
<div style="margin:0.5em 0 1em 0; font-size:smaller; | <div style="margin:0.5em 0 1em 0; font-size:smaller; opacity:0.7;"> | ||
[[{{FULLPAGENAME}}#{{anchorencode:{{{question}}}}}|Link to this question]] | |||
</div> | </div> | ||
<html> | |||
<blockquote class="faq-answer"> | <blockquote class="faq-answer"> | ||
</html>{{{answer}}}<html> | </html>{{{answer}}}<html> | ||
</blockquote> | </blockquote> | ||
</details> | </details> | ||
</html> | </html> | ||
Revision as of 00:44, 27 February 2026
Creates a FAQ item with collapsible details and a permalink
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Question | question | 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.