Difference between revisions of "Template:UX"

From Wikicarpedia
Jump to navigation Jump to search
Line 5: Line 5:
  {{{features|}}}
  {{{features|}}}
  |
  |
   {{#ifeq:{
   {{#ifeq:
     {{features|}}}
     {{{features|}}}
     |yes
     |
      yes
     |
     |
       {{Category|New features}}
       {{Category|New features}}
       {{#ifeq:
       {{#ifeq:
         {{{featurestemplate|}}}
         {{{featurestemplate|}}}
         |yes
         |
          yes
         |
         |
         |
         |
Line 22: Line 24:
       {{Category|Editor Manual - UX - Missing parameter - features}}
       {{Category|Editor Manual - UX - Missing parameter - features}}
   }}
   }}
  |{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features}} }}{{#if:{{{figures|}}}|{{#ifeq:{{{figures|}}}|yes|{{Category|New figures}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures}} }}{{#if:{{{pieces|}}}|{{#ifeq:{{{pieces|}}}|yes|{{Category|New pieces}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces}} }}
  |
  {{Category|Editor Manual - UX - Missing parameter}}
  {{Category|Editor Manual - UX - Missing parameter - features}}
}}{{#if:{{{figures|}}}|{{#ifeq:{{{figures|}}}|yes|{{Category|New figures}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures}} }}{{#if:{{{pieces|}}}|{{#ifeq:{{{pieces|}}}|yes|{{Category|New pieces}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces}} }}
| 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}}

Revision as of 02:22, 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.
  • features (required for type=fan-expansion) - If expansion has new features
  • featurestemplate (required for featyres=yes) - If new features are defined in Template:Feature
  • figures (required for type=fan-expansion) - If expansion has new figures
  • pieces (required for type=fan-expansion) - If expansion has new pieces

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.