Difference between revisions of "Template:UX"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Bumsakalaka (talk | contribs) |
||
Line 5: | Line 5: | ||
{{{features|}}} | {{{features|}}} | ||
| | | | ||
{{#ifeq: | {{#ifeq: | ||
{{features|}}} | {{{features|}}} | ||
|yes | | | ||
yes | |||
| | | | ||
{{Category|New features}} | {{Category|New features}} | ||
{{#ifeq: | {{#ifeq: | ||
{{{featurestemplate|}}} | {{{featurestemplate|}}} | ||
|yes | | | ||
yes | |||
| | | | ||
| | | | ||
Line 22: | Line 24: | ||
{{Category|Editor Manual - UX - Missing parameter - features}} | {{Category|Editor Manual - UX - Missing parameter - 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}} }} | | | ||
{{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}} |
Revision as of 02:22, 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 featuresfeaturestemplate
(required forfeatyres=yes
) - If new features are defined in Template:Featurefigures
(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.