Difference between revisions of "Template:UX"

From Wikicarpedia
Jump to navigation Jump to search
Line 2: Line 2:
| basegame
| basegame
| expansion =
| expansion =
| fan-expansion = {{Category|Fan Expansions}}{{#if:{{{checklistfeature|}}}|{{#ifeq:{{{checklistfeature|}}}|yes|{{Category|New features}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - checklistfeature}} }}
| fan-expansion = {{Category|Fan Expansions}}{{#if:{{{checklistfeatures|}}}|{{#ifeq:{{{checklistfeatures|}}}|yes|{{Category|New features}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - checklistfeatures}} }}{{#if:{{{checklistfigures|}}}|{{#ifeq:{{{checklistfigures|}}}|yes|{{Category|New figures}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - checklistfigures}} }}
| template = {{Category|Editor Manual}}
| 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}}
Line 17: Line 17:
* <code>sortingtitle</code> (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.
* <code>sortingtitle</code> (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.


* <code>checklistfeature</code> (required for <code>type=fan-expansion</code>) - If expansion has new features
* <code>checklistfeatures</code> (required for <code>type=fan-expansion</code>) - If expansion has new features
* <code>checklistfigures</code> (required for <code>type=fan-expansion</code>) - If expansion has new figures


== Todo ==
== 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.</noinclude>
Working in progress for template with some stuff which improves SEO, sharing on social networks, display title of page, default sorting for categories, etc.</noinclude>

Revision as of 02:08, 6 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.
  • checklistfeatures (required for type=fan-expansion) - If expansion has new features
  • checklistfigures (required for type=fan-expansion) - If expansion has new figures

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.