Difference between revisions of "Template:UX"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Bumsakalaka (talk | contribs) |
||
Line 2: | Line 2: | ||
| basegame | | basegame | ||
| expansion = | | expansion = | ||
| fan-expansion = {{Category|Fan Expansions}}{{#if:{{{ | | fan-expansion = {{Category|Fan Expansions}}{{#if:{{{features|}}}|{{#ifeq:{{{features|}}}|yes|{{Category|New features}}}}|{{Category|Editor Manual - UX - Missing parameter}}{{Category|Editor Manual - UX - Missing parameter - features}} }}{{#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}} }} | ||
| 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 17: | Line 17: | ||
* <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> | * <code>features</code> (required for <code>type=fan-expansion</code>) - If expansion has new features | ||
* <code> | * <code>figures</code> (required for <code>type=fan-expansion</code>) - If expansion has new figures | ||
* <code>pieces</code> (required for <code>type=fan-expansion</code>) - If expansion has new pieces | |||
== 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:11, 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 featuresfigures
(required fortype=fan-expansion
) - If expansion has new figurespieces
(required fortype=fan-expansion
) - If expansion has new pieces
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.