Help:Variables

From Festipedia, hosted by the FR Heritage Group
Jump to navigation Jump to search

This is a list of the variables that can be used with this wiki. Some depend on the page in which they are used, some depend on the time, some give statistical information about the wiki and there are a few miscellaneous variables. In the tables below, the left hand column contains the name of the variable in double braces as you would type it on the page, the right hand column shows the value of the variable for this page at this time.

Depending on page

{{PAGENAME}} Variables {{PAGENAMEE}} Variables
{{NAMESPACE}} Help {{NAMESPACEE}} Help
{{FULLPAGENAME}} Help:Variables {{FULLPAGENAMEE}} Help:Variables
{{REVISIONID}} 49551 {{REVISIONTIMESTAMP}} 20150618234824
{{REVISIONDAY}} 18 {{REVISIONDAY2}} 18
{{REVISIONMONTH}} 06 {{REVISIONYEAR}} 2015
{{TALKSPACE}} Help talk {{SUBJECTSPACE}} Help
{{TALKSPACEE}} Help_talk {{SUBJECTSPACEE}} Help
{{TALKPAGENAME}} Help talk:Variables {{SUBJECTPAGENAME}} Help:Variables
{{TALKPAGENAMEE}} Help_talk:Variables {{SUBJECTPAGENAMEE}} Help:Variables
{{ARTICLESPACE}} Help {{ARTICLEPAGENAME}} Help:Variables
{{ARTICLESPACEE}} Help {{ARTICLEPAGENAMEE}} Help:Variables
{{BASEPAGENAME}} Variables {{SUBPAGENAME}} Variables
{{BASEPAGENAMEE}} Variables {{SUBPAGENAMEE}} Variables

For pages in the main namespace, NAMESPACE, NAMESPACEE, ARTICLESPACE and ARTICLESPACEE return an empty string.

PAGENAMEE and NAMESPACEE give the page name and namespace in the form used in URLs, i.e. with spaces replaced by underscores and with special characters encoded appropriately.

Depending on time

{{CURRENTYEAR}} 2021 {{CURRENTMONTH}} 03
{{CURRENTMONTHNAME}} March {{CURRENTMONTHABBREV}} Mar
{{CURRENTMONTHNAMEGEN}} March {{CURRENTWEEK}} 10
{{CURRENTDAY}} 9 {{CURRENTDAY2}} 09
{{CURRENTDAYNAME}} Tuesday {{CURRENTDOW}} 2
{{CURRENTTIME}} 07:01 {{CURRENTHOUR}} 07
{{CURRENTTIMESTAMP}} 20210309070122
{{LOCALYEAR}} 2021 {{LOCALMONTH}} 03
{{LOCALMONTHNAME}} March {{LOCALMONTHABBREV}} Mar
{{LOCALMONTHNAMEGEN}} March {{LOCALWEEK}} 10
{{LOCALDAY}} 9 {{LOCALDAY2}} 09
{{LOCALDAYNAME}} Tuesday {{LOCALDOW}} 2
{{LOCALTIME}} 07:01 {{LOCALHOUR}} 07
{{LOCALTIMESTAMP}} 20210309070122
CURRENTDOW
0=Sunday, 1=Monday, .. 6=Saturday.
CURRENTWEEK
is the number of the current week (1-53) according to ISO 8601 with no leading zero.
CURRENTDAY2
adds a leading zero to days 1...9, this allows you to construct ISO date formats such as 2021-03-09T07:01Z.
CURRENTMONTHNAMEGEN
is always the same as CURRENTMONTHNAME.

Statistical information

{{NUMBEROFADMINS}} 4 {{NUMBEROFADMINS:R}} 4
{{NUMBEROFARTICLES}} 2,731 {{NUMBEROFARTICLES:R}} 2731
{{NUMBEROFFILES}} 3,420 {{NUMBEROFFILES:R}} 3420
{{NUMBEROFPAGES}} 12,383 {{NUMBEROFPAGES:R}} 12383
{{NUMBEROFEDITS}} 93,043 {{NUMBEROFEDITS:R}} 93043
{{NUMBEROFUSERS}} 19,931 {{NUMBEROFUSERS:R}} 19931
{{CURRENTVERSION}} 1.35.1

For the statistics, a page is counted as an article if it:

  • is in the main namespace
  • is not a redirect page
  • includes at least one double open square brackets

Miscellaneous

{{SITENAME}} Festipedia {{SERVER}} https://www.festipedia.org.uk
{{SERVERNAME}} www.festipedia.org.uk {{SCRIPTPATH}} /w
{{DIRMARK}} {{DIRECTIONMARK}}
{{CONTENTLANGUAGE}} en {{CONTENTLANG}} en