Jump to content

Template:FAQ: Difference between revisions

From Prisonpedia
Update FAQ template to support named parameters
Add Schema.org FAQ markup for SEO
Line 1: Line 1:
<div class="faq-item" itemscope itemtype="https://schema.org/Question">
<div style="margin: 10px 0; padding: 12px 15px; border-left: 4px 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: #202122; margin-bottom: 8px;">{{{question|{{{1|Question not provided}}}}}}</div>
<div itemprop="name" style="font-weight: bold; color: #202122; margin-bottom: 8px;">{{{question|{{{1|Question not provided}}}}}}</div>
<div style="color: #333; line-height: 1.5;">{{{answer|{{{2|Answer not provided}}}}}}</div>
<div itemscope itemtype="https://schema.org/Answer" itemprop="acceptedAnswer">
<div itemprop="text" style="color: #333; line-height: 1.5;">{{{answer|{{{2|Answer not provided}}}}}}</div>
</div>
</div>
</div><noinclude>
</div><noinclude>
[[Category:Templates]]
[[Category:Templates]]
== Usage ==
== Usage ==
This template creates an FAQ item with Schema.org markup for SEO. Google may display these as rich results.
<pre>
<pre>
{{FAQ
{{FAQ

Revision as of 18:47, 26 November 2025

Question not provided
Answer not provided

Usage

This template creates an FAQ item with Schema.org markup for SEO. Google may display these as rich results.

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