Difference between revisions of "Template:UX"

From Wikicarpedia
Jump to navigation Jump to search
 
(59 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#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 - Missing SEO description]]</includeonly> }}<noinclude>{{Breadcrumbs|link1={{EditorManualLink}}}}{{Category|Editor Manual}}{{UnderConstruction|type=template}}
<includeonly>{{#switch:{{{type|}}}
| basegame
| expansion =
| fan-expansion = {{Category|Fan Expansions}}
{{#switch:{{{tiles|}}}
| no =
  {{Category|No tiles expansion}}
| yes =
  {{Category|New tiles}}
  {{#switch:{{{features|}}}
  | no =
  | yes =
    {{Category|New features}}
    {{#switch:{{{features-template|}}}
    | no
    | yes =
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-template}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features-template}}
    }}
    {{#switch:{{{features-blackdragon|}}}
    | no =
    | yes = {{Category|Black Dragon - Protected features}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-blackdragon}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features-blackdragon}}
    }}
    {{#switch:{{{features-covid|}}}
    | no =
    | yes = {{Category|COVID-19 - Infection spread to feature}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-covid}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features-covid}}
    }}
    {{#switch:{{{features-vistas|}}}
    | no =
    | yes = {{Category|Vistas - Scorable}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-vistas}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features-vistas}}
    }}
  | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features{{{features}}}}}
  | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features}}
  }}
| = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - tiles}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - tiles}}
}}
{{#switch:{{{figures|}}}
| no =
| yes =
    {{Category|New figures}}
    {{#switch:{{{figures-template|}}}
    | no
    | yes =
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-template}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - figures-template}}
    }}
    {{#switch:{{{figures-meeple|}}}
    | no =
    | yes = {{Category|New meeple figures}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-meeple}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - figures-meeple}}
    }}
    {{#switch:{{{figures-neutral|}}}
    | no =
    | yes = {{Category|New neutral figures}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-neutral}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - figures-neutral}}
    }}
    {{#switch:{{{figures-special|}}}
    | no =
    | yes = {{Category|New special figures}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-special}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - figures-special}}
    }}
    {{#switch:{{{figures-blackdragon|}}}
    | no =
    | yes = {{Category|Black Dragon - Eaten figures}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-blackdragon}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - figures-blackdragon}}
    }}
    {{#switch:{{{figures-dragon|}}}
    | no =
    | yes = {{Category|Black Dragon - Eaten figures}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-dragon}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - figures-dragon}}
    }}
| = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - figures}}
}}
{{#switch:{{{pieces|}}}
| no =
| yes =
    {{Category|New pieces}}
    {{#switch:{{{pieces-template|}}}
    | no
    | yes =
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-template}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - pieces-template}}
    }}
    {{#switch:{{{pieces-figureson|}}}
    | no =
    | yes =
      {{Category|Figures can be placed on new pieces}}
      {{#switch:{{{pieces-figureson-blackdragon|}}}
      | no
      | yes =
      | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-figureson-blackdragon}}
      | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - pieces-figureson-blackdragon}}
      }}
      {{#switch:{{{pieces-figureson-dragon|}}}
      | no
      | yes =
      | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-figureson-dragon}}
      | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - pieces-figureson-dragon}}
      }}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-figureson}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - pieces-figureson}}
    }}
    {{#switch:{{{pieces-blackdragon|}}}
    | no =
    | yes = {{Category|Black Dragon - Eaten pieces}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-blackdragon}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features-blackdragon}}
    }}
    {{#switch:{{{pieces-dragon|}}}
    | no =
    | yes = {{Category|Dragon - Eaten pieces}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-dragon}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features-dragon}}
    }}
    {{#switch:{{{pieces-vistas|}}}
    | no =
    | yes = {{Category|Vistas - Scorable}}
    | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-vistas}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - pieces-vistas}}
    }}
| = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - pieces}}
}}
{{#switch:{{{generalrules|}}}
| no
| yes =
| =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - generalrules}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - generalrules}}
}}
{{#switch:{{{gamefigures|}}}
| no
| yes =
| =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - gamefigures}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - gamefigures}}
}}
{{#switch:{{{orderofplay|}}}
| no
| yes =
| = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - orderofplay}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - orderofplay}}
}}
{{#switch:{{{scoringduringturnsequence|}}}
| no
| yes =
| =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - scoringduringturnsequence}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - scoringduringturnsequence}}
}}
{{#switch:{{{scoringaftergame|}}}
| no
| yes =
| =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - scoringaftergame}}
| {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - scoringaftergame}}
}}
| 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}}
== Description ==
== Description ==
Multiple settings which have affects on displaying, sorting, SEO etc. This template calls '''[[:Template:SEO]]''' template.
Multiple settings which have affects on displaying, sorting, SEO, automatic categorizations, checklists etc. This template calls '''[[:Template:SEO]]''' template.


