Template:Meta Tag
This is the "Meta Tag" template. See Template:Meta Tag/doc for instructions. It should be called in the following format:
{{Meta Tag |name= |pageid= |metagen= |title= |title_mode= |title_separator= |keywords= |description= |robots= |googlebot= |type= |image= |image_width= |image_height= |image_alt= |locale= |site_name= |author= |section= |published_time= |poster= |posted= }}
Description
This template adds SEO metadata to the page it is added on. These metadata fields are read by search engines and other web crawlers.. It uses the WikiSEO MediaWiki extension to work.
Pages using this template are added to Category:Meta_Tag.
Usage
{{Seo |keywords = |description = |image = |og-type = |og-image = |og-site_name = |og-locale = |article-author = |article-publisher = |article-tag = |article-section = |fb-admins = |fb-app_id = |twitter-card = |twitter-site = |twitter-domain = |twitter-creator = |twitter-image-src = |twitter-description = |title = |titlemode = |titleseparator = |google-site-verification = }}
Important parameters
keywords
- Add search engine keywords here, separated by commas. Example:the sims, sims, wiki
description
- The meta description for the page. Keep it short, concise, and effective. In articles, including the first few lines of the lede often makes for a good description. Defaults toThe Sims Wiki is a website about The Sims that anyone can contribute to. Content includes The Sims, The Sims 2, The Sims 3, The Sims 4, and more.
if left blank.image
- The name of the main image of the page, usually the one that best describes the subject. Do not include the "File:" prefix (so for a file like File:Bella Goth.png, typeBella Goth.png
. If left blank, defaults to the wiki's logo.
Optional parameters
Unless you know what you're doing, it's best to leave these parameters alone.
title
- Changes the<title></title>
HTML attribute. This will change the name of the tab, but not the name of the article. Leave blank in most cases.titlemode
- Choose betweenappend
,prepend
, orreplace
(default). Leave blank unless you know what you're doing.google-site-verification
- Only needed for Google Webmaster Tools. Don't use if you don't know what this is for.
Open Graph protocol
og-type
- Changes the Open Graph type of the object. If left blank, defaults towebsite
.og-image
- The image to use for the Open Graph protocol. If blank, defaults to whatever is specified inimage
, else defaults to the wiki's logo.og-site_name
- The name of the larger web site the object belongs to. Defaults toThe Sims Wiki
.og-locale
- The locale of the object, in the formatlanguage_TERRITORY
. Defaults toen_US
.
Open Graph type "article"
article-author
article-publisher
article-tag
article-section
Facebook Insights
fb-admins
fb-app_id
Twitter Cards
twitter-card
- Defaults tosummary
. Best to leave it blank.twitter-site
- The username of the associated Twitter account. Defaults to @thesimswiki.twitter-domain
- The name of the website. Technically deprecated. Defaults toThe Sims Wiki
.twitter-creator
- The username of the creator of the content.twitter-image-src
- The image to use for Twitter Cards and link embeds. If blank, defaults to whatever is specified inimage
, else defaults to the wiki's logo.twitter-description
- The meta description of the page. Defaults to whatever is specified indescription
, otherwise defaults toThe Sims Wiki is a website about The Sims that anyone can contribute to. Content includes The Sims, The Sims 2, The Sims 3, The Sims 4, and more.
Template Meta Tag displays metatag info collected by Form:Meta Tag. The tags are written to pages in the Meta: namespace which are transcluded into an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page Name | name | Name of the article to be tagged. | String | optional |
Page ID | pageid | Article page ID number. | Number | optional |
Meta Title | title | Enter Meta Title edit text | String | optional |
Title Mode | title_mode | Select to replace, prepend or append the default meta title. | String | optional |
Title Separator | title_separator | Select a hyphen or colon to separate the Title and the Title Edit | String | optional |
Description | description | Short summary description (256 chrs max). | String | optional |
Keywords | keywords | Enter up to 8 search term keywords separated by a comma.
| String | optional |
Robots | robots | Select robot instructions.
| String | optional |
Googlebot | googlebot | Optional Googlebot instructions | String | optional |
Meta Generator | metagen | Optional meta formats | String | optional |
Page Type | type | Select a page object type: Article, Audio, Book, Video | String | optional |
Image | image | Enter a .jpg filename or upload a new .jpg image. | File | optional |
image_width | image_width | Enter preferred image width (640px default)
| Number | optional |
Image Height | image_height | Enter the preferred image height (480px default)
| Number | optional |
Image Alternate | image_alt | Enter alternate text to display if the image is missing. | String | optional |
Author Name | author | Enter the author's name | String | optional |
Publisher | site_name | Enter the host web site name.
| String | optional |
Publish Date | published_time | Auto-filled from the article's revision date. | Unknown | optional |
Section | section | Enter a the article's section (ie: Reference, Local, State, National) | String | optional |
Locale | locale | Enter language_Territory (en_US)
| String | optional |
Poster | poster | Auto filled with username | String | optional |
Post Date | posted | Auto-filled. Admin edit only. | String | optional |
The above documentation is transcluded from Template:Meta Tag/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |