Difference between revisions of "Template:UX"

From Wikicarpedia
Jump to navigation Jump to search
Line 4: Line 4:
| fan-expansion = {{Category|Fan Expansions}}{{{features}}}
| fan-expansion = {{Category|Fan Expansions}}{{{features}}}
{{#switch:{{{features}}}
{{#switch:{{{features}}}
  | {<nowiki/>{{features}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features{{{features}}}}}
  | {{{features<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features{{{features}}}}}
  | no =
  | no =
  | yes =  
  | yes =  
     {{Category|New features}}
     {{Category|New features}}
     {{#switch:{{{features-template}}}
     {{#switch:{{{features-template}}}
     | {{{features-template}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-template}}
     | {{{features-template<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-template}}
     | no
     | no
     | yes =  
     | yes =  
Line 15: Line 15:
     }}
     }}
     {{#switch:{{{features-blackdragon}}}
     {{#switch:{{{features-blackdragon}}}
     | {{{features-blackdragon}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-blackdragon}}
     | {{{features-blackdragon<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-blackdragon}}
     | no =  
     | no =  
     | yes = {{Category|Black Dragon - Protected features}}
     | yes = {{Category|Black Dragon - Protected features}}
Line 21: Line 21:
     }}
     }}
     {{#switch:{{{features-covid}}}
     {{#switch:{{{features-covid}}}
     | {{{features-covid}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-covid}}
     | {{{features-covid<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-covid}}
     | no =  
     | no =  
     | yes = {{Category|COVID-19 - Infection spread to feature}}
     | yes = {{Category|COVID-19 - Infection spread to feature}}
Line 27: Line 27:
     }}
     }}
     {{#switch:{{{features-vistas}}}
     {{#switch:{{{features-vistas}}}
     | {{{features-vistas}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-vistas}}
     | {{{features-vistas<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features-vistas}}
     | no =  
     | no =  
     | yes = {{Category|Vistas - Scorable}}
     | yes = {{Category|Vistas - Scorable}}
Line 35: Line 35:
}}
}}
{{#switch:{{{figures}}}
{{#switch:{{{figures}}}
  | {{{figures}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures}}
  | {{{figures<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures}}
  | no =
  | no =
  | yes =  
  | yes =  
     {{Category|New figures}}
     {{Category|New figures}}
     {{#switch:{{{figures-template}}}
     {{#switch:{{{figures-template}}}
     | {{{figures-template}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-template}}
     | {{{figures-template<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-template}}
     | no
     | no
     | yes =  
     | yes =  
Line 46: Line 46:
     }}
     }}
     {{#switch:{{{figures-blackdragon}}}
     {{#switch:{{{figures-blackdragon}}}
     | {{{figures-blackdragon}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-blackdragon}}
     | {{{figures-blackdragon<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - figures-blackdragon}}
     | no =  
     | no =  
     | yes = {{Category|Black Dragon - Eaten figures}}
     | yes = {{Category|Black Dragon - Eaten figures}}
Line 54: Line 54:
}}
}}
{{#switch:{{{pieces}}}
{{#switch:{{{pieces}}}
  | {{{pieces}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces}}
  | {{{pieces<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces}}
  | no =
  | no =
  | yes =  
  | yes =  
     {{Category|New pieces}}
     {{Category|New pieces}}
     {{#switch:{{{pieces-template}}}
     {{#switch:{{{pieces-template}}}
     | {{{pieces-template}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-template}}
     | {{{pieces-template<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-template}}
     | no
     | no
     | yes =  
     | yes =  
Line 65: Line 65:
     }}
     }}
     {{#switch:{{{pieces-blackdragon}}}
     {{#switch:{{{pieces-blackdragon}}}
     | {{{pieces-blackdragon}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-blackdragon}}
     | {{{pieces-blackdragon<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-blackdragon}}
     | no =  
     | no =  
     | yes = {{Category|Black Dragon - Eaten pieces}}
     | yes = {{Category|Black Dragon - Eaten pieces}}
Line 71: Line 71:
     }}
     }}
     {{#switch:{{{pieces-vistas}}}
     {{#switch:{{{pieces-vistas}}}
     | {{{pieces-vistas}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-vistas}}
     | {{{pieces-vistas<nowiki/>}}} = {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - pieces-vistas}}
     | no =  
     | no =  
     | yes = {{Category|Vistas - Scorable}}
     | yes = {{Category|Vistas - Scorable}}
Line 79: Line 79:
}}
}}
{{#switch:{{{scoringduringturnsequence}}}
{{#switch:{{{scoringduringturnsequence}}}
  | {{{scoringduringturnsequence}}} =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - scoringduringturnsequence}}
  | {{{scoringduringturnsequence<nowiki/>}}} =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - scoringduringturnsequence}}
  | no
  | no
  | yes =
  | yes =
Line 85: Line 85:
}}
}}
{{#switch:{{{scoringaftergame}}}
{{#switch:{{{scoringaftergame}}}
  | {{{scoringaftergame}}} =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - scoringaftergame}}
  | {{{scoringaftergame<nowiki/>}}} =  {{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - scoringaftergame}}
  | no
  | no
  | yes =  
  | yes =  

Revision as of 09:11, 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
    • features-template (required for features=yes) - If new features are defined in Template:Feature
    • features-blackdragon (required for features=yes) - If new features are protected by Black Dragon from Black Dragon Black Dragon and mentioned there
    • features-covid (required for features=yes) - If COVID-19 can spread to new features and mentioned on COVID-19 COVID-19
    • features-vistas (required for features=yes) - If new features are scored or not by Vistas Vistas and mentioned there
  • figures (required for type=fan-expansion) - If expansion has new figures
    • figures-template (required for figures=yes) - If new figures are defined in Template:Figure
    • figures-blackdragon (required for figures=yes) - If new figures can be eaten by Black Dragon from Black Dragon Black Dragon and mentioned there
  • pieces (required for type=fan-expansion) - If expansion has new pieces
    • pieces-template (required for pieces=yes) - If new pieces are defined in Template:Piece
    • pieces-blackdragon (required for pieces=yes) - If new pieces can be eaten by Black Dragon from Black Dragon Black Dragon and mentioned there
    • pieces-vistas (required for pieces=yes) - If new pieces are scored or not by Vistas Vistas and mentioned there
  • scoringduringturnsequence (required for type=fan-expansion) - If expansion is mentioned in Carcassonne Scoring During Turn Sequence reference page
  • scoringaftergame (required for type=fan-expansion) - If expansion is mentioned in Carcassonne Scoring After the Game reference page

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.