Difference between revisions of "Template:UX"

13,334 bytes added ,  12 days ago
no edit summary
 
(42 intermediate revisions by the same user not shown)
Line 2: Line 2:
| basegame
| basegame
| expansion =
| expansion =
| fan-expansion = {{Category|Fan Expansions}}{{#if:
| fan-expansion = {{Category|Fan Expansions}}
  {{{features|}}}
{{#switch:{{{tiles|}}}
|
  | no =
   {{#ifeq:
  {{Category|No tiles expansion}}
     {{{features|}}}
| yes =
     |
  {{Category|New tiles}}
      yes
  {{#switch:{{{features|}}}
     |
  | no =
      {{Category|New features}}
   | yes =
      {{#ifeq:
    {{Category|New features}}
        {{{featurestemplate|}}}
    {{#switch:{{{features-template|}}}
        |
    | no
          yes
    | 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}}
          {{Category|Editor Manual - UX - Missing parameter}}
    }}
          {{Category|Editor Manual - UX - Missing parameter - featurestemplate}}
    {{#switch:{{{features-blackdragon|}}}
      }}
     | no =
     |
    | yes = {{Category|Black Dragon - Protected features}}
      {{Category|Editor Manual - UX - Missing parameter}}
     | = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-blackdragon}}
      {{Category|Editor Manual - UX - Missing parameter - features}}
    | {{Category|Editor Manual - UX - Unknown parameter value}}{{Category|Editor Manual - UX - Unknown parameter value - features-blackdragon}}
  }}
    }}
|
    {{#switch:{{{features-covid|}}}
  {{Category|Editor Manual - UX - Missing parameter}}
    | no =
  {{Category|Editor Manual - UX - Missing parameter - features}}
    | yes = {{Category|COVID-19 - Infection spread to feature}}
}}{{#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-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}}
| 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 ==
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>type</code> (required) - [ <code>basegame</code> | <code>expansion</code> | <code>fan-expansion</code> | <code>template</code> ] - type of page
* '''WiCa'''
* <code>seotitle</code> (optional) - title 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>description</code> (optional) - description showed when sharing page or for web crawlers like Google
** <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>image</code> (optional) - image showed when sharing page
* '''SEO'''
* <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>seotitle</code> (optional) - title showed when sharing page or for web crawlers like Google
* <code>seokeywords</code> (optional) - used as <code>keywords</code> for template [[:Template:SEO]], list of keywords for page
** <code>description</code> (optional) - description showed when sharing page or for web crawlers like Google
* <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>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>features</code> (required for <code>type=fan-expansion</code>) - If expansion has new features
** <code>seokeywords</code> (optional) - used as <code>keywords</code> for template [[:Template:SEO]], list of keywords for page
* <code>featurestemplate</code> (required for <code>featyres=yes</code>) - If new features are defined in [[:Template:Feature]]
* '''Tiles'''
* <code>figures</code> (required for <code>type=fan-expansion</code>) - If expansion has new figures
** <code>tiles</code> (required for <code>type=fan-expansion</code>) - [ <code>yes</code> | <code>no</code> ] - If expansion has new tiles
* <code>pieces</code> (required for <code>type=fan-expansion</code>) - If expansion has new pieces
*** '''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 improves 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
advancededitor, translator, writer
26,466

edits