Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Community portal
Contributor's Page
Flipbook
Directories
Catalogs
Theses
Help Support
Getting Started
Create a New Page
Basic Formatting
Create Events and Announcements
Flibook Tutorial
Iskomunidad
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Help:Magic Words
(section)
Help page
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
Refresh
General
What links here
Related changes
Page information
Cargo data
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Variables== Variables return information about the current page, wiki, or date. Their syntax is similar to [[Help:Templates|templates]]. If a template name conflicts with a variable, the variable will be used (so to transclude the template [[{{ns:10}}:PAGENAME]] you would need to write <code><tt><nowiki>{{</nowiki>{{ns:10}}:PAGENAME<nowiki>}}</nowiki></tt></code>). In some cases, adding parameters will force the parser to treat a variable as a template; for example, <code><tt><nowiki>{{CURRENTDAYNAME|x}}</nowiki></tt></code> transcludes [[{{ns:10}}:CURRENTDAYNAME]]. ===Date & time=== The following variables return the current date and time according to the user's timezone , defaulting to the UTC timezone. {| class="wikitable" border="1" |- !Variable ! Output !Description |- |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 |- | <tt><nowiki>{{CURRENTMONTHABBREV}}</nowiki></tt> | {{CURRENTMONTHABBREV}} | Month (abbreviation) |- |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) |- | <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 |} The following variables do the same as the above, but using the site's local timezone instead of user preferences and UTC: * <tt><nowiki>{{LOCALYEAR}}</nowiki></tt> * <tt><nowiki>{{LOCALMONTH}}</nowiki></tt> * <tt><nowiki>{{LOCALMONTHNAME}}</nowiki></tt> * <tt><nowiki>{{LOCALMONTHNAMEGEN}}</nowiki></tt> * <tt><nowiki>{{LOCALMONTHABBREV}}</nowiki></tt> * <tt><nowiki>{{LOCALDAY}}</nowiki></tt> * <tt><nowiki>{{LOCALDAY2}}</nowiki></tt> * <tt><nowiki>{{LOCALDOW}}</nowiki></tt> * <tt><nowiki>{{LOCALDAYNAME}}</nowiki></tt> * <tt><nowiki>{{LOCALTIME}}</nowiki></tt> * <tt><nowiki>{{LOCALHOUR}}</nowiki></tt> * <tt><nowiki>{{LOCALWEEK}}</nowiki></tt> * <tt><nowiki>{{LOCALTIMESTAMP}}</nowiki></tt> ===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 |- |colspan="4"| '''Site''' |- | <tt><nowiki>{{SITENAME}}</nowiki></tt> | {{SITENAME}} | The wiki's site name |- | <tt><nowiki>{{SERVER}}</nowiki></tt> | {{SERVER}} | domain URL |- | <tt><nowiki>{{SERVERNAME}}</nowiki></tt> | {{SERVERNAME}} | domain name |- | <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. |- | <tt><nowiki>{{SCRIPTPATH}}</nowiki></tt> | {{SCRIPTPATH}} | relative script path |- | <tt><nowiki>{{CURRENTVERSION}}</nowiki></tt> | {{CURRENTVERSION}} | The wiki's MediaWiki version. |- | <tt><nowiki>{{CONTENTLANGUAGE}}</nowiki></tt> | {{CONTENTLANGUAGE}} | The wiki's default interface language |- | colspan="4"| '''Latest revision to current page''' |- | <tt><nowiki>{{REVISIONID}}</nowiki></tt> | {{REVISIONID}} | Unique ID |- | <tt><nowiki>{{REVISIONDAY}}</nowiki></tt> | {{REVISIONDAY}} | Day edit was made (unpadded number) |- | <tt><nowiki>{{REVISIONDAY2}}</nowiki></tt> | {{REVISIONDAY2}} | Day edit was made (zero-padded number) |- | <tt><nowiki>{{REVISIONMONTH}}</nowiki></tt> | {{REVISIONMONTH}} | Month edit was made (unpadded number) |- | <tt><nowiki>{{REVISIONYEAR}}</nowiki></tt> | {{REVISIONYEAR}} | Year edit was made |- | <tt><nowiki>{{REVISIONTIMESTAMP}}</nowiki></tt> | {{REVISIONTIMESTAMP}} | Timestamp as of time of edit |- | <tt><nowiki>{{PAGESIZE:</nowiki>''page name''<nowiki>}}</nowiki></tt> | {{PAGESIZE:Help:Magic_words}} | Returns the byte size of the specified page. |- | <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. |- | 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. |- | <tt><nowiki>{{DEFAULTSORT:</nowiki>''sortkey''<nowiki>}}</nowiki></tt> | | Used on a categorized page, sets a default. |} ===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 |- |colspan="4"| '''Entire wiki''' |- | <tt><nowiki>{{NUMBEROFPAGES}}</nowiki></tt> | {{NUMBEROFPAGES}} | Number of wiki pages. |- | <tt><nowiki>{{NUMBEROFARTICLES}}</nowiki></tt> | {{NUMBEROFARTICLES}} | Number of pages in main namespace. |- | <tt><nowiki>{{NUMBEROFFILES}}</nowiki></tt> | {{NUMBEROFFILES}} | Number of uploaded files. |- | <tt><nowiki>{{NUMBEROFEDITS}}</nowiki></tt> | {{NUMBEROFEDITS}} | Number of page edits. |- | <tt><nowiki>{{NUMBEROFUSERS}}</nowiki></tt> | {{NUMBEROFUSERS}} | Number of registered users. |- | <tt><nowiki>{{NUMBEROFADMINS}}</nowiki></tt> | {{NUMBEROFADMINS}} | Number of users in the ''sysop''. |- | <tt><nowiki>{{PAGESINCATEGORY:</nowiki>''categoryname''<nowiki>}}</nowiki></tt><br /><tt><nowiki>{{PAGESINCAT:Help}}</nowiki></tt> | {{PAGESINCATEGORY:Help}}<br />{{PAGESINCAT:Help}} | Number of pages in the given category (replace "Help" with the relevant category name). |- | <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.. |} ====Page names==== {| class="wikitable" border="1" |- !Variable ! Output !Description |- | <tt><nowiki>{{FULLPAGENAME}}</nowiki></tt> | {{FULLPAGENAME}} | Namespace and page title. |- | <tt><nowiki>{{PAGENAME}}</nowiki></tt> | {{PAGENAME}} | Page title. |- | <tt><nowiki>{{BASEPAGENAME}}</nowiki></tt> | {{BASEPAGENAME}} | Page title excluding the current subpage and namespace ("Title" on "Title/foo"). |- | <tt><nowiki>{{SUBPAGENAME}}</nowiki></tt> | {{SUBPAGENAME}} | The subpage title ("foo" on "Title/foo"). |- | <tt><nowiki>{{SUBJECTPAGENAME}}</nowiki></tt> | {{SUBJECTPAGENAME}} | The namespace and title of the associated content page. |- | <tt><nowiki>{{TALKPAGENAME}}</nowiki></tt> | {{TALKPAGENAME}} | The namespace and title of the associated talk page. |} The following are URL-encoded equivalents: * <tt><nowiki>{{FULLPAGENAMEE}}</nowiki></tt> * <tt><nowiki>{{PAGENAMEE}}</nowiki></tt> * <tt><nowiki>{{BASEPAGENAMEE}}</nowiki></tt> * <tt><nowiki>{{SUBPAGENAMEE}}</nowiki></tt> * <tt><nowiki>{{SUBJECTPAGENAMEE}}</nowiki></tt> * <tt><nowiki>{{TALKPAGENAMEE}}</nowiki></tt> ====Namespaces==== {| class="wikitable" border="1" ! Variable ! Output !Description |- | <tt><nowiki>{{NAMESPACE}}</nowiki></tt> | {{NAMESPACE}} | Namespace (name) |- | <tt><nowiki>{{SUBJECTSPACE}}</nowiki></tt><br /><tt><nowiki>{{ARTICLESPACE}}</nowiki></tt> | {{SUBJECTSPACE}}<br />{{ARTICLESPACE}} | Name of the associated content namespace |- | <tt><nowiki>{{TALKSPACE}}</nowiki></tt> | {{TALKSPACE}} | Name of the associated talk namespace |} The following are URL-encoded equivalents: * <tt><nowiki>{{NAMESPACEE}}</nowiki></tt> * <tt><nowiki>{{SUBJECTSPACEE}}</nowiki></tt> * <tt><nowiki>{{TALKSPACEE}}</nowiki></tt>
Summary:
Please note that all contributions to Iskomunidad may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Iskomunidad:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Help:Magic Words
(section)
Add topic