Jump to content

Template:MetaDescription: Difference between revisions

From Prisonpedia
Creating MetaDescription template for SEO
 
Updating MetaDescription template to use HTML meta tag
Line 1: Line 1:
<noinclude>
<noinclude>
This template adds a meta description tag to the page for SEO purposes. The description appears in search engine results.
This template adds a meta description for SEO purposes. The description helps search engines understand the page content.


'''Usage:'''
'''Usage:'''
<code><nowiki>{{MetaDescription|Your description text here (150-160 characters recommended)}}</nowiki></code>
<pre>{{MetaDescription|Your description text here (150-160 characters recommended)}}</pre>
 
'''Example:'''
<pre>{{MetaDescription|Comprehensive guide to federal wire fraud charges under 18 U.S.C. § 1343.}}</pre>


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><seo metatag="description">{{{1}}}</seo></includeonly>
</noinclude><includeonly><html><meta name="description" content="{{{1}}}"></html></includeonly>

Revision as of 15:55, 3 December 2025

This template adds a meta description for SEO purposes. The description helps search engines understand the page content.

Usage:

{{MetaDescription|Your description text here (150-160 characters recommended)}}

Example:

{{MetaDescription|Comprehensive guide to federal wire fraud charges under 18 U.S.C. § 1343.}}