Difference between revisions of "Template:SEO"
Jump to navigation
Jump to search
Tag: Undo |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
{{#if: {{{keywords|}}} | keywords="{{lc:{{{keywords}}}}}" | {{Category|Missing SEO keywords}}}} | {{#if: {{{keywords|}}} | keywords="{{lc:{{{keywords}}}}}" | {{Category|Missing SEO keywords}}}} | ||
{{#if: {{{title|}}} | title="{{{title}}}" | {{Category|Missing SEO title}} }} | {{#if: {{{title|}}} | title="{{{title}}}" | {{Category|Missing SEO title}} }} | ||
{{#if: {{{description|}}} | description="{{{description}}}" | | {{#if: {{{description|}}} | description="{{{description}}}" | {{Category|Missing SEO description}}}} | ||
{{#ifeq: {{{image|}}} | | image="https://wikicarpedia.com/resources/assets/logo2.png" | image="{{{image}}}" }} | {{#ifeq: {{{image|}}} | | image="https://wikicarpedia.com/resources/assets/logo2.png" | image="{{{image}}}" }} | ||
type="{{{type|article}}}" | type="{{{type|article}}}" |
Latest revision as of 20:18, 3 April 2024
Description
Internal template. Please use Template:UX.
Include HTML tags for SEO (Search Engine Optionalization) and also for generate data when sharing page on Social networks.
Parameters
title
(optional) - overwrite title of page, example page title Base game, but we want share as Carcassonne - Base gamedescrition
(optional) - overwrite description of page, because description is by default generated as first paragraph of pageimage
(optional) - overwrite image when sharing on social networks, set ad Image name (without File:), by default WICA logotype
(optional) - overwritetype=article
to requested type be Open Graph definitionlocale
(optional) - overwritelocale={{PAGELANGUAGE}}
with requested locale, when page is not in English and is not translatablekeywords
(optional) - comma-separated list of keywords, automatically transformed to lowercase- will be included...
Attention
- Template should be used on every page, ideally before main
<translate>
but after any redirect and every parameter market for translate like{{SEO|title=<translate>...</translate>|description=<translate>...
image
has to be included by{{filepath:Name_of_image.png|nowiki}}
which generated real URL to image
Example
This is internal template, use new template Template:UX.
{{SEO|title=Carcassonne - Base game|description=Best game on the World|image={{filepath:Box_C3_ZMG.png|nowiki}} }}