Difference between revisions of "Template:UX"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Bumsakalaka (talk | contribs) |
||
(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
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 pageseotitle
(optional) - title showed when sharing page or for web crawlers like Googledescription
(optional) - description showed when sharing page or for web crawlers like Googleimage
(optional) - image showed when sharing pagelocale
(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 askeywords
for template Template:SEO, list of keywords for pagesortingtitle
(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 fortype=fan-expansion
) - If expansion has new featuresfeaturetemplate
(required forfeatures=yes
) - If new features are defined in Template:Featurevistasfeatures
(required forfeatures=yes
) - If new features are scored or not by Vistas and mentioned there
figures
(required fortype=fan-expansion
) - If expansion has new figuresfiguretemplate
(required forfigures=yes
) - If new figures are defined in Template:Figure
pieces
(required fortype=fan-expansion
) - If expansion has new piecespiecetemplate
(required forpieces=yes
) - If new pieces are defined in Template:Piecevistaspieces
(required forpieces=yes
) - If new pieces are scored or not by 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.