Jump to content

Template:FAQ: Difference between revisions

From Prisonpedia
Update FAQ template to support named parameters
Creating FAQ entry template
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="margin: 10px 0; padding: 12px 15px; border-left: 4px solid #36c; background: #f8f9fa;">
<noinclude>
<div style="font-weight: bold; color: #202122; margin-bottom: 8px;">{{{question|{{{1|Question not provided}}}}}}</div>
This template creates a single FAQ entry.
<div style="color: #333; line-height: 1.5;">{{{answer|{{{2|Answer not provided}}}}}}</div>
 
</div><noinclude>
'''Usage:'''
<pre>{{FAQ|question=Your question here?|answer=Your answer here.}}</pre>
 
[[Category:Templates]]
[[Category:Templates]]
== Usage ==
</noinclude><includeonly>
<pre>
'''Q: {{{question}}}'''
{{FAQ
 
|question = What is the question?
{{{answer}}}
|answer = This is the answer to the question.
 
}}
</includeonly>
</pre>
</noinclude>

Latest revision as of 15:55, 3 December 2025

This template creates a single FAQ entry.

Usage:

{{FAQ|question=Your question here?|answer=Your answer here.}}