== Parameters ==
== Parameters ==
* <code>seotitle</code> (optional) - title showed when sharing page or for web crawlers like Google
* '''WiCa'''
* <code>description</code> (optional) - description showed when sharing page or for web crawlers like Google
** <code>type</code> (required) - [ <code>basegame</code> | <code>expansion</code> | <code>fan-expansion</code> | <code>template</code> ] - type of page
* <code>image</code> (optional) - image showed when sharing page
** <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>locale</code> (optional) - locale for current page, it's automatically added by current page language. But when different language is main page, need to set.
* '''SEO'''
* <code>seokeywords</code> (optional) - used as <code>keywords</code> for template [[:Template:SEO]], list of keywords for page
** <code>seotitle</code> (optional) - title showed when sharing page or for web crawlers like Google
** <code>description</code> (optional) - description showed when sharing page or for web crawlers like Google
** <code>image</code> (optional) - image showed when sharing page
** <code>locale</code> (optional) - locale for current page, it's automatically added by current page language. But when different language is main page, need to set.
** <code>seokeywords</code> (optional) - used as <code>keywords</code> for template [[:Template:SEO]], list of keywords for page
* '''Tiles'''
** <code>tiles</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion has new tiles
*** '''Features'''
**** <code>features</code> (required for <code>tiles=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion has new features
***** <code>features-template</code> (required for <code>features=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new features are defined in '''[[:Template:Feature]]'''
***** <code>features-blackdragon</code> (required for <code>features=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new features are protected by Black Dragon from '''{{BlackDragonLink|logo=noborder}}''' and mentioned there
***** <code>features-covid</code> (required for <code>features=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If COVID-19 can spread to new features and mentioned on '''{{COVID19Link|logo=noborder}}'''
***** <code>features-vistas</code> (required for <code>features=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new features are scored or not by '''{{VistasLink|logo=noborder}}''' and mentioned there
* '''Figures'''
** <code>figures</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion has new figures
*** <code>figures-template</code> (required for <code>figures=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new figures are defined in '''[[:Template:Figure]]'''
*** <code>figures-meeple</code> (required for <code>figures=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new figures a meeple type
*** <code>figures-neutral</code> (required for <code>figures=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new figures a neutral type
*** <code>figures-special</code> (required for <code>figures=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new figures a special type
*** <code>figures-dragon</code> (required for <code>figures=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new fgures can be eaten by {{Figure|name=Dragon|edition=C2|text=Dragon}} and mentioned on '''{{PrincessDragonLink|logo=noborder|edition=C2}}''' and '''{{PrincessDragonLink|logo=noborder|edition=C1}}'''.
*** <code>figures-blackdragon</code> (required for <code>figures=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new figures can be eaten by Black Dragon from '''{{BlackDragonLink|logo=noborder}}''' and mentioned there
* '''Pieces'''
** <code>pieces</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion has new pieces
*** <code>pieces-template</code> (required for <code>pieces=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new pieces are defined in '''[[:Template:Piece]]'''
*** <code>pieces-blackdragon</code> (required for <code>pieces=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new pieces can be eaten by Black Dragon from '''{{BlackDragonLink|logo=noborder}}''' and mentioned there
*** <code>pieces-dragon</code> (required for <code>pieces=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new pieces can be eaten by by {{Figure|name=Dragon|edition=C2|text=Dragon}} and mentioned on '''{{PrincessDragonLink|logo=noborder|edition=C2}}''' and '''{{PrincessDragonLink|logo=noborder|edition=C1}}'''.
*** <code>pieces-figureson</code> (required for <code>pieces=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If it is possible to place figures on new pieces
**** <code>pieces-figureson-blackdragon</code> (required for <code>pieces=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If figures on new pieces can be eaten by by {{Figure|name=BlackDragon|edition=C2|text=Black Dragon}} and mentioned on '''{{BlackDragonLink|logo=noborder}}.
**** <code>pieces-figureson-dragon</code> (required for <code>pieces=yes</code>) - [ <code>yes</code> | <code>no</code> ] - IF figures on new pieces can be eaten by by {{Figure|name=Dragon|edition=C2|text=Dragon}} and mentioned on '''{{PrincessDragonLink|logo=noborder|edition=C2}}''' and '''{{PrincessDragonLink|logo=noborder|edition=C1}}'''.
*** <code>pieces-vistas</code> (required for <code>pieces=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new pieces are scored or not by '''{{VistasLink|logo=noborder}}''' and mentioned there
* '''Rules'''
** <code>generalrules</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion has defined general rules for new expansions
* '''Reference pages'''
** <code>gamefigures</code> (required for <code>figures=yes</code>) - [ <code>yes</code> | <code>no</code> ] - If new figures are mentioned in '''[[:Carcassonne Game Figures]]''' reference page
** <code>orderofplay</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion is mentioned in '''[[:Carcassonne Order of Play]]''' reference page
** <code>scoringaftergame</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion is mentioned in '''[[:Carcassonne Scoring After the Game]]''' reference page
** <code>scoringduringturnsequence</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion is mentioned in '''[[:Carcassonne Scoring During Turn Sequence]]''' reference page


== Todo ==
== Todo ==
Working in progress for template with some stuff which impoves SEO, sharing on social networks, display title of page, default sorting for categories, etc.</noinclude>
# Figures stuff - special figures, neutral figures, player figures, black dragon diet, dragon diet, covid infection
# What to do with NKO?
# What to do with King's priviledges
# What to do with Alternative scoring boards

Latest revision as of 20:33, 10 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, automatic categorizations, checklists etc. This template calls Template:SEO template.

Parameters

  • WiCa
    • type (required) - [ basegame | expansion | fan-expansion | template ] - type of 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.
  • SEO
    • 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
  • Tiles
    • tiles (required for type=fan-expansion) - [ yes | no ] - If expansion has new tiles
      • Features
        • features (required for tiles=yes) - [ yes | no ] - If expansion has new features
          • features-template (required for features=yes) - [ yes | no ] - If new features are defined in Template:Feature
          • features-blackdragon (required for features=yes) - [ yes | no ] - If new features are protected by Black Dragon from Black Dragon Black Dragon and mentioned there
          • features-covid (required for features=yes) - [ yes | no ] - If COVID-19 can spread to new features and mentioned on COVID-19 COVID-19
          • features-vistas (required for features=yes) - [ yes | no ] - If new features are scored or not by Vistas Vistas and mentioned there
  • Figures
    • figures (required for type=fan-expansion) - [ yes | no ] - If expansion has new figures
      • figures-template (required for figures=yes) - [ yes | no ] - If new figures are defined in Template:Figure
      • figures-meeple (required for figures=yes) - [ yes | no ] - If new figures a meeple type
      • figures-neutral (required for figures=yes) - [ yes | no ] - If new figures a neutral type
      • figures-special (required for figures=yes) - [ yes | no ] - If new figures a special type
      • figures-dragon (required for figures=yes) - [ yes | no ] - If new fgures can be eaten by Dragon and mentioned on The Princess & the Dragon The Princess & the Dragon and The Princess & the Dragon The Princess & the Dragon.
      • figures-blackdragon (required for figures=yes) - [ yes | no ] - If new figures can be eaten by Black Dragon from Black Dragon Black Dragon and mentioned there
  • Pieces
    • pieces (required for type=fan-expansion) - [ yes | no ] - If expansion has new pieces
      • pieces-template (required for pieces=yes) - [ yes | no ] - If new pieces are defined in Template:Piece
      • pieces-blackdragon (required for pieces=yes) - [ yes | no ] - If new pieces can be eaten by Black Dragon from Black Dragon Black Dragon and mentioned there
      • pieces-dragon (required for pieces=yes) - [ yes | no ] - If new pieces can be eaten by by Dragon and mentioned on The Princess & the Dragon The Princess & the Dragon and The Princess & the Dragon The Princess & the Dragon.
      • pieces-figureson (required for pieces=yes) - [ yes | no ] - If it is possible to place figures on new pieces
      • pieces-vistas (required for pieces=yes) - [ yes | no ] - If new pieces are scored or not by Vistas Vistas and mentioned there
  • Rules
    • generalrules (required for type=fan-expansion) - [ yes | no ] - If expansion has defined general rules for new expansions
  • Reference pages

Todo

  1. Figures stuff - special figures, neutral figures, player figures, black dragon diet, dragon diet, covid infection
  2. What to do with NKO?
  3. What to do with King's priviledges
  4. What to do with Alternative scoring boards