Difference between revisions of "Template:UX"

From Wikicarpedia
Jump to navigation Jump to search
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
| basegame
| basegame
| expansion =
| expansion =
| fan-expansion = {{Category|Fan Expansions}}
| fan-expansion = {{Category|Fan Expansions}}{{#if:
{{{features|}}}
|
  {{#ifeq:
    {{{features|}}}
    |
      yes
    |
      {{Category|New features}}
      {{#ifeq:
        {{{featuretemplate|}}}
        |
          yes
        |
        |
          {{Category|Editor Manual - UX - Missing parameter}}
          {{Category|Editor Manual - UX - Missing parameter - featuretemplate}}
      }}
      {{#ifeq:
        {{{vistasfeatures|}}}
        |
          yes
        |
        |
          {{Category|Editor Manual - UX - Missing parameter}}
          {{Category|Editor Manual - UX - Missing parameter - vistasfeatures}}
      }}
  }}
|
  {{Category|Editor Manual - UX - Missing parameter}}
  {{Category|Editor Manual - UX - Missing parameter - features}}
}}{{#if:
{{{figures|}}}
|
  {{#ifeq:
    {{{figures|}}}
    |
      yes
    |
      {{Category|New figures}}
      {{#ifeq:
        {{{figuretemplate|}}}
        |
          yes
        |
        |
          {{Category|Editor Manual - UX - Missing parameter}}
          {{Category|Editor Manual - UX - Missing parameter - figuretemplate}}
      }}
  }}
|
  {{Category|Editor Manual - UX - Missing parameter}}
  {{Category|Editor Manual - UX - Missing parameter - figures}}
}}{{#if:
{{{pieces|}}}
|
  {{#ifeq:
    {{{pieces|}}}
    |
      yes
    |
      {{Category|New pieces}}
      {{#ifeq:
        {{{piecetemplate|}}}
        |
          yes
        |
        |
          {{Category|Editor Manual - UX - Missing parameter}}
          {{Category|Editor Manual - UX - Missing parameter - piecetemplate}}
      }}
  }}
|
  {{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}}
Line 16: Line 91:
* <code>seokeywords</code> (optional) - used as <code>keywords</code> for template [[:Template:SEO]], list of keywords for page
* <code>seokeywords</code> (optional) - used as <code>keywords</code> for template [[:Template:SEO]], list of keywords for 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>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>features</code> (required for <code>type=fan-expansion</code>) - If expansion has new features
** <code>featuretemplate</code> (required for <code>features=yes</code>) - If new features are defined in '''[[:Template:Feature]]'''
** <code>vistasfeatures</code> (required for <code>features=yes</code>) - If new features are scored or not by '''{{VistasLink|logo=noborder}}''' and mentioned there
* <code>figures</code> (required for <code>type=fan-expansion</code>) - If expansion has new figures
** <code>figuretemplate</code> (required for <code>figures=yes</code>) - If new figures are defined in '''[[:Template:Figure]]'''
* <code>pieces</code> (required for <code>type=fan-expansion</code>) - If expansion has new pieces
** <code>piecetemplate</code> (required for <code>pieces=yes</code>) - If new pieces are defined in '''[[:Template:Piece]]'''
** <code>vistaspieces</code> (required for <code>pieces=yes</code>) - If new pieces are scored or not by '''{{VistasLink|logo=noborder}}''' and mentioned there


== 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:38, 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
    • featuretemplate (required for features=yes) - If new features are defined in Template:Feature
    • vistasfeatures (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
    • figuretemplate (required for figures=yes) - If new figures are defined in Template:Figure
  • pieces (required for type=fan-expansion) - If expansion has new pieces
    • piecetemplate (required for pieces=yes) - If new pieces are defined in Template:Piece
    • vistaspieces (required for pieces=yes) - If new pieces are scored or not by Vistas Vistas and mentioned there

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.