WikiIndex:Magic words: Difference between revisions

2,052 bytes added ,  30 September 2022
m
Text replacement - "{{TOCright}}" to "{{TOC right}}"
No edit summary
 
m (Text replacement - "{{TOCright}}" to "{{TOC right}}")
 
(35 intermediate revisions by 10 users not shown)
Line 1: Line 1:
__CURRENTMONTH__
{{TOC right}}
__CURRENTMONTHNAME__
==EN==
__CURRENTDAY__
'''Magic words''' can be used as a shortcut to substitute in certain interesting values into a page display.
__CURRENTDAYNAME__
{{for|a complete documentation|mw:Help:Magic words}}
__CURRENTYEAR__
 
__CURRENTTIME__
==FR==
__NUMBEROFARTICLES__
Les '''mots magiques''' peuvent être utilisés pour substituer certaines valeurs intéressantes à l'intérieur d'un affichage de page.
__CURRENTMONTHNAMEGEN__
{{for|voir aussi en anglais|mw:Help:Magic words}}
__SITENAME__
 
__SERVER__
==Magic word list / liste de mots magiques==
__PAGENAME__
;Examples
__PAGENAMEE__
*Number of articles = {{NUMBEROFARTICLES}}
__NAMESPACE__
<pre>{{NUMBEROFARTICLES}}</pre>
__CURRENTWEEK__
*Current user = {{CURRENTUSER}}
__CURRENTDOW__
<pre>{{CURRENTUSER}}</pre>
;List
<pre>
{{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}}
</pre>
 
==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>
 
==Location magic words / Repérer des mots magiques==
*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.
*Page name E = {{PAGENAMEE}}
 
[[Category:WikiIndex|Magic Words]]
[[Category:Glossary]]