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 1: Line 1:
 
{{#seo:
 
{{#seo:
| title = {{{title}}}
+
| title = {{{meta-title}}}
| keywords = {{{keywords}}}
+
| keywords = {{{meta-keywords}}}
| description = {{{description}}}
+
| description = {{{meta-description}}}
 
| og:image = https://{{SERVERNAME}}/images/jfa-wiki-share-250.png
 
| og:image = https://{{SERVERNAME}}/images/jfa-wiki-share-250.png
 
| og:site_name= The Justice for Animals (JFA) Wiki
 
| og:site_name= The Justice for Animals (JFA) Wiki
Line 10: Line 10:
 
}}
 
}}
  
<div style="display:none" class="jfa-hidden-meta" title="{{{title}}}">
+
<div style="display:none" class="jfa-hidden-meta" meta-title="{{{meta-title}}}">
 
</div>
 
</div>
  
Line 22: Line 22:
 
This template provides meta information used in various places:  
 
This template provides meta information used in various places:  
 
* Page Listings
 
* Page Listings
** The ''title'' (wip) and ''description'' fields are used in page listing on this site via the Dynamic Page Listing (3) template.
+
** The ''meta-title'' (wip) and ''meta-description'' fields are used in page listing on this site via the Dynamic Page Listing (3) template.
 
* Page Titles
 
* Page Titles
** (wip) 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 only affects 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 punctuation not allow in the ''real'' page title.
+
** (wip) The ''meta-title'' field is used to replace the title that is displayed at the top of the page. This replacement is done through javascript and only affects the ''display'' of the title. To avoid confusion, the meta-title here should not vary much from the ''real'' page title from which the URL is generated. But it can include punctuation not allow in the ''real'' page title.
 
* Search Engine Optimization (SEO)
 
* Search Engine Optimization (SEO)
** The ''title'', ''keywords'', and ''description'' fields are place in Meta Tags for SEO.
+
** The 'meta-'title'', ''meta-keywords'', and ''meta-description'' fields are place in Meta Tags for SEO.
 
* Facebook
 
* Facebook
** The ''title'' and ''description" fields are used in Facebook sharing.
+
** The ''meta-title'' and ''meta-description" fields are used in Facebook sharing.
 
* Twitter
 
* Twitter
** The ''title'' and ''description'' (? not sure yet) fields are used in Facebook sharing.
+
** The ''meta-title'' and ''meta-description'' (? not sure yet) fields are used in Facebook sharing.
  
 
=== Dependencies ===
 
=== Dependencies ===
Line 44: Line 44:
 
<nowiki>
 
<nowiki>
 
{{jfa-meta
 
{{jfa-meta
| title = This is the title of the page
+
| meta-title = This is the title of the page
| keywords = keyword1, keyword2, keyword3
+
| meta-keywords = keyword1, keyword2, keyword3
| description = A description of the page goes here, and   
+
| meta-description = A description of the page goes here, and   
 
can be wrapped to multiple lines. Take care to leave a space  
 
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
 
at the end of each line. And also be sure and leave off

Revision as of 16:57, 2 March 2019


Purpose

Note: For the site to function properly, this template must be included in every page in the Main namespace.
Note: In addition to documenting the template, this page provides the actual template, which you can't see unless you edit the page.

This template provides meta information used in various places:

  • Page Listings
    • The meta-title (wip) and meta-description fields are used in page listing on this site via the Dynamic Page Listing (3) template.
  • Page Titles
    • (wip) The meta-title field is used to replace the title that is displayed at the top of the page. This replacement is done through javascript and only affects the display of the title. To avoid confusion, the meta-title here should not vary much from the real page title from which the URL is generated. But it can include punctuation not allow in the real page title.
  • Search Engine Optimization (SEO)
    • The 'meta-'title, meta-keywords, and meta-description fields are place in Meta Tags for SEO.
  • Facebook
    • The meta-title and meta-description" fields are used in Facebook sharing.
  • Twitter
    • The meta-title and meta-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

For the site to function properly, this template must be included in 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.


{{jfa-meta
| meta-title = This is the title of the page
| meta-keywords = keyword1, keyword2, keyword3
| meta-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.
}}