User:DJemba/Help
From Guild Wars 2 Wiki
Jump to navigationJump to search
TOC
MediaWiki
About
- MediaWiki — provides extensions as parser and string functions
- Templates simplify life! Templates are used to for repetitive and complicated tasks to avoid duplicate work. Created in template namespace and can be transcluded with {{<template name>}} on any page, without or with parameters, e.g. {{<template name>|<unnamed parameter value 1>|<parameter 1>=<value 1>}}
- Parameters are either named, e.g. <parameter 1> are called with {{{<parameter 1>}}} or unnamed, i.e. they are numbered ascending, e.g. {{{1}}}.
- If a parameter isn't specified in the template, the parameter name itself will be displayed. Use an alternative value to avoid this (which can also be empty): {{{<parameter 1>|<alternative value>}}}.
- Template inclusion can be handled by the following tags: <includeonly> — included, only invisible on template page; <noinclude> — excluded, only visible the template page; <onlyinclude> — included, but visible on the template page.
- Formatting guide — template page documentation formatting guide, please make sure to give at least a short description and a list of all available parameters.
- Substitution can be used with templates, magic words or parser functions and automatically converts the returned value of those into wikitext.
- {{subst:<magic word>}} — substitutes the magic word, e.g. {{subst:PAGENAME}}
- {{subst:<template>}} — e.g. {{reset indent}}
- {{subst:#show:{{subst:PAGENAME}}|?Has canonical name}}
- {{#vardefine:<variable name>|<value>}} — creates a variable with given value.
- {{#var:<variable name>}} — returns value of specified variable
Tables — see also: wikipedia:Tables and GW2Wiki:Tables
- {{STDT}} — standard table design template
- Sorting — sorting tables
- Collapsible tables — {{STDT|expandable}} and {{STDT|collapsible}}
- [[Special:Diff/<old id>/<new id>]] — version difference link
- [[Special:PermanentLink/<id>]] — permanent link
- [[Special:History/<page name>]] — history link
- [[Special:Whatlinkshere/<page name>]] — what links here
- {{PAGENAME}} — Page's name
- {{NAMESPACE}} — Page's namespace
- {{#tag:<tagname>|<content>}} — Allows to parse content first
- {{lc: <string>}}, {{uc: <string>}}, {{ucfirst: <string>}} — changes the case of the string to be lowercase, uppercase, and uppercase the first letter, respectively.
- {{formatnum:<number>}} — takes unformatted number and adds decimal and group separators. Adding |R reverses the process.
- {{#if: <string> | <if not empty> | <else>}}
- {{#ifeq: <string 1> | <string 2> | <if identical> | <else>}}
- {{#switch: <comparison string> | <case1> = <result1> | <case2> | <case3> = <result2;3> | #default = <default result> }}
- {{#expr: <mathematical expression>}}
- {{#time: <format> | <date/time>}}
- {{#pos: <string> | <search term>}}
- {{#replace: <string> | <search term> | <replace term>}}
- {{#explode: <string> | <delimiter> | <position>}}
- {{#arraymap:<list>|<delimiter>|<variable>|<applied on each element>|<new delimiter>}} — maps over a list separated by the delimiter (e.g. new line: "\n" or comma: ","), where each entry (use them as variable, e.g. @@@) is modified individually and then concatenated with the new delimiter.
Semantic MediaWiki
About
- Semantic MediaWiki — provides parser functions: #ask and #show and inline queries
- {{#ask: [[Category:<category>]] [[<property>::<property value>]] | ?<show property 1> | ?<show property 2> | <options>}}
- {{#show: <pagename> | <options>}} — shortcut for {{#ask: [[<pagename>]] | mainlabel=- | <options>}}
- [[<property>::<value>]] — selects all pages having the <property> set to the <value>
- [[Category:<category>]] — selects all pages within the category <category>
- [[<namespace>:+]] — selects all pages within the namespace
- [[:Category:+]] — selects all pages within the Category: namespace
- [[<property>::+]] — any value of given property
- [[<property>::~*<string>*]] — wildcard search
- [[<property>::!<not value>]] and [[<property>::!~<not string>]] — exclude from search
- [[<property>::>><value>]] — greater than (less than same with <<)
- [[<property>::<value1>||<value2>]] — OR union of allowed values
- [[<property>::in:<string>]] — same as ~*<string>* and [[<number property>::in:100]] (from 0 to 100) or [[<date property>::in:2020]]
- [[<property>::like:<string>]] and [[<property>::nlike:<not string>]] — new concepts for wildcard search
- It is not possible to query for the absence of a property or category. Workaround is possible but complicated
- ?<property> — displays the values of the <property>
- ?<property>=<displayed property name> — overrides the property name intro, can also be empty (see also headers=hide for list formats)
- ?<property># — displays the value in plain format, useful to suppress thousand number separator or page link (see also link=none)
- ?<property>|+limit=<number> — limits the displayed properties to <number>
- ?<property>|+offset=<number> — offsets the displayed properties by <number>
- ?<property>|+order=<sorting order> — allows to sort the displayed properties: "asc", "desc" and "n-asc", "n-desc" (numerical)
- ?<file property>#noimage — suppresses the image
- ?<file property>#<size, e.g. 250px>;<further image options> — image options, note that link=<page name> is not possible
- ?<boolean property>#tick — displays true and false as ✓ or ✕ and ?<boolean property>#num as 1 or 0
- format — defines the result format, e.g. "table", "list", "ol" (ordered list), "ul" (unordered list), "count", "plainlist" (result format specified by template)
- limit — maximal number of results
- offset — where to start
- sort — list of properties that define the sort order, leave empty to sort by main result, separated by ","
- order — sort order: "asc" or "desc", again separated by ","
- headers — can be set to "show" (default) to display the properties as links, "plain" to display them as plain text or "hide"
- mainlabel — Displayed main label text, set to "-" to disable
- link — can be set to "none" to display the result as plain text
- default — default displayed text if nothing is returned
- intro and outro — intro and outro text, for templates use introtemplate and outrotemplate to ensure proper parsing
- searchlabel — search label if limit is exceeded
- format=table and format=broadtable — sortable wikitable table
- ?<property>|+align=<left/center/right>
- ?<property>|+width=<width, e.g. 250px>
- class=<css classes>
- sep=ul/ol — special format for multi value properties
- format=list — comma list with properties displayed in parenthesis, since this format uses lots of css stuff it's not recommended to use this in templates (use format=plainlist instead)
- format=ul and format=ol — unordered and ordered list
- format=count — returns the number of results
- format=sum — sums up the queried property of all results
- format=gallery — image gallery format
- format=plainlist — either a plain list format separated by "," or specify your own result format template using template=<template name>
- template=<template name> — set to the template name
- userparam=<value> — a value passed to every call of the template, in the template is called by {{{#userparam|<default>}}}
- introtemplate=<template name> — used to properly parse tables
- outrotemplate=<template name> — can be set to "table footer"
- sep=<separator> — separator between the individual results
- propsep=<separator> — separator between the properties of a result
- valuesep=<separator> — separator between the values of a property
- template=<template name> — set to the template name
- {{#smwdoc: <format>|parameters=<specific, base, all>}} — quick parameter documentation
- Property naming — chose some ambiguous and meaningful name
- Property datatypes — "Page", "Text", "Number", etc...
- [[<property>::<value>]] — sets <property> to <value> on the page used and furthermore displays the value
- {{#set: <property>=<value>}} — sets <property> to <value> silently
- {{#set: <property>=<value a>;<value b>;<value c>|+sep=;}} — sets multiple properties separated by ";"
- Subobjects allow to store and group properties within on one page without specifing auxiliary pages
- {{#subobject:<name>
|<property 1>=<value 1>
|<property 2>=<value 2a>;<value 2b>|+sep=;}} - [[Has subobject::<page name>]] — get all subobjects from one page
Additional concepts
- Property chains — [[<property1>.<property2>::<value>]] and ?<property1>.<property2>
- Subqueries — [[<property1>::<q>[[<property2::value1]]</q>]] having a subquery within the tag <q>
- Inverse properties — [[-<property1>::<value>]] and ?-<property1>
- Subobject sortkey — @sortkey=<sort value> sets a sortkey to the subobject which is used instead of <page name>#<subobject name>
- {{#info: <text>}} — nice tooltip tool that also support links
DynamicPageList
About
- DynamicPageList3 — extension providing the {{#dpl: }} function
#dpl:
- {{#dpl: <page selection>|<output format>|<output order>|<output control>}} — creates a list of pages fulfilling the gives parameters.
- Every section can have several different parameters set, separated by |.
- category=<category name> — selects pages from chosen category
- category=<1st category name>{{!}}<2nd category name> — OR, can be used in any following parameter unless stated otherwise ({{!}} is used instead of | due to parsing)
- category=<1st category name>&<2nd category name> — AND, can't be mixed with OR
- category=*<category name> — chosen category + all direct subcategories, double asterisks (**) can be used to extend to two levels. More levels are not supported.
- category=_none_ — uncategorized pages
- notcategory=<category name> — selects pages outside of category, can't use OR combination
- namespace=<namespace name> — selects pages from given namespace, case sensitive; leave empty for Main
- linksfrom=<full page name> — selects pages linked to from the chosen page
- linksto=<full page name> — selects pages that link to the chosen page
- imageused=<image name> — selects pages using chosen image, File: namespace can be left out
- uses=Template:<template name> — selects pages using given template
- notuses=Template:<template name>
- titlematch=<pattern> — selects pages with title matching the pattern, use % to match the rest of title in either direction
- nottitlematch=<pattern>
- titleregexp=<regex>
- includematch=<regex> — selects pages with content included using include= that matches the regular expression, for more info see here
- mode=<modename>
- unordered — default, bulleted list (*)
- ordered — numbered list (#)
- none — simple list (<br/>)
- category — category-like list (headers for letters); requires ordermethod=title/titlewithoutnamespace
- inline — list with custom separators
- inlinetext=<wikitext> separator; defaults to - ( - ); use • for a bullet
- userformat — custom format for fancy stuff
- ordermethod=<method1>,<method2>,... — orders output by method1, then by method2, etc. Methods can be from the following list:
- size — bytes of wiki text
- firstedit — creation
- lastedit — most recent edit
- title — pagename, including namespace
- titlewithoutnamespace — pagename without namespace
- order=<orderdirection>
- ascending — default, oldest to newest
- descending — newest to oldest
- resultsheader=<wiki text> — wiki text displayed as a headline before the results, use <\n> for newline; %PAGES% will be replaced by the number of pages found.
- resultsfooter=<wiki text> — wiki text displayed as a footline, same rules as resultsheader
- oneresultheader=<wiki text> — result header if exactly one result
- oneresultfooter=<wiki text> — result footer if exactly one result
- noresultsheader=<wiki text> — result header if no result
- noresultsfooter=<wiki text> — result footer if no result
- addcategories= — displays categories after every listed page
- include= — includes whole page or its section in the results; see here for more information. Use carefully
Guild Wars 2 Wiki
- Double redirects — only one level can be redirected automatically
- Broken redirects — redlink redirects
- Orphans — pages that have no page linking to them
- Uncategorized pages, templates, files, categories
- Wanted pages, templates, files, categories
- Pages with empty semantic mediawiki query results: 72 pages
- Pages using duplicate arguments in template calls: 0 pages
- Pages where template include size is exceeded: 0 pages
Maintenance: Tools
Maintenance: Semantic mediawiki properties
- Unintentionally set ids on user pages —
- BuffsEverywhere/sandbox6 (12345)
- BuffsEverywhere/sandbox6#WvW,PvP (12345)
- Incorrect {{stolen skill}} usage — All stolen skills are set correctly.
- Incorrect semantic mediawiki properties —
- Den Guard (NPC) (Has query, The symbol "[[" was used in a place where it is not useful.)
- Den Guard (NPC) (Has query, The part "]]" of the query was not understood.
- Den Guard (NPC) (Has query, The part "{{{young}}}" of the query was not understood. Results might not be as expected.)
- Den Guard (Has query, The symbol "[[" was used in a place where it is not useful.)
- Den Guard (Has query, The part "]]" of the query was not understood. Results might not be as expected.)
- Den Guard (Has query, The part "{{{young}}}" of the query was not understood. Results might not be as expected.)
- Lunar New Year 2025 (Has release date, "2025-01-" contains an extrinsic dash or other characters that are invalid for a date interpretation.)
- Lunar New Year 2025 (Has end date, "2025-02-" contains an extrinsic dash or other characters that are invalid for a date interpretation.)
- Redirects left after dat files — No dat redirects found.