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 codenowiki19:45/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 nowiki11/nowiki 11
Current month nowikiNovember/nowiki November
Genitive formbrof current month name nowikiNovember/nowiki November
Abbreviated month name nowikiNov/nowiki Nov
Day of the month nowiki21/nowiki 21
Day of the week nowiki4/nowiki 4
Day of the week nowikiThursday/nowiki Thursday
Week nowiki47/nowiki 47
Year nowiki2024/nowiki 2024
current time nowiki19:45/nowiki 19:45
numbers of articles in this Wiki nowiki480/nowiki 480
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