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: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>FrenchFlo m playing around with some [http://www.mediawiki.org/wiki/Help:Magic_words|Magic words] |
imported>FrenchFlo |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{blurb}}Everything that rises must converge. — ''An unknown monk''{{blurbclose}} |
|||
===Date & Time=== |
|||
{| class="wikitable" border="1" |
|||
|- |
|||
!| Variable |
|||
!| Output |
|||
!| Description |
|||
! Versions |
|||
|- |
|||
| colspan="4"| '''Year''' |
|||
|- |
|||
| <tt><nowiki>{{CURRENTYEAR}}</nowiki></tt> |
|||
| {{CURRENTYEAR}} |
|||
| Year |
|||
| |
|||
|- |
|||
| colspan="4"| '''Month''' |
|||
|- |
|||
| <tt><nowiki>{{CURRENTMONTH}}</nowiki></tt> |
|||
| {{CURRENTMONTH}} |
|||
| Month (zero-padded number) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTMONTHNAME}}</nowiki></tt> |
|||
| {{CURRENTMONTHNAME}} |
|||
| Month (name) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki></tt> |
|||
| {{CURRENTMONTHNAMEGEN}} |
|||
| Month ([[wikipedia:genitive|genitive form]]) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTMONTHABBREV}}</nowiki></tt> |
|||
| {{CURRENTMONTHABBREV}} |
|||
| Month (abbreviation) |
|||
| 1.5+ |
|||
|- |
|||
| colspan="4"| '''Day''' |
|||
|- |
|||
| <tt><nowiki>{{CURRENTDAY}}</nowiki></tt> |
|||
| {{CURRENTDAY}} |
|||
| Day of the month (unpadded number) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTDAY2}}</nowiki></tt> |
|||
| {{CURRENTDAY2}} |
|||
| Day of the month (zero-padded number) |
|||
| 1.6+ |
|||
|- |
|||
| <tt><nowiki>{{CURRENTDOW}}</nowiki></tt> |
|||
| {{CURRENTDOW}} |
|||
| Day of the week (unpadded number) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTDAYNAME}}</nowiki></tt> |
|||
| {{CURRENTDAYNAME}} |
|||
| Day of the week (name) |
|||
| |
|||
|- |
|||
| colspan="4"| '''Time''' |
|||
|- |
|||
| <tt><nowiki>{{CURRENTTIME}}</nowiki></tt> |
|||
| {{CURRENTTIME}} |
|||
| Time (24-hour HH:mm format) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTHOUR}}</nowiki></tt> |
|||
| {{CURRENTHOUR}} |
|||
| Hour (24-hour zero-padded number) |
|||
| |
|||
|- |
|||
| colspan="4"| '''Other''' |
|||
|- |
|||
| <tt><nowiki>{{CURRENTWEEK}}</nowiki></tt> |
|||
| {{CURRENTWEEK}} |
|||
| Week (number) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTTIMESTAMP}}</nowiki></tt> |
|||
| {{CURRENTTIMESTAMP}} |
|||
| 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. |
|||
{| class="wikitable" border="1" |
|||
|- |
|||
!| Variable |
|||
!| Output |
|||
!| Description |
|||
!| Versions |
|||
|- |
|||
| colspan="4"| '''Site''' |
|||
|- |
|||
| <tt><nowiki>{{SITENAME}}</nowiki></tt> |
|||
| {{SITENAME}} |
|||
| The wiki's site name ($wgSitename). |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{SERVER}}</nowiki></tt> |
|||
| {{SERVER}} |
|||
| domain URL ($wgServer) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{SERVERNAME}}</nowiki></tt> |
|||
| {{SERVERNAME}} |
|||
| domain name ($wgServerName) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{DIRMARK}}</nowiki></tt><br /><tt><nowiki>{{DIRECTIONMARK}}</nowiki></tt> |
|||
| {{DIRMARK}}<br />{{DIRECTIONMARK}} |
|||
| Outputs a unicode-directional mark that matches the wiki's default language's direction (<code>&lrm;</code> on left-to-right wikis, <code>&rlm;</code> on right-to-left wikis), useful in text with multi-directional text. |
|||
| 1.7+ |
|||
|- |
|||
| <tt><nowiki>{{SCRIPTPATH}}</nowiki></tt> |
|||
| {{SCRIPTPATH}} |
|||
| relative script path ($wgScriptPath) |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{CURRENTVERSION}}</nowiki></tt> |
|||
| {{CURRENTVERSION}} |
|||
| The wiki's MediaWiki version. |
|||
| 1.7+ |
|||
|- |
|||
| <tt><nowiki>{{CONTENTLANGUAGE}}</nowiki></tt><br /><tt><nowiki>{{CONTENTLANG}}</nowiki></tt> |
|||
| {{CONTENTLANGUAGE}}<br />{{CONTENTLANG}} |
|||
| The wiki's default interface language ($wgLanguageCode) |
|||
| 1.7+ |
|||
|- |
|||
| colspan="4"| '''Latest revision to current page''' |
|||
|- |
|||
| <tt><nowiki>{{REVISIONID}}</nowiki></tt> |
|||
| {{REVISIONID}} |
|||
| Unique revision ID |
|||
| 1.5+ |
|||
|- |
|||
| <tt><nowiki>{{REVISIONDAY}}</nowiki></tt> |
|||
| {{REVISIONDAY}} |
|||
| Day edit was made (unpadded number) |
|||
| 1.8+ |
|||
|- |
|||
| <tt><nowiki>{{REVISIONDAY2}}</nowiki></tt> |
|||
| {{REVISIONDAY2}} |
|||
| Day edit was made (zero-padded number) |
|||
| 1.8+ |
|||
|- |
|||
| <tt><nowiki>{{REVISIONMONTH}}</nowiki></tt> |
|||
| {{REVISIONMONTH}} |
|||
| Month edit was made (unpadded number) |
|||
| 1.8+ |
|||
|- |
|||
| <tt><nowiki>{{REVISIONYEAR}}</nowiki></tt> |
|||
| {{REVISIONYEAR}} |
|||
| Year edit was made |
|||
| 1.8+ |
|||
|- |
|||
| <tt><nowiki>{{REVISIONTIMESTAMP}}</nowiki></tt> |
|||
| {{REVISIONTIMESTAMP}} |
|||
| Timestamp as of time of edit |
|||
| 1.8+ |
|||
|- |
|||
| <tt><nowiki>{{REVISIONUSER}}</nowiki></tt> |
|||
| |
|||
| The username of the user who made the most recent edit to the page |
|||
| 1.15+ |
|||
|-style="background:#FED;" |
|||
| <tt><nowiki>{{PAGESIZE:</nowiki>''page name''<nowiki>}}</nowiki></tt> |
|||
| |
|||
| '''[expensive]''' Returns the byte size of the specified page. |
|||
| 1.13+ |
|||
|- |
|||
| <tt><nowiki>{{PROTECTIONLEVEL:</nowiki>''action''<nowiki>}}</nowiki></tt> |
|||
| 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+ |
|||
|- |
|||
| colspan="4"| '''Affects page content''' |
|||
|- |
|||
| <tt><nowiki>{{DISPLAYTITLE:</nowiki>''title''<nowiki>}}</nowiki></tt> |
|||
| |
|||
| 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+ |
|||
|- |
|||
| <tt><nowiki>{{DEFAULTSORT:</nowiki>''sortkey''<nowiki>}}</nowiki></tt><br /><tt><nowiki>{{DEFAULTSORTKEY:</nowiki>''sortkey''<nowiki>}}</nowiki></tt><br /><tt><nowiki>{{DEFAULTCATEGORYSORT:</nowiki>''sortkey''<nowiki>}}</nowiki></tt> |
|||
| |
|||
| Used for categorizing pages, sets a default ''category sort key''. For example if you put <tt><nowiki>{{DEFAULTSORT:Smith, John}}</nowiki></tt> 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, <code><tt><nowiki>{{NUMBEROFPAGES}}</nowiki></tt></code> → {{NUMBEROFPAGES}} and <code><tt><nowiki>{{NUMBEROFPAGES:R}}</nowiki></tt></code> → {{NUMBEROFPAGES:R}}). Use "|R" for magic words that require a parameter like PAGESINCATEGORY (for example <code><tt><nowiki>{{PAGESINCATEGORY:Help}}</nowiki></tt></code> and <code><tt><nowiki>{{PAGESINCATEGORY:Help|R}}</nowiki></tt></code>). |
|||
{| class="wikitable" border="1" |
|||
|- |
|||
!| Variable |
|||
!| Output |
|||
!| Description |
|||
!| Versions |
|||
|- |
|||
| colspan="4"| '''Entire wiki''' |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFPAGES}}</nowiki></tt> |
|||
| {{NUMBEROFPAGES}} |
|||
| Number of wiki pages. |
|||
| 1.7+ |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFARTICLES}}</nowiki></tt> |
|||
| {{NUMBEROFARTICLES}} |
|||
| Number of pages in main namespace without Main Page. |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFFILES}}</nowiki></tt> |
|||
| {{NUMBEROFFILES}} |
|||
| Number of uploaded files. |
|||
| 1.5+ |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFEDITS}}</nowiki></tt> |
|||
| {{NUMBEROFEDITS}} |
|||
| Number of page edits. |
|||
| 1.10+ |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFVIEWS}}</nowiki></tt> |
|||
| |
|||
| Number of page views. Usually useless on a wiki using ''caching''. |
|||
| 1.14+ |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFUSERS}}</nowiki></tt> |
|||
| {{NUMBEROFUSERS}} |
|||
| Number of registered users. |
|||
| 1.7+ |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFADMINS}}</nowiki></tt> |
|||
| {{NUMBEROFADMINS}} |
|||
| Number of users in the ''sysop'' group. |
|||
| 1.7+ |
|||
|- |
|||
| <tt><nowiki>{{NUMBEROFACTIVEUSERS}}</nowiki></tt> |
|||
| |
|||
| Number of active users, based on the criteria used in [[Special:Statistics]]. |
|||
| 1.15+ |
|||
|-style="background:#FED;" |
|||
| <tt><nowiki>{{PAGESINCATEGORY:</nowiki>''categoryname''<nowiki>}}</nowiki></tt><br /><tt><nowiki>{{PAGESINCAT:Help}}</nowiki></tt> |
|||
| <br /> |
|||
| '''[expensive]''' Number of pages in the given [[Special:Categories|category]] (replace "Help" with the relevant category name). |
|||
| 1.13+ |
|||
|- |
|||
| <tt><nowiki>{{NUMBERINGROUP:</nowiki>''groupname''<nowiki>}}</nowiki></tt><br /><tt><nowiki>{{NUMINGROUP:</nowiki>''groupname''<nowiki>}}</nowiki></tt> |
|||
| <br /> |
|||
| Number of users in a specific group. |
|||
| 1.14+ |
|||
|- |
|||
| <tt><nowiki>{{PAGESINNS:</nowiki>''index''<nowiki>}}</nowiki></tt><br /><tt><nowiki>{{PAGESINNAMESPACE:</nowiki>''index''<nowiki>}}</nowiki></tt> |
|||
| ''not enabled'' |
|||
| Number of pages in the given namespace (replace 2 with the relevant namespace index). E.g. <tt><nowiki>{{PAGESINNAMESPACE:</nowiki>''14''<nowiki>}}</nowiki></tt> equals the number of categories. Disabled by default, enable with $wgAllowSlowParserFunctions. |
|||
| 1.7+ |
|||
|} |
|||
===Page names=== |
|||
{| class="wikitable" border="1" |
|||
|- |
|||
!| Variable |
|||
!| Output |
|||
!| Description |
|||
!| Versions |
|||
|- |
|||
| <tt><nowiki>{{FULLPAGENAME}}</nowiki></tt> |
|||
| {{FULLPAGENAME}} |
|||
| Namespace and page title. |
|||
| 1.6+ |
|||
|- |
|||
| <tt><nowiki>{{PAGENAME}}</nowiki></tt> |
|||
| {{PAGENAME}} |
|||
| Page title. |
|||
| |
|||
|- |
|||
| <tt><nowiki>{{BASEPAGENAME}}</nowiki></tt> |
|||
| {{BASEPAGENAME}} |
|||
| Page title excluding the current subpage and namespace ("Title/foo" on "Title/foo/bar"). |
|||
For more complex splitting, use <nowiki>{{</nowiki>#titleparts: <nowiki>}}</nowiki> from ''ParserFunctions extension''. |
|||
| 1.7+ |
|||
|- |
|||
| <tt><nowiki>{{SUBPAGENAME}}</nowiki></tt> |
|||
| {{SUBPAGENAME}} |
|||
| The subpage title ("foo" on "Title/foo"). |
|||
| 1.6+ |
|||
|- |
|||
| <tt><nowiki>{{SUBJECTPAGENAME}}</nowiki></tt> |
|||
| {{SUBJECTPAGENAME}} |
|||
| The namespace and title of the associated content page. |
|||
| 1.7+ |
|||
|- |
|||
| <tt><nowiki>{{TALKPAGENAME}}</nowiki></tt> |
|||
| {{TALKPAGENAME}} |
|||
| The namespace and title of the associated talk page. |
|||
| 1.7+ |
|||
|} |
|||
Latest revision as of 17:31, 1 October 2009
| Everything that rises must converge. — An unknown monk |