This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

User:FrenchFlo

From Heroes Wiki
Revision as of 22:24, 25 August 2009 by imported>FrenchFlo (playing around with some [http://www.mediawiki.org/wiki/Help:Magic_words|Magic words])
Jump to navigation Jump to search

Date & Time

Variable Output Description Versions
Year
{{CURRENTYEAR}} 2026 Year
Month
{{CURRENTMONTH}} 02 Month (zero-padded number)
{{CURRENTMONTHNAME}} February Month (name)
{{CURRENTMONTHNAMEGEN}} February Month (genitive form)
{{CURRENTMONTHABBREV}} Feb Month (abbreviation) 1.5+
Day
{{CURRENTDAY}} 8 Day of the month (unpadded number)
{{CURRENTDAY2}} 08 Day of the month (zero-padded number) 1.6+
{{CURRENTDOW}} 0 Day of the week (unpadded number)
{{CURRENTDAYNAME}} Sunday Day of the week (name)
Time
{{CURRENTTIME}} 15:23 Time (24-hour HH:mm format)
{{CURRENTHOUR}} 15 Hour (24-hour zero-padded number)
Other
{{CURRENTWEEK}} 6 Week (number)
{{CURRENTTIMESTAMP}} 20260208152302 YYYYMMDDHHmmss timestamp 1.7+

Technical metadata

Revision variables return data about the latest edit to the current page, even if viewing an older version of the page.

Variable Output Description Versions
Site
{{SITENAME}} Heroes Wiki The wiki's site name ($wgSitename).
{{SERVER}} https://heroeswiki.ddns.net domain URL ($wgServer)
{{SERVERNAME}} heroeswiki.ddns.net domain name ($wgServerName)
{{DIRMARK}}
{{DIRECTIONMARK}}

Outputs a unicode-directional mark that matches the wiki's default language's direction (‎ on left-to-right wikis, ‏ on right-to-left wikis), useful in text with multi-directional text. 1.7+
{{SCRIPTPATH}} relative script path ($wgScriptPath)
{{CURRENTVERSION}} 1.43.3 The wiki's MediaWiki version. 1.7+
{{CONTENTLANGUAGE}}
{{CONTENTLANG}}
en
en
The wiki's default interface language ($wgLanguageCode) 1.7+
Latest revision to current page
{{REVISIONID}} 350529 Unique revision ID 1.5+
{{REVISIONDAY}} 25 Day edit was made (unpadded number) 1.8+
{{REVISIONDAY2}} 25 Day edit was made (zero-padded number) 1.8+
{{REVISIONMONTH}} 08 Month edit was made (unpadded number) 1.8+
{{REVISIONYEAR}} 2009 Year edit was made 1.8+
{{REVISIONTIMESTAMP}} 20090825222432 Timestamp as of time of edit 1.8+
{{REVISIONUSER}} The username of the user who made the most recent edit to the page 1.15+
{{PAGESIZE:page name}} [expensive] Returns the byte size of the specified page. 1.13+
{{PROTECTIONLEVEL:action}} protection level Outputs the protection level (e.g. 'autoconfirm', 'sysop') for a given action (e.g. 'edit', 'move') on the current page or an empty string if not protected. 1.15+
Affects page content
{{DISPLAYTITLE:title}} Format the current page's title header. The value must be equivalent to the default title: only capitalization changes and replacing spaces with underscores. It can be disabled or enabled by $wgAllowDisplayTitle; disabled by default before 1.10+, enabled by default thereafter. 1.7+
{{DEFAULTSORT:sortkey}}
{{DEFAULTSORTKEY:sortkey}}
{{DEFAULTCATEGORYSORT:sortkey}}
Used for categorizing pages, sets a default category sort key. For example if you put {{DEFAULTSORT:Smith, John}} at the end of John Smith, the page would be sorted under "S" by default in categories. 1.10+

Statistics

Numbers returned by these variables normally contain separators (commas or spaces, depending on the local language), but can return raw numbers with the ":R" flag (for example, {{NUMBEROFPAGES}} → 53,900 and {{NUMBEROFPAGES:R}} → 53900). Use "|R" for magic words that require a parameter like PAGESINCATEGORY (for example {{PAGESINCATEGORY:Help}} and {{PAGESINCATEGORY:Help|R}}).

Variable Output Description Versions
Entire wiki
{{NUMBEROFPAGES}} 53,900 Number of wiki pages. 1.7+
{{NUMBEROFARTICLES}} 6,652 Number of pages in main namespace without Main Page.
{{NUMBEROFFILES}} 16,789 Number of uploaded files. 1.5+
{{NUMBEROFEDITS}} 582,025 Number of page edits. 1.10+
{{NUMBEROFVIEWS}} Number of page views. Usually useless on a wiki using caching. 1.14+
{{NUMBEROFUSERS}} 83 Number of registered users. 1.7+
{{NUMBEROFADMINS}} 1 Number of users in the sysop group. 1.7+
{{NUMBEROFACTIVEUSERS}} Number of active users, based on the criteria used in Special:Statistics. 1.15+
{{PAGESINCATEGORY:categoryname}}
{{PAGESINCAT:Help}}

[expensive] Number of pages in the given category (replace "Help" with the relevant category name). 1.13+
{{NUMBERINGROUP:groupname}}
{{NUMINGROUP:groupname}}

Number of users in a specific group. 1.14+
{{PAGESINNS:index}}
{{PAGESINNAMESPACE:index}}
not enabled Number of pages in the given namespace (replace 2 with the relevant namespace index). E.g. {{PAGESINNAMESPACE:14}} equals the number of categories. Disabled by default, enable with $wgAllowSlowParserFunctions. 1.7+

Page names

Variable Output Description Versions
{{FULLPAGENAME}} User:FrenchFlo Namespace and page title. 1.6+
{{PAGENAME}} FrenchFlo Page title.
{{BASEPAGENAME}} FrenchFlo Page title excluding the current subpage and namespace ("Title/foo" on "Title/foo/bar").

For more complex splitting, use {{#titleparts: }} from ParserFunctions extension.

1.7+
{{SUBPAGENAME}} FrenchFlo The subpage title ("foo" on "Title/foo"). 1.6+
{{SUBJECTPAGENAME}} User:FrenchFlo The namespace and title of the associated content page. 1.7+
{{TALKPAGENAME}} User talk:FrenchFlo The namespace and title of the associated talk page. 1.7+