Help:Variables

From OS-Tan Collections Wiki
Jump to navigation Jump to search
Important note:
When you edit this page, you agree to release your contribution into the Public Domain. If you don't want this or can't do this because of license restrictions, please don't edit.
This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages.

MediaWiki knows some defined variables which can be used in texts. They are rendered differently depending on the time, the site and the page. Their syntax is similar to templates. If you want a page to show always the current time, you use codenowiki08:06/nowiki/code. To distinguish variables from templates, most variables are capitalized.

center

bgcolor=#8DA7D6 noinclude/noinclude|Description bgcolor=#8DA7D6 noinclude/noinclude|You type bgcolor=#8DA7D6 noinclude/noinclude|You get
Date Wiki variables
Current month nowiki12/nowiki 12
Current month nowikiDecember/nowiki December
Genitive formbrof current month name nowikiDecember/nowiki December
Abbreviated month name nowikiDec/nowiki Dec
Day of the month nowiki22/nowiki 22
Day of the week nowiki0/nowiki 0
Day of the week nowikiSunday/nowiki Sunday
Week nowiki51/nowiki 51
Year nowiki2024/nowiki 2024
current time nowiki08:06/nowiki 08:06
numbers of articles in this Wiki nowiki481/nowiki 481
numbers of uploaded files nowiki811/nowiki 811
Namespaces
nowikiMedia or Media/nowiki Media
nowikiSpecial or Special/nowiki Special
nowikiTalk or Talk/nowiki Talk
nowikiUser or User/nowiki User
nowikiUser talk or User talk/nowiki User talk
nowikiOS-Tan Collections Wiki or OS-Tan Collections Wiki/nowiki OS-Tan Collections Wiki
nowikiOS-Tan Collections Wiki talk or OS-Tan Collections Wiki talk/nowiki OS-Tan Collections Wiki talk
nowikiFile or File/nowiki File
nowikiFile talk or File talk/nowiki File talk
nowikiMediaWiki or MediaWiki/nowiki MediaWiki
nowikiMediaWiki talk or MediaWiki talk/nowiki MediaWiki talk
nowikiTemplate or Template/nowiki Template
nowikiTemplate talk or Template talk/nowiki Template talk
nowikiHelp or Help/nowiki Help
nowikiHelp talk or Help talk/nowiki Help talk
nowikiCategory or Category/nowiki Category
nowikiCategory talk or Category talk/nowiki Category talk
Server specific
Sitename nowikiOS-Tan Collections Wiki/nowiki OS-Tan Collections Wiki
Servername nowikiwww.ostan-collections.net/nowiki www.ostan-collections.net
Server nowikihttps://www.ostan-collections.net/nowiki https://www.ostan-collections.net
Script path nowiki/wiki/nowiki /wiki
Local part of the URLbr nowiki/wiki/index.php/Pagename/nowiki /wiki/index.php/Pagename
nowiki/wiki/index.php?title=Pagename&/nowikiquery stringnowiki/nowiki /wiki/index.php?title=Pagename&query string
Page related
Pagename nowikiVariables/nowiki Variables
Pagenamebr(URL encoded) nowikiVariables/nowiki Variables
Namespace nowikiHelp/nowiki Help
Revision ID nowiki6095/nowiki 6095

/center

External links

MetaWiki: Help:Variable