To get updates on new site content, like us on Facebook or follow us on Twitter.

Difference between revisions of "Template:Jfa-meta"

From JFA Wiki
Line 16: Line 16:
 
=== Purpose ===
 
=== Purpose ===
  
This template controls the meta tags used for search engine optimization (SEO). Perhaps, more importantly, it provides descriptive information for Facebook and Twitter when you share a page on one of those platforms.
+
This template provides meta information used for in various places:
 +
* Page Listings
 +
** The ''description'' and ''title'' fields are used in page listing on this site via the Dynamic Page Listing (3) template.
 +
* Page Titles
 +
** The ''title'' field is used to replace the title that is displayed at the top of the page. This replacement is done through javascript and affects nothing but the display of the title. To avoid confusion, the title here should not vary much from the ''real'' page title from which the URL is generated. But it can include puntuation not allow in the ''real'' page title.
 +
* Search Engine Optimization (SEO)
 +
** The ''title'', ''keywords'', and ''description'' fields are place in Meta Tags for SEO.
 +
* Facebook
 +
** The ''title'' and ''description" fields are used in Facebook sharing.
 +
* Twitter
 +
** The ''title'' and ''description" (? not sure yet) fields are used in Facebook sharing.  
  
 
=== Dependencies ===
 
=== Dependencies ===
Line 24: Line 34:
 
=== Usage and Parameters ===
 
=== Usage and Parameters ===
  
Place the template toward the bottom of the page after the Meta heading, and after any text under the Meta,
+
This template '''must'' be included in every page in the Main namespace for the site to function properly. 
heading but before any category tags. This template should be on every page in the Main namespace.
+
Place the template toward the bottom of the page after the Meta heading,  
 +
and after any text under the Meta, heading but before any category tags.  
  
 
<pre>
 
<pre>

Revision as of 10:23, 2 March 2019


Purpose

This template provides meta information used for in various places:

  • Page Listings
    • The description and title fields are used in page listing on this site via the Dynamic Page Listing (3) template.
  • Page Titles
    • The title field is used to replace the title that is displayed at the top of the page. This replacement is done through javascript and affects nothing but the display of the title. To avoid confusion, the title here should not vary much from the real page title from which the URL is generated. But it can include puntuation not allow in the real page title.
  • Search Engine Optimization (SEO)
    • The title, keywords, and description fields are place in Meta Tags for SEO.
  • Facebook
    • The title and description" fields are used in Facebook sharing.
  • Twitter
    • The title and description" (? not sure yet) fields are used in Facebook sharing.

Dependencies

This template depends on the WikiSeo extension being installed and loaded.

Usage and Parameters

This template 'must be included in every page in the Main namespace for the site to function properly. Place the template toward the bottom of the page after the Meta heading, and after any text under the Meta, heading but before any category tags.


{{jfa meta
| title = This is the title of the page
| keywords = keyword1, keyword2, keyword3
| description = A description of the page goes here, and  
can be wrapped to multiple lines. Take care to leave a space 
at the end of each line. And also be sure and leave off
the vertical bars on second and subsequent lines.
}}