Difference between revisions of "WikiIndex:Magic words"

From WikiIndex
Jump to: navigation, search
m (added Category:Glossary using HotCat)
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Magic words''' can be used to substitute in certain interesting values into a page display. See also [[meta-wiki:Help:Magic words|'Magic Words' on Meta]]
+
{{TOCright}}
 +
==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}}
  
==Magic Word List==
+
==FR==
 +
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|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 44: Line 56:
 
</pre>
 
</pre>
  
==Calendar Magic Words==
+
==Calendar magic words / mots magiques calendrier==
 +
* Current month = {{CURRENTMONTH}}
 +
<pre>{{CURRENTMONTH}}</pre>
 +
* Current month name = {{CURRENTMONTHNAME}}
 +
<pre>{{CURRENTMONTHNAME}}</pre>
 +
* Current day = {{CURRENTDAY}}
 +
<pre>{{CURRENTDAY}}</pre>
 +
* Current day name = {{CURRENTDAYNAME}}
 +
<pre>{{CURRENTDAYNAME}}</pre>
 +
* Current year = {{CURRENTYEAR}}
 +
<pre>{{CURRENTYEAR}}</pre>
 +
* Current time (UTC) = {{CURRENTTIME}}
 +
<pre>{{CURRENTTIME}}</pre>
 +
* Current month name gen = {{CURRENTMONTHNAMEGEN}}
 +
<pre>{{CURRENTMONTHNAMEGEN}}</pre>
 +
* Current week = {{CURRENTWEEK}}
 +
<pre>{{CURRENTWEEK}}</pre>
 +
* Current day of week = {{CURRENTDOW}}
 +
<pre>{{CURRENTDOW}}</pre>
  
* Current Month = {{CURRENTMONTH}}
+
==Location magic words / Repérer des mots magiques==
<pre>
+
*Page name* = {{PAGENAME}}
{{CURRENTMONTH}}
+
*Namespace* = {{NAMESPACE}}
</pre>
+
*Site name* = {{SITENAME}}
* Current Month Name = {{CURRENTMONTHNAME}}
+
*Talk space* = {{TALKSPACE}}
<pre>
+
*Subject space* = (only for talk pages, would produce the page it is talk page to)
{{CURRENTMONTHNAME}}
+
*Server = {{SERVER}}
</pre>
+
*Localurl*: ''page name'' = {{localurl:WikiIndex:Magic Words}}
* Current Day = {{CURRENTDAY}}
+
<pre>
+
{{CURRENTDAY}}
+
</pre>
+
* Current Day Name = {{CURRENTDAYNAME}}
+
<pre>
+
{{CURRENTDAYNAME}}
+
</pre>
+
* Current Year = {{CURRENTYEAR}}
+
<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}}
+
* Namespace* = {{NAMESPACE}}
+
* Site Name* = {{SITENAME}}
+
* Talk Space* = {{TALKSPACE}}
+
* Subject Space* = (only for talk pages, would produce the page it is talk page to.)
+
* 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.
 
<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]]

Revision as of 21:58, 30 April 2017

Template:TOCright

EN

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

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

Examples
  • Number of articles = 21,982
{{NUMBEROFARTICLES}}
  • Current user = 172.26.17.103
{{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

  • Current month = 04
{{CURRENTMONTH}}
  • Current month name = April
{{CURRENTMONTHNAME}}
  • Current day = 16
{{CURRENTDAY}}
  • Current day name = Tuesday
{{CURRENTDAYNAME}}
  • Current year = 2024
{{CURRENTYEAR}}
  • Current time (UTC) = 12:30
{{CURRENTTIME}}
  • Current month name gen = April
{{CURRENTMONTHNAMEGEN}}
  • Current week = 16
{{CURRENTWEEK}}
  • Current day of week = 2
{{CURRENTDOW}}

Location magic words / Repérer des mots magiques

  • 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 = /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