Difference between revisions of "Template:UX"

From Wikicarpedia
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#switch:{{{type|}}}
<includeonly>{{#switch:{{{type|}}}
| basegame
| basegame
| expansion
| expansion =
| fan-expansion
| fan-expansion = {{Category|Fan Expansions}}
| template =
| template = {{Category|Editor Manual}}
| {{Category|Editor Manual - UX - Unknown type}} }}</includeonly>{{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}} }} }}{{#if: {{{sortingtitle|}}} | {{DEFAULTSORT:{{{sortingtitle}}} }} }}{{SEO|title={{{seotitle|}}}|description={{#ifeq: {{{description|}}} | <!--Need to add a description - anyone can add :)--> | {{TextCarcassonne}} {{TextAnnotatedRules}} {{TranslatedPageName}} | {{{description|}}} }}|locale={{{locale|}}}|image={{{image|}}}|keywords={{{seokeywords|}}} }}{{#ifeq: {{{description|}}} | <!--Need to add a description - anyone can add :)--> | <includeonly>{{Category|Editor Manual - UX - Missing description}}</includeonly> }}<noinclude>{{Breadcrumbs|link1={{EditorManualLink}}}}{{Category|Editor Manual}}{{UnderConstruction|type=template}}
| {{Category|Editor Manual - UX - Unknown type}} }}</includeonly>{{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}} }} }}{{#if: {{{sortingtitle|}}} | {{DEFAULTSORT:{{{sortingtitle}}} }} }}{{SEO|title={{{seotitle|}}}|description={{#ifeq: {{{description|}}} | <!--Need to add a description - anyone can add :)--> | {{TextCarcassonne}} {{TextAnnotatedRules}} {{TranslatedPageName}} | {{{description|}}} }}|locale={{{locale|}}}|image={{{image|}}}|keywords={{{seokeywords|}}} }}{{#ifeq: {{{description|}}} | <!--Need to add a description - anyone can add :)--> | <includeonly>{{Category|Editor Manual - UX - Missing description}}</includeonly> }}<noinclude>{{Breadcrumbs|link1={{EditorManualLink}}}}{{Category|Editor Manual}}{{UnderConstruction|type=template}}
== Description ==
== Description ==

Revision as of 22:45, 5 May 2024

Exclamation2.png

This template is Under construction!
Parameters, output and others can be changed.

Description

Multiple settings which have affects on displaying, sorting, SEO etc. This template calls Template:SEO template.

Parameters

  • type (required) - [ basegame | expansion | fan-expansion | template ] - type of page
  • seotitle (optional) - title showed when sharing page or for web crawlers like Google
  • description (optional) - description showed when sharing page or for web crawlers like Google
  • image (optional) - image showed when sharing page
  • locale (optional) - locale for current page, it's automatically added by current page language. But when different language is main page, need to set.
  • seokeywords (optional) - used as keywords for template Template:SEO, list of keywords for page
  • sortingtitle (optional) - name used for sorting current page in Category listing, example The Phantom with sortingtitle=Phantom will be categorized unser P, instead of T because of The on begin of the name.

Todo

Working in progress for template with some stuff which improves SEO, sharing on social networks, display title of page, default sorting for categories, etc.