Template:FAQItem: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
mNo edit summary |
||
| Line 2: | Line 2: | ||
<big>FAQItem usage</big> | <big>FAQItem usage</big> | ||
1. Optional: <code>| id = custom-id</code> | |||
2. Required: <code>| question =</code> | |||
3. Required: <code>| answer =</code> | |||
If <code>id</code> is provided, a link icon will appear beside the question. | |||
< | |||
---- | ---- | ||
<nowiki>{{FAQItem | |||
| id = optional-custom-id | |||
| question = Your question | |||
| answer = Your answer | |||
}}</nowiki> | |||
---- | ---- | ||
</noinclude> | </noinclude> | ||
<html> | <html> | ||
<details class="faq-item"> | <details class="faq-item"{{#if:{{{id|}}}| id="{{{id}}}"|}}><summary style="font-weight: bold; font-size:larger;">{{{question|Question}}}{{#if:{{{id|}}}| <a href="#{{{id}}}" class="faq-link-icon" style="margin-left:8px; text-decoration:none;">🔗</a>|}}</summary> | ||
<summary style="font-weight: bold; font-size:larger;" | |||
<blockquote class="faq-answer"> | <blockquote class="faq-answer"> | ||
</html>{{{answer|Answer}}}<html> | </html> | ||
{{{answer|Answer}}} | |||
<html> | |||
</blockquote> | </blockquote> | ||
</details> | </details> | ||
</html> | </html> | ||
Revision as of 06:45, 23 February 2026
FAQItem usage
1. Optional: | id = custom-id
2. Required: | question =
3. Required: | answer =
If id is provided, a link icon will appear beside the question.
{{FAQItem | id = optional-custom-id | question = Your question | answer = Your answer }}
{{{question|Question}}}{{#if:{{{id|}}}| 🔗|}}
Answer