WikiIndex:Magic words: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{TOCright}}" to "{{TOC right}}")
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''Magic words''' can be used to substitute in certain interesting values into a page display. See also [http://meta.wikimedia.org/wiki/Help:Magic_words 'Magic Words' on Meta]
{{TOC right}}
==EN==
'''Magic words''' can be used as a shortcut to substitute in certain interesting values into a page display.
{{for|a complete documentation|mw:Help:Magic words}}


''see also [[Mots Magiques]]''
==FR==
 
Les '''mots magiques''' peuvent être utilisés pour substituer certaines valeurs intéressantes à l'intérieur d'un affichage de page.
==Magic Word List==
{{for|voir aussi en anglais|mw:Help:Magic words}}


==Magic word list / liste de mots magiques==
;Examples
*Number of articles = {{NUMBEROFARTICLES}}
<pre>{{NUMBEROFARTICLES}}</pre>
*Current user = {{CURRENTUSER}}
<pre>{{CURRENTUSER}}</pre>
;List
<pre>
<pre>
{{REDIRECT}}
{{REDIRECT}}
__NOTOC__
__NOTOC__
{{START}
{{START}}
{{NUMBEROFARTICLES}}
{{NUMBEROFARTICLES}}
{{CURRENTMONTHNAMEGEN}}
{{CURRENTMONTHNAMEGEN}}
Line 33: Line 43:
{{PAGENAMEE}}
{{PAGENAMEE}}
{{NAMESPACE}}
{{NAMESPACE}}
{{NAMESPACEE}}
{{TALKSPACE}}
{{TALKSPACEE}}
{{SUBJECTSPACE}}
{{SUBJECTSPACEE}}
__TOC__
__TOC__
{{GRAMMAR}}
{{GRAMMAR}}
Line 41: Line 56:
</pre>
</pre>


==Calendar Magic Words==
==Calendar magic words / mots magiques calendrier==
 
* Current month = {{CURRENTMONTH}}
* Current Month = {{CURRENTMONTH}}
<pre>{{CURRENTMONTH}}</pre>
<pre>
* Current month name = {{CURRENTMONTHNAME}}
{{CURRENTMONTH}}
<pre>{{CURRENTMONTHNAME}}</pre>
</pre>
* Current day = {{CURRENTDAY}}
* Current Month Name = {{CURRENTMONTHNAME}}
<pre>{{CURRENTDAY}}</pre>
<pre>
* Current day name = {{CURRENTDAYNAME}}
{{CURRENTMONTHNAME}}
<pre>{{CURRENTDAYNAME}}</pre>
</pre>
* Current year = {{CURRENTYEAR}}
* Current Day = {{CURRENTDAY}}
<pre>{{CURRENTYEAR}}</pre>
<pre>
* Current time (UTC) = {{CURRENTTIME}}
{{CURRENTDAY}}
<pre>{{CURRENTTIME}}</pre>
</pre>
* Current month name gen = {{CURRENTMONTHNAMEGEN}}
* Current Day Name = {{CURRENTDAYNAME}}
<pre>{{CURRENTMONTHNAMEGEN}}</pre>
<pre>
* Current week = {{CURRENTWEEK}}
{{CURRENTDAYNAME}}
<pre>{{CURRENTWEEK}}</pre>
</pre>
* Current day of week = {{CURRENTDOW}}
* Current Year = {{CURRENTYEAR}}
<pre>{{CURRENTDOW}}</pre>
<pre>
{{CURRENTYEAR}}
</pre>
* Current Time = {{CURRENTTIME}}
<pre>
{{CURRENTTIME}}
</pre>
* Number of Articles = {{NUMBEROFARTICLES}}
<pre>
{{NUMBEROFARTICLES}}
</pre>
* Current Month Name Gen = {{CURRENTMONTHNAMEGEN}}
<pre>
{{CURRENTMONTHNAMEGEN}}
</pre>
* Current Week = {{CURRENTWEEK}}
<pre>
{{CURRENTWEEK}}
</pre>
* Current Day of Week = {{CURRENTDOW}}
<pre>
{{CURRENTDOW}}
</pre>
 
==Location Magic Words==


* Page Name = {{PAGENAME}}
==Location magic words / Repérer des mots magiques==
* Page Name E = {{PAGENAMEE}}
*Page name* = {{PAGENAME}}
* Namespace = {{NAMESPACE}}
*Namespace* = {{NAMESPACE}}
* Site Name = {{SITENAME}}
*Site name* = {{SITENAME}}
* Server = {{SERVER}}
*Talk space* = {{TALKSPACE}}
* Localurl: ''page name'' = {{localurl:WikiIndex:Magic Words}}
*Subject space* = (only for talk pages, would produce the page it is talk page to)
* Localurle: ''page name'' = {{localurle:WikiIndex:Magic Words}}
*Server = {{SERVER}}
*Localurl*: ''page name'' = {{localurl:WikiIndex:Magic Words}}
<nowiki>*</nowiki> The letter E can be added in the end of these magic words to render spaces as underscores.
*Page name E = {{PAGENAMEE}}


[[category:WikiIndex]]
[[Category:WikiIndex|Magic Words]]
[[fr:WikiIndex:Mots_Magiques]]
[[Category:Glossary]]

Latest revision as of 01:22, 30 September 2022

EN[edit]

Magic words can be used as a shortcut to substitute in certain interesting values into a page display.

For a complete documentation, see: mw:Help:Magic words.

FR[edit]

Les mots magiques peuvent être utilisés pour substituer certaines valeurs intéressantes à l'intérieur d'un affichage de page.

For voir aussi en anglais, see: mw:Help:Magic words.

Magic word list / liste de mots magiques[edit]

Examples
  • Number of articles = 22,023
{{NUMBEROFARTICLES}}
  • Current user = 172.68.168.197
{{CURRENTUSER}}
List
{{REDIRECT}}
__NOTOC__
{{START}}
{{NUMBEROFARTICLES}}
{{CURRENTMONTHNAMEGEN}}
{{MSG}}
{{SUBST}}
{{MSGNW}}
{{NOEDITSECTION}}
{{END}}
{{IMG_THUMBNAIL}}
{{IMG_RIGHT}}
{{IMG_LEFT}}
{{IMG_NONE}}
{{IMG_WIDTH}}
{{IMG_CENTER}}
{{INT}}
__FORCETOC__
{{SITENAME}}
{{NS}}
{{LOCALURL}}
{{LOCALURLE}}
{{SERVER}}
{{IMG_FRAMED}}
{{PAGENAME}}
{{PAGENAMEE}}
{{NAMESPACE}}
{{NAMESPACEE}}
{{TALKSPACE}}
{{TALKSPACEE}}
{{SUBJECTSPACE}}
{{SUBJECTSPACEE}}
__TOC__
{{GRAMMAR}}
{{NOTITLECONVERT}}
{{NOCONTENTCONVERT}}
{{CURRENTWEEK}}
{{CURRENTDOW}}

Calendar magic words / mots magiques calendrier[edit]

  • Current month = 01
{{CURRENTMONTH}}
  • Current month name = January
{{CURRENTMONTHNAME}}
  • Current day = 1
{{CURRENTDAY}}
  • Current day name = Wednesday
{{CURRENTDAYNAME}}
  • Current year = 2025
{{CURRENTYEAR}}
  • Current time (UTC) = 10:46
{{CURRENTTIME}}
  • Current month name gen = January
{{CURRENTMONTHNAMEGEN}}
  • Current week = 1
{{CURRENTWEEK}}
  • Current day of week = 3
{{CURRENTDOW}}

Location magic words / Repérer des mots magiques[edit]

  • Page name* = Magic words
  • Namespace* = WikiIndex
  • Site name* = WikiIndex
  • Talk space* = WikiIndex talk
  • Subject space* = (only for talk pages, would produce the page it is talk page to)
  • Server = https://wikiindex.org
  • Localurl*: page name = /w/WikiIndex:Magic_Words

* The letter E can be added in the end of these magic words to render spaces as underscores.

  • Page name E = Magic_words