Jump to content

Template:FAQ: Difference between revisions

From Prisonpedia
Create FAQ template
 
Creating FAQ entry template
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="margin: 10px 0; padding: 10px; border-left: 3px solid #36c; background: #f8f9fa;">
<noinclude>
<div style="font-weight: bold; color: #36c; margin-bottom: 5px;">Q: {{{1|Question not provided}}}</div>
This template creates a single FAQ entry.
<div style="color: #333;">{{{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|What is the question?|This is the answer to the question.}}
 
</pre>
{{{answer}}}
</noinclude>
 
</includeonly>

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.}}