Jump to content

Template:FAQ: Difference between revisions

From Prisonpedia
Create FAQ template
 
Update FAQ template to support named parameters
Line 1: Line 1:
<div style="margin: 10px 0; padding: 10px; border-left: 3px solid #36c; background: #f8f9fa;">
<div style="margin: 10px 0; padding: 12px 15px; border-left: 4px solid #36c; background: #f8f9fa;">
<div style="font-weight: bold; color: #36c; margin-bottom: 5px;">Q: {{{1|Question not provided}}}</div>
<div style="font-weight: bold; color: #202122; margin-bottom: 8px;">{{{question|{{{1|Question not provided}}}}}}</div>
<div style="color: #333;">{{{2|Answer not provided}}}</div>
<div style="color: #333; line-height: 1.5;">{{{answer|{{{2|Answer not provided}}}}}}</div>
</div><noinclude>
</div><noinclude>
[[Category:Templates]]
[[Category:Templates]]
== Usage ==
== Usage ==
<pre>
<pre>
{{FAQ|What is the question?|This is the answer to the question.}}
{{FAQ
|question = What is the question?
|answer = This is the answer to the question.
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 18:23, 26 November 2025

Question not provided
Answer not provided

Usage

{{FAQ
|question = What is the question?
|answer = This is the answer to the question.
}}