Template:SEO: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
m (Undo revision 16837 by CptTwinkie (talk))
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:default|http://www.medievalengineerswiki.com/resources/assets/ME_LOGO_WIKI.png}}
<includeonly>
{{#seo:
{{#seo:
|title={{PAGENAME}} - Medieval Engineers Wiki
|title={{PAGENAME}} - Medieval Engineers Wiki
Line 6: Line 6:
|description={{{description|}}}
|description={{{description|}}}
|og:type=article
|og:type=article
|og:image={{#ifeq:{{{image_url|}}}|{{{image_url}}}|{{#var:default}}}}
|og:image={{#if:{{{image_url|}}}|{{{image_url}}}|http://www.medievalengineerswiki.com/resources/assets/ME_LOGO_WIKI.png}}
}}</includeonly><!--
}}</includeonly><!--




--><noinclude>==Usage==
--><noinclude>==Usage==
The SEO template is meant to be used in every page. It provides metadata for search engines and link embedding in social media and chat apps.
The SEO template is meant to be used in every page. It provides metadata for search engines and link embedding in social media and chat apps. The image should be > 400px ideally, however smaller images can be used if nothing larger is available or appropriate. The description should be short (1 long or 2 short sentences) since it will be truncated in most uses.  
<pre>{{SEO|image_url=<fullURL>|description=<short>}}</pre>
<pre>{{SEO|image_url=<fullURL>|description=<short>}}</pre>
*The code above can and should be pasted into all pages.
*The code above can and should be pasted into all pages.
*If the image_url is excluded the wiki logo will be used instead.
{{:Template Ordering}}
{{:Template Ordering}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 16:20, 21 September 2018

Usage

The SEO template is meant to be used in every page. It provides metadata for search engines and link embedding in social media and chat apps. The image should be > 400px ideally, however smaller images can be used if nothing larger is available or appropriate. The description should be short (1 long or 2 short sentences) since it will be truncated in most uses.

{{SEO|image_url=<fullURL>|description=<short>}}
  • The code above can and should be pasted into all pages.
  • If the image_url is excluded the wiki logo will be used instead.

ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.