Jump to content

Template:MetaDescription: Difference between revisions

From Prisonpedia
Creating MetaDescription template for SEO
 
Update to append site name to titles
 
(2 intermediate revisions by one other user not shown)
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 using the WikiSEO extension.  
 
'''Note:''' For full SEO control including keywords and content type, use {{tl|SEO}} instead.


'''Usage:'''
'''Usage:'''
<code><nowiki>{{MetaDescription|Your description text here (150-160 characters recommended)}}</nowiki></code>
<pre>{{MetaDescription|Your description text here (140-160 characters recommended)}}</pre>
 
'''Example:'''
<pre>{{MetaDescription|Comprehensive guide to federal wire fraud charges under 18 U.S.C. § 1343.}}</pre>
 
'''What this template generates:'''
* Meta description tag for search engines
* Open Graph description for Facebook/LinkedIn
* Twitter Card description
* Appends " - Prisonpedia" to page title


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><seo metatag="description">{{{1}}}</seo></includeonly>
</noinclude><includeonly>{{#seo:
|title_mode=append
|title_separator= - Prisonpedia
|description={{{1}}}
|site_name=Prisonpedia
|locale=en_US
|type=article
}}</includeonly>

Latest revision as of 16:46, 4 December 2025

This template adds a meta description for SEO purposes using the WikiSEO extension.

Note: For full SEO control including keywords and content type, use Template:Tl instead.

Usage:

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

Example:

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

What this template generates:

  • Meta description tag for search engines
  • Open Graph description for Facebook/LinkedIn
  • Twitter Card description
  • Appends " - Prisonpedia" to page title