Difference between revisions of "Template:SEO"

From Wikicarpedia
Jump to navigation Jump to search
(Undo revision 358967 by Petul (talk))
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}}}" | {{#ifeq: {{{description|}}} | <!--Need to add a description - anyone can add :)--> | {{TranslatedPageName}} - {{TextCarcassonne}} {{TextAnnotatedRules}} {{Category|Missing SEO 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 game
  • descrition (optional) - overwrite description of page, because description is by default generated as first paragraph of page
  • image (optional) - overwrite image when sharing on social networks, set ad Image name (without File:), by default WICA logo
  • type (optional) - overwrite type=article to requested type be Open Graph definition
  • locale (optional) - overwrite locale={{PAGELANGUAGE}} with requested locale, when page is not in English and is not translatable
  • keywords (optional) - comma-separated list of keywords, automatically transformed to lowercase
  • will be included...

Attention

  1. 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>...
  2. 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}} }}