WikiIndex:Magic words: Difference between revisions
Jump to navigation
Jump to search
(Deleting contents as they're outdated. Instead pointing to meta wikia) |
Hoof Hearted (talk | contribs) m (Text replacement - "{{TOCright}}" to "{{TOC right}}") |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{TOC right}} | ||
'''Magic words''' can be used to substitute in certain interesting values into a page display. | ==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}} | |||
[[Category:WikiIndex| | ==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> | |||
{{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]] |
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,024
{{NUMBEROFARTICLES}}
- Current user = 172.70.127.8
{{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 = 6
{{CURRENTDAY}}
- Current day name = Monday
{{CURRENTDAYNAME}}
- Current year = 2025
{{CURRENTYEAR}}
- Current time (UTC) = 07:53
{{CURRENTTIME}}
- Current month name gen = January
{{CURRENTMONTHNAMEGEN}}
- Current week = 2
{{CURRENTWEEK}}
- Current day of week = 1
{{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