「ヘルプ:Magic words」の版間の差分
細 (1版) |
(TNTN) |
||
67行目: | 67行目: | ||
| <translate><!--T:17--> | | <translate><!--T:17--> | ||
Adds a link beside the "edit" tab for adding a new section on a non-talk page (see {{mediawiki|<tvar|meta-help-section>m:Special:MyLanguage/Help:Section#Adding a section at the end</>|Adding a section to the end}}).</translate> | Adds a link beside the "edit" tab for adding a new section on a non-talk page (see {{mediawiki|<tvar|meta-help-section>m:Special:MyLanguage/Help:Section#Adding a section at the end</>|Adding a section to the end}}).</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>__NONEWSECTIONLINK__</nowiki></code> | | <code><nowiki>__NONEWSECTIONLINK__</nowiki></code> | ||
| <translate><!--T:18--> | | <translate><!--T:18--> | ||
Removes the link beside the "edit" tab on pages in talk namespaces.</translate> | Removes the link beside the "edit" tab on pages in talk namespaces.</translate> | ||
− | | {{MW version|version=1.15|compact=y|comment=and after|r=47522}} | + | | {{ {{TNTN|MW version}} |version=1.15|compact=y|comment=and after|r=47522}} |
|- | |- | ||
! colspan="3"| <translate><!--T:19--> | ! colspan="3"| <translate><!--T:19--> | ||
80行目: | 80行目: | ||
| <translate><!--T:20--> | | <translate><!--T:20--> | ||
Used on a category page, replaces thumbnails in the category view with normal links.</translate> | Used on a category page, replaces thumbnails in the category view with normal links.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>__HIDDENCAT__</nowiki></code> | | <code><nowiki>__HIDDENCAT__</nowiki></code> | ||
| <translate><!--T:21--> | | <translate><!--T:21--> | ||
Used on a category page, hides the category from the lists of categories in its members and parent categories (there is an option in the [[<tvar|help-preferences>Special:MyLanguage/Help:Preferences</>|user preferences]] to show them).</translate><!-- hiddencategory hiddencat hide category categories --> | Used on a category page, hides the category from the lists of categories in its members and parent categories (there is an option in the [[<tvar|help-preferences>Special:MyLanguage/Help:Preferences</>|user preferences]] to show them).</translate><!-- hiddencategory hiddencat hide category categories --> | ||
− | | {{MW version|version=1.13|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.13|compact=y|comment=and after}} |
|- | |- | ||
! colspan="3" style="background-color: #DDDDDD;"| <translate><!--T:22--> | ! colspan="3" style="background-color: #DDDDDD;"| <translate><!--T:22--> | ||
111行目: | 111行目: | ||
| <translate><!--T:27--> | | <translate><!--T:27--> | ||
Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace. Removed in {{mediawiki|rev:19213|19213}}.</translate> | Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace. Removed in {{mediawiki|rev:19213|19213}}.</translate> | ||
− | | {{MW version|version=1.1|compact=y|version2=1.8}} | + | | {{ {{TNTN|MW version}} |version=1.1|compact=y|version2=1.8}} |
|- | |- | ||
| <code><nowiki>__INDEX__</nowiki></code> | | <code><nowiki>__INDEX__</nowiki></code> | ||
| <translate><!--T:28--> | | <translate><!--T:28--> | ||
Tell search engines to index the page (overrides <tvar|manual-wg-bot-policy>{{mediawiki|Special:MyLanguage/Manual:$wgArticleRobotPolicies|$wgArticleRobotPolicies}}</>, but not robots.txt). It obeys <tvar|manual-wg-exempt-from-bot>[[Special:MyLanguage/Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]]</> variable.</translate> | Tell search engines to index the page (overrides <tvar|manual-wg-bot-policy>{{mediawiki|Special:MyLanguage/Manual:$wgArticleRobotPolicies|$wgArticleRobotPolicies}}</>, but not robots.txt). It obeys <tvar|manual-wg-exempt-from-bot>[[Special:MyLanguage/Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]]</> variable.</translate> | ||
− | | {{MW version|version=1.14|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.14|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>__NOINDEX__</nowiki></code> | | <code><nowiki>__NOINDEX__</nowiki></code> | ||
| <translate><!--T:29--> | | <translate><!--T:29--> | ||
Tell search engines not to index the page (i.e. do not list in search engines' results). It obeys <tvar|manual-wg-exempt-from-bot>[[Special:MyLanguage/Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]]</> variable.</translate> | Tell search engines not to index the page (i.e. do not list in search engines' results). It obeys <tvar|manual-wg-exempt-from-bot>[[Special:MyLanguage/Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]]</> variable.</translate> | ||
− | | {{MW version|version=1.14|compact=y|comment=and after|r=37973}} | + | | {{ {{TNTN|MW version}} |version=1.14|compact=y|comment=and after|r=37973}} |
|- | |- | ||
| <code><nowiki>__STATICREDIRECT__</nowiki></code> | | <code><nowiki>__STATICREDIRECT__</nowiki></code> | ||
| <translate><!--T:30--> | | <translate><!--T:30--> | ||
On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks "{{int:Fix-double-redirects}}".</translate> | On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks "{{int:Fix-double-redirects}}".</translate> | ||
− | | {{MW version|version=1.13|compact=y|comment=and after|r=37928}} | + | | {{ {{TNTN|MW version}} |version=1.13|compact=y|comment=and after|r=37928}} |
|- | |- | ||
| <code><nowiki>__DISAMBIG__</nowiki></code> | | <code><nowiki>__DISAMBIG__</nowiki></code> | ||
201行目: | 201行目: | ||
| <translate><!--T:50--> | | <translate><!--T:50--> | ||
Month (abbreviation)</translate> | Month (abbreviation)</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
! colspan="4" style="background-color: #DDDDDD;"| <translate><!--T:51--> | ! colspan="4" style="background-color: #DDDDDD;"| <translate><!--T:51--> | ||
216行目: | 216行目: | ||
| <translate><!--T:53--> | | <translate><!--T:53--> | ||
Day of the month (zero-padded number)</translate> | Day of the month (zero-padded number)</translate> | ||
− | | {{MW version|version=1.6|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.6|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{CURRENTDOW}}</nowiki></code> | | <code><nowiki>{{CURRENTDOW}}</nowiki></code> | ||
258行目: | 258行目: | ||
| <translate><!--T:61--> | | <translate><!--T:61--> | ||
YYYYMMDDHHmmss timestamp</translate> | YYYYMMDDHHmmss timestamp</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|} | |} | ||
325行目: | 325行目: | ||
| <translate><!--T:74--> | | <translate><!--T:74--> | ||
Outputs a [[w:Unicode|Unicode]] directional mark that matches the wiki's default language's direction (<code>&lrm;</code> on left-to-right wikis, <code>&rlm;</code> on right-to-left wikis), useful in text with multi-directional text. Since {{r|94680|1.19}}, it depends on the [[<tvar|manual-pagelang>Special:MyLanguage/Manual:Language#page-content-lang</>|page content language]].</translate> | Outputs a [[w:Unicode|Unicode]] directional mark that matches the wiki's default language's direction (<code>&lrm;</code> on left-to-right wikis, <code>&rlm;</code> on right-to-left wikis), useful in text with multi-directional text. Since {{r|94680|1.19}}, it depends on the [[<tvar|manual-pagelang>Special:MyLanguage/Manual:Language#page-content-lang</>|page content language]].</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after|r=14442}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after|r=14442}} |
|- | |- | ||
| <code><nowiki>{{SCRIPTPATH}}</nowiki></code> | | <code><nowiki>{{SCRIPTPATH}}</nowiki></code> | ||
337行目: | 337行目: | ||
| <translate><!--T:76--> | | <translate><!--T:76--> | ||
Relative style path (<tvar|manual-wg-stylepath>{{mediawiki|Special:MyLanguage/Manual:$wgStylePath|$wgStylePath}}</>).</translate> | Relative style path (<tvar|manual-wg-stylepath>{{mediawiki|Special:MyLanguage/Manual:$wgStylePath|$wgStylePath}}</>).</translate> | ||
− | | {{MW version|version=1.16|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.16|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{CURRENTVERSION}}</nowiki></code> | | <code><nowiki>{{CURRENTVERSION}}</nowiki></code> | ||
343行目: | 343行目: | ||
| <translate><!--T:77--> | | <translate><!--T:77--> | ||
The wiki's MediaWiki version.</translate> | The wiki's MediaWiki version.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after|r=14199}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after|r=14199}} |
|- | |- | ||
| <code><nowiki>{{CONTENTLANGUAGE}}</nowiki></code> <br /><code><nowiki>{{CONTENTLANG}}</nowiki></code> | | <code><nowiki>{{CONTENTLANGUAGE}}</nowiki></code> <br /><code><nowiki>{{CONTENTLANG}}</nowiki></code> | ||
349行目: | 349行目: | ||
| <translate><!--T:78--> | | <translate><!--T:78--> | ||
The wiki's default interface language (<tvar|manual-wg-langcode>{{mediawiki|Special:MyLanguage/Manual:$wgLanguageCode|$wgLanguageCode}}</>).</translate> | The wiki's default interface language (<tvar|manual-wg-langcode>{{mediawiki|Special:MyLanguage/Manual:$wgLanguageCode|$wgLanguageCode}}</>).</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after|r=14661}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after|r=14661}} |
|- | |- | ||
! colspan="4" style="background-color: #DDDDDD;"| {{Anchor|Page|PAGEID|PROTECTIONLEVEL}}<translate><!--T:79--> | ! colspan="4" style="background-color: #DDDDDD;"| {{Anchor|Page|PAGEID|PROTECTIONLEVEL}}<translate><!--T:79--> | ||
358行目: | 358行目: | ||
| <translate><!--T:80--> | | <translate><!--T:80--> | ||
Returns the page identifier.</translate> | Returns the page identifier.</translate> | ||
− | | {{MW version|version=1.20|compact=y|comment=and after|gerrit change=9858}} | + | | {{ {{TNTN|MW version}} |version=1.20|compact=y|comment=and after|gerrit change=9858}} |
|- | |- | ||
| <code><nowiki>{{</nowiki>PROTECTIONLEVEL:<translate><!--T:261--> | | <code><nowiki>{{</nowiki>PROTECTIONLEVEL:<translate><!--T:261--> | ||
365行目: | 365行目: | ||
| <translate><!--T:81--> | | <translate><!--T:81--> | ||
Outputs the protection level (e.g. "autoconfirmed", "sysop") for a given action (e.g. "edit", "move") on the current page. Returns an empty string if not protected.</translate> | Outputs the protection level (e.g. "autoconfirmed", "sysop") for a given action (e.g. "edit", "move") on the current page. Returns an empty string if not protected.</translate> | ||
− | | {{MW version|version=1.15|compact=y|comment=and after|r=45587}} | + | | {{ {{TNTN|MW version}} |version=1.15|compact=y|comment=and after|r=45587}} |
|- | |- | ||
! colspan="4" style="background-color: #DDDDDD;"| {{Anchor|revision|REVISIONID|REVISIONDAY|REVISIONDAY2|REVISIONMONTH|REVISIONMONTH1|REVISIONYEAR|REVISIONTIMESTAMP|REVISIONUSER}}<translate><!--T:82--> | ! colspan="4" style="background-color: #DDDDDD;"| {{Anchor|revision|REVISIONID|REVISIONDAY|REVISIONDAY2|REVISIONMONTH|REVISIONMONTH1|REVISIONYEAR|REVISIONTIMESTAMP|REVISIONUSER}}<translate><!--T:82--> | ||
374行目: | 374行目: | ||
| <translate><!--T:83--> | | <translate><!--T:83--> | ||
Unique revision ID.</translate> | Unique revision ID.</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{REVISIONDAY}}</nowiki></code> | | <code><nowiki>{{REVISIONDAY}}</nowiki></code> | ||
380行目: | 380行目: | ||
| <translate><!--T:84--> | | <translate><!--T:84--> | ||
Day edit was made (unpadded number).</translate> | Day edit was made (unpadded number).</translate> | ||
− | | {{MW version|version=1.8|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.8|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{REVISIONDAY2}}</nowiki></code> | | <code><nowiki>{{REVISIONDAY2}}</nowiki></code> | ||
386行目: | 386行目: | ||
| <translate><!--T:85--> | | <translate><!--T:85--> | ||
Day edit was made (zero-padded number).</translate> | Day edit was made (zero-padded number).</translate> | ||
− | | {{MW version|version=1.8|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.8|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{REVISIONMONTH}}</nowiki></code> | | <code><nowiki>{{REVISIONMONTH}}</nowiki></code> | ||
392行目: | 392行目: | ||
| <translate><!--T:86--> | | <translate><!--T:86--> | ||
Month edit was made (zero-padded number as of {{mediawiki|rev:66200|1.17+}}, unpadded number in prior versions).</translate> | Month edit was made (zero-padded number as of {{mediawiki|rev:66200|1.17+}}, unpadded number in prior versions).</translate> | ||
− | | {{MW version|version=1.8|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.8|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{REVISIONMONTH1}}</nowiki></code> | | <code><nowiki>{{REVISIONMONTH1}}</nowiki></code> | ||
398行目: | 398行目: | ||
| <translate><!--T:87--> | | <translate><!--T:87--> | ||
Month edit was made (unpadded number).</translate> | Month edit was made (unpadded number).</translate> | ||
− | | {{MW version|version=1.17|compact=y|comment=and after|r=66200}} | + | | {{ {{TNTN|MW version}} |version=1.17|compact=y|comment=and after|r=66200}} |
|- | |- | ||
| <code><nowiki>{{REVISIONYEAR}}</nowiki></code> | | <code><nowiki>{{REVISIONYEAR}}</nowiki></code> | ||
404行目: | 404行目: | ||
| <translate><!--T:88--> | | <translate><!--T:88--> | ||
Year edit was made.</translate> | Year edit was made.</translate> | ||
− | | {{MW version|version=1.8|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.8|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{REVISIONTIMESTAMP}}</nowiki></code> | | <code><nowiki>{{REVISIONTIMESTAMP}}</nowiki></code> | ||
410行目: | 410行目: | ||
| <translate><!--T:89--> | | <translate><!--T:89--> | ||
Timestamp as of time of edit.</translate> | Timestamp as of time of edit.</translate> | ||
− | | {{MW version|version=1.8|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.8|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{REVISIONUSER}}</nowiki></code><br /><code><nowiki>{{URLENCODE:{{REVISIONUSER}}|WIKI}}</nowiki></code> | | <code><nowiki>{{REVISIONUSER}}</nowiki></code><br /><code><nowiki>{{URLENCODE:{{REVISIONUSER}}|WIKI}}</nowiki></code> | ||
416行目: | 416行目: | ||
| <translate><!--T:90--> | | <translate><!--T:90--> | ||
The username of the user who made the most recent edit to the page, or the current user when previewing an edit.</translate> | The username of the user who made the most recent edit to the page, or the current user when previewing an edit.</translate> | ||
− | | {{MW version|version=1.15|compact=y|comment=and after|r=48149}} | + | | {{ {{TNTN|MW version}} |version=1.15|compact=y|comment=and after|r=48149}} |
|- | |- | ||
| <code><nowiki>{{REVISIONSIZE}}</nowiki></code> | | <code><nowiki>{{REVISIONSIZE}}</nowiki></code> | ||
422行目: | 422行目: | ||
| <translate><!--T:91--> | | <translate><!--T:91--> | ||
The size (bytes of wikitext) of the current revision of this page</translate> | The size (bytes of wikitext) of the current revision of this page</translate> | ||
− | | {{MW version|version=1.22|compact=y|comment=and after|gerrit change=82650}} | + | | {{ {{TNTN|MW version}} |version=1.22|compact=y|comment=and after|gerrit change=82650}} |
|- | |- | ||
! colspan="4" style="background-color: #DDDDDD;"| {{Anchor|DISPLAYTITLE|DEAFULTSORT|DEFAULTCATEGORYSORT|DEFAULTSORTKEY}}<translate><!--T:92--> | ! colspan="4" style="background-color: #DDDDDD;"| {{Anchor|DISPLAYTITLE|DEAFULTSORT|DEFAULTCATEGORYSORT|DEFAULTSORTKEY}}<translate><!--T:92--> | ||
432行目: | 432行目: | ||
| <translate><!--T:93--> | | <translate><!--T:93--> | ||
Format the current page's title header. The value must be equivalent to the default title: only capitalization changes and replacing spaces with underscores are allowed (this can be changed with <tvar|manual-wg-restrict-disp-title>{{mediawiki|Special:MyLanguage/Manual:$wgRestrictDisplayTitle|$wgRestrictDisplayTitle}}</>). It can be disabled or enabled by <tvar|manual-wg-allow-disp-title>{{mediawiki|Special:MyLanguage/Manual:$wgAllowDisplayTitle|$wgAllowDisplayTitle}}</>; disabled by default before 1.10+, enabled by default thereafter.</translate> | Format the current page's title header. The value must be equivalent to the default title: only capitalization changes and replacing spaces with underscores are allowed (this can be changed with <tvar|manual-wg-restrict-disp-title>{{mediawiki|Special:MyLanguage/Manual:$wgRestrictDisplayTitle|$wgRestrictDisplayTitle}}</>). It can be disabled or enabled by <tvar|manual-wg-allow-disp-title>{{mediawiki|Special:MyLanguage/Manual:$wgAllowDisplayTitle|$wgAllowDisplayTitle}}</>; disabled by default before 1.10+, enabled by default thereafter.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| {{anchor|Defaultsort}} <code><nowiki>{{DEFAULTSORT:</nowiki><translate><!--T:263--> | | {{anchor|Defaultsort}} <code><nowiki>{{DEFAULTSORT:</nowiki><translate><!--T:263--> | ||
439行目: | 439行目: | ||
| <translate><!--T:94--> | | <translate><!--T:94--> | ||
Used for categorizing pages, sets a default [[<tvar|help-categories>Special:MyLanguage/Help:Categories</>|category sort key]]. For example if you put <tvar|sort><code><nowiki>{{DEFAULTSORT:</>Smith, John<tvar|sort-end>}}</nowiki></code></> at the end of [[John Smith]], the page would be sorted under "S" by default in categories. It can take a second argument of ''noerror'' or ''noreplace'' to suppress error messages when multiple defaultsortkeys are used on one page or to make this <tvar|sort2><tt>defaultsort</tt></> do nothing if a <tvar|sort3><tt>defaultsort</tt></> was already specified earlier in the page.</translate> | Used for categorizing pages, sets a default [[<tvar|help-categories>Special:MyLanguage/Help:Categories</>|category sort key]]. For example if you put <tvar|sort><code><nowiki>{{DEFAULTSORT:</>Smith, John<tvar|sort-end>}}</nowiki></code></> at the end of [[John Smith]], the page would be sorted under "S" by default in categories. It can take a second argument of ''noerror'' or ''noreplace'' to suppress error messages when multiple defaultsortkeys are used on one page or to make this <tvar|sort2><tt>defaultsort</tt></> do nothing if a <tvar|sort3><tt>defaultsort</tt></> was already specified earlier in the page.</translate> | ||
− | | {{MW version|version=1.10|compact=y|comment=and after}}<br/>{{MW version|version=1.19|compact=y|comment=and after|r=96767}} <br /> (<translate><!--T:95--> | + | | {{ {{TNTN|MW version}} |version=1.10|compact=y|comment=and after}}<br/>{{ {{TNTN|MW version}} |version=1.19|compact=y|comment=and after|r=96767}} <br /> (<translate><!--T:95--> |
for noerror and noreplace</translate>) | for noerror and noreplace</translate>) | ||
|} | |} | ||
472行目: | 472行目: | ||
| {{Anchor|NUMBEROFPAGES}}<translate><!--T:104--> | | {{Anchor|NUMBEROFPAGES}}<translate><!--T:104--> | ||
Number of wiki pages.</translate> | Number of wiki pages.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code> | | <code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code> | ||
484行目: | 484行目: | ||
| {{Anchor|NUMBEROFFILES}}<translate><!--T:106--> | | {{Anchor|NUMBEROFFILES}}<translate><!--T:106--> | ||
Number of uploaded files.</translate> | Number of uploaded files.</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{NUMBEROFEDITS}}</nowiki></code> | | <code><nowiki>{{NUMBEROFEDITS}}</nowiki></code> | ||
490行目: | 490行目: | ||
| {{Anchor|NUMBEROFEDITS}}<translate><!--T:107--> | | {{Anchor|NUMBEROFEDITS}}<translate><!--T:107--> | ||
Number of wiki edits.</translate> | Number of wiki edits.</translate> | ||
− | | {{MW version|version=1.10|compact=y|comment=and after|r=21319}} | + | | {{ {{TNTN|MW version}} |version=1.10|compact=y|comment=and after|r=21319}} |
|- | |- | ||
| <code><nowiki>{{NUMBEROFVIEWS}}</nowiki></code> | | <code><nowiki>{{NUMBEROFVIEWS}}</nowiki></code> | ||
496行目: | 496行目: | ||
| {{Anchor|NUMBEROFVIEWS}}<translate><!--T:108--> | | {{Anchor|NUMBEROFVIEWS}}<translate><!--T:108--> | ||
Number of page views. Usually useless on a wiki using [[<tvar|manual-cache>Special:MyLanguage/Manual:Cache</>|caching]].</translate> | Number of page views. Usually useless on a wiki using [[<tvar|manual-cache>Special:MyLanguage/Manual:Cache</>|caching]].</translate> | ||
− | | {{MW version|version=1.14|compact=y|comment=and after|r=42721}} | + | | {{ {{TNTN|MW version}} |version=1.14|compact=y|comment=and after|r=42721}} |
|- | |- | ||
| <code><nowiki>{{NUMBEROFUSERS}}</nowiki></code> | | <code><nowiki>{{NUMBEROFUSERS}}</nowiki></code> | ||
502行目: | 502行目: | ||
| {{Anchor|NUMBEROFUSERS}}<translate><!--T:109--> | | {{Anchor|NUMBEROFUSERS}}<translate><!--T:109--> | ||
Number of registered users.</translate> | Number of registered users.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{NUMBEROFADMINS}}</nowiki></code> | | <code><nowiki>{{NUMBEROFADMINS}}</nowiki></code> | ||
508行目: | 508行目: | ||
| {{Anchor|NUMBEROFADMINS}}<translate><!--T:110--> | | {{Anchor|NUMBEROFADMINS}}<translate><!--T:110--> | ||
Number of users in the ''sysop'' {{mediawiki|<tvar|manual-userrights>Special:MyLanguage/Manual:User rights</>|group}}.</translate> | Number of users in the ''sysop'' {{mediawiki|<tvar|manual-userrights>Special:MyLanguage/Manual:User rights</>|group}}.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{NUMBEROFACTIVEUSERS}}</nowiki></code> | | <code><nowiki>{{NUMBEROFACTIVEUSERS}}</nowiki></code> | ||
514行目: | 514行目: | ||
| {{Anchor|NUMBEROFACTIVEUSERS}}<translate><!--T:111--> | | {{Anchor|NUMBEROFACTIVEUSERS}}<translate><!--T:111--> | ||
Number of active users, based on the criteria used in [[Special:Statistics]].</translate> | Number of active users, based on the criteria used in [[Special:Statistics]].</translate> | ||
− | | {{MW version|version=1.15|compact=y|comment=and after|r=47392}} | + | | {{ {{TNTN|MW version}} |version=1.15|compact=y|comment=and after|r=47392}} |
|- style="background:#FED;" | |- style="background:#FED;" | ||
| {{Anchor|PAGESINCATEGORY|PAGESINCAT}}<code><nowiki>{{PAGESINCATEGORY:</nowiki>''categoryname''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{PAGESINCAT:</nowiki>''categoryname''<nowiki>}}</nowiki></code> | | {{Anchor|PAGESINCATEGORY|PAGESINCAT}}<code><nowiki>{{PAGESINCATEGORY:</nowiki>''categoryname''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{PAGESINCAT:</nowiki>''categoryname''<nowiki>}}</nowiki></code> | ||
520行目: | 520行目: | ||
| <translate><!--T:112--> | | <translate><!--T:112--> | ||
'''[Expensive]''' Number of pages (including subcategories and files) in the given [[<tvar|help-categories>Special:MyLanguage/Help:Categories</>|category]].</translate> | '''[Expensive]''' Number of pages (including subcategories and files) in the given [[<tvar|help-categories>Special:MyLanguage/Help:Categories</>|category]].</translate> | ||
− | | {{MW version|version=1.13|compact=y|comment=and after|r=32932}} | + | | {{ {{TNTN|MW version}} |version=1.13|compact=y|comment=and after|r=32932}} |
|- style="background:#FED;" | |- style="background:#FED;" | ||
| <code><nowiki>{{PAGESINCATEGORY:</nowiki><translate><!--T:264--> | | <code><nowiki>{{PAGESINCATEGORY:</nowiki><translate><!--T:264--> | ||
532行目: | 532行目: | ||
* files | * files | ||
in the given [[<tvar|help-categories>Special:MyLanguage/Help:Categories</>|category]].</translate> | in the given [[<tvar|help-categories>Special:MyLanguage/Help:Categories</>|category]].</translate> | ||
− | | {{MW version|version=1.20|compact=y|comment=and after|gerrit change=12790}} | + | | {{ {{TNTN|MW version}} |version=1.20|compact=y|comment=and after|gerrit change=12790}} |
|- | |- | ||
| <code><nowiki>{{NUMBERINGROUP:</nowiki><translate><!--T:265--> | | <code><nowiki>{{NUMBERINGROUP:</nowiki><translate><!--T:265--> | ||
539行目: | 539行目: | ||
| <translate><!--T:114--> | | <translate><!--T:114--> | ||
Number of users in a specific {{mediawiki|<tvar|manual-userrights>Special:MyLanguage/Manual:User rights</>|group}}.</translate> | Number of users in a specific {{mediawiki|<tvar|manual-userrights>Special:MyLanguage/Manual:User rights</>|group}}.</translate> | ||
− | | {{MW version|version=1.14|compact=y|comment=and after|r=40116}} | + | | {{ {{TNTN|MW version}} |version=1.14|compact=y|comment=and after|r=40116}} |
|- style="background:#FED;" | |- style="background:#FED;" | ||
| <code><nowiki>{{PAGESINNS:</nowiki><translate><!--T:266--> | | <code><nowiki>{{PAGESINNS:</nowiki><translate><!--T:266--> | ||
547行目: | 547行目: | ||
| {{Anchor|PAGESINNS|PAGESINNAMESPACE}}<translate><!--T:116--> | | {{Anchor|PAGESINNS|PAGESINNAMESPACE}}<translate><!--T:116--> | ||
'''[Expensive]''' Number of pages in the given [[<tvar|help-ns>Special:MyLanguage/Help:Namespaces</>|namespace]] (replace ''index'' with the relevant [[<tvar|manual-ns>Special:MyLanguage/Manual:Namespace</>|namespace index]]). For instance, <tvar|pins14><code><nowiki>{{PAGESINNAMESPACE:</nowiki>''14''<nowiki>}}</nowiki></code></> will output the number of category pages. <tvar|pins0><code><nowiki>{{PAGESINNS:0}}</nowiki></code></> differs from <tvar|noa><code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code></> in that the former includes redirects and disambiguation pages. Disabled by default, enable with <tvar|manual-wg-allow-slow-parser-funct>{{mediawiki|Special:MyLanguage/Manual:$wgAllowSlowParserFunctions|$wgAllowSlowParserFunctions}}</>. </translate> | '''[Expensive]''' Number of pages in the given [[<tvar|help-ns>Special:MyLanguage/Help:Namespaces</>|namespace]] (replace ''index'' with the relevant [[<tvar|manual-ns>Special:MyLanguage/Manual:Namespace</>|namespace index]]). For instance, <tvar|pins14><code><nowiki>{{PAGESINNAMESPACE:</nowiki>''14''<nowiki>}}</nowiki></code></> will output the number of category pages. <tvar|pins0><code><nowiki>{{PAGESINNS:0}}</nowiki></code></> differs from <tvar|noa><code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code></> in that the former includes redirects and disambiguation pages. Disabled by default, enable with <tvar|manual-wg-allow-slow-parser-funct>{{mediawiki|Special:MyLanguage/Manual:$wgAllowSlowParserFunctions|$wgAllowSlowParserFunctions}}</>. </translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|} | |} | ||
570行目: | 570行目: | ||
| <translate><!--T:122--> | | <translate><!--T:122--> | ||
Namespace and full page title (including all subpage levels).</translate> | Namespace and full page title (including all subpage levels).</translate> | ||
− | | {{MW version|version=1.6|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.6|compact=y|comment=and after}} |
|- | |- | ||
| {{Anchor|PAGENAME|pagename}}<code><nowiki>{{PAGENAME}}</nowiki></code> | | {{Anchor|PAGENAME|pagename}}<code><nowiki>{{PAGENAME}}</nowiki></code> | ||
585行目: | 585行目: | ||
<!--T:260--> | <!--T:260--> | ||
For more complex splitting, use <tvar|help-ext-pf-titleparts><code><nowiki>{{</nowiki>[[Special:MyLanguage/Help:Extension:ParserFunctions#.23titleparts|#titleparts:]]<nowiki>}}</nowiki></code></> from the [[<tvar|help-ext-pf>Special:MyLanguage/Help:Extension:ParserFunctions</>|ParserFunctions extension]].</translate> | For more complex splitting, use <tvar|help-ext-pf-titleparts><code><nowiki>{{</nowiki>[[Special:MyLanguage/Help:Extension:ParserFunctions#.23titleparts|#titleparts:]]<nowiki>}}</nowiki></code></> from the [[<tvar|help-ext-pf>Special:MyLanguage/Help:Extension:ParserFunctions</>|ParserFunctions extension]].</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| {{Anchor|SUBPAGENAME|subpagename}}<code><nowiki>{{SUBPAGENAME}}</nowiki></code> | | {{Anchor|SUBPAGENAME|subpagename}}<code><nowiki>{{SUBPAGENAME}}</nowiki></code> | ||
591行目: | 591行目: | ||
| <translate><!--T:125--> | | <translate><!--T:125--> | ||
The [[<tvar|help-subpages>Special:MyLanguage/Help:Subpages</>|subpage]] title ("bar" on "Help:Title/foo/bar").</translate> | The [[<tvar|help-subpages>Special:MyLanguage/Help:Subpages</>|subpage]] title ("bar" on "Help:Title/foo/bar").</translate> | ||
− | | {{MW version|version=1.6|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.6|compact=y|comment=and after}} |
|- | |- | ||
| {{Anchor|SUBJECTPAGENAME|ARTICLEPAGENAME|subjectpagename|articlepagename}}<code><nowiki>{{SUBJECTPAGENAME}}</nowiki></code> <br/><code><nowiki>{{ARTICLEPAGENAME}}</nowiki></code> | | {{Anchor|SUBJECTPAGENAME|ARTICLEPAGENAME|subjectpagename|articlepagename}}<code><nowiki>{{SUBJECTPAGENAME}}</nowiki></code> <br/><code><nowiki>{{ARTICLEPAGENAME}}</nowiki></code> | ||
597行目: | 597行目: | ||
| <translate><!--T:126--> | | <translate><!--T:126--> | ||
Full page name of the associated subject (e.g. article or file). Useful on talk pages.</translate> | Full page name of the associated subject (e.g. article or file). Useful on talk pages.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| {{Anchor|TALKPAGENAME|talkpagename}}<code><nowiki>{{TALKPAGENAME}}</nowiki></code> | | {{Anchor|TALKPAGENAME|talkpagename}}<code><nowiki>{{TALKPAGENAME}}</nowiki></code> | ||
603行目: | 603行目: | ||
| <translate><!--T:127--> | | <translate><!--T:127--> | ||
Full page name of the associated talk page.</translate> | Full page name of the associated talk page.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|} | |} | ||
670行目: | 670行目: | ||
| <translate><!--T:142--> | | <translate><!--T:142--> | ||
[[<tvar|manual-ns-id>Special:MyLanguage/Manual:Namespace#Built-in_namespaces</>|ID]] of the page's namespace</translate> | [[<tvar|manual-ns-id>Special:MyLanguage/Manual:Namespace#Built-in_namespaces</>|ID]] of the page's namespace</translate> | ||
− | | {{MW version|version=1.20|compact=y|comment=and after|gerrit change=4056}} | + | | {{ {{TNTN|MW version}} |version=1.20|compact=y|comment=and after|gerrit change=4056}} |
|- | |- | ||
| <code><nowiki>{{SUBJECTSPACE}}</nowiki></code> <br /><code><nowiki>{{ARTICLESPACE}}</nowiki></code> | | <code><nowiki>{{SUBJECTSPACE}}</nowiki></code> <br /><code><nowiki>{{ARTICLESPACE}}</nowiki></code> | ||
676行目: | 676行目: | ||
| <translate><!--T:143--> | | <translate><!--T:143--> | ||
Name of the associated content namespace</translate> | Name of the associated content namespace</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{TALKSPACE}}</nowiki></code> | | <code><nowiki>{{TALKSPACE}}</nowiki></code> | ||
682行目: | 682行目: | ||
| <translate><!--T:144--> | | <translate><!--T:144--> | ||
Name of the associated talk namespace</translate> | Name of the associated talk namespace</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|} | |} | ||
736行目: | 736行目: | ||
| <translate><!--T:156--> | | <translate><!--T:156--> | ||
[Expensive] Returns the page identifier of the specified page*.</translate> | [Expensive] Returns the page identifier of the specified page*.</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{PAGESIZE: </nowiki><translate><!--T:268--> | | <code><nowiki>{{PAGESIZE: </nowiki><translate><!--T:268--> | ||
743行目: | 743行目: | ||
| <translate><!--T:157--> | | <translate><!--T:157--> | ||
[Expensive] Returns the byte size of the specified page. Use "<tvar|r><code><nowiki>|R</nowiki></code></>" to get raw (unformatted) numbers.</translate> | [Expensive] Returns the byte size of the specified page. Use "<tvar|r><code><nowiki>|R</nowiki></code></>" to get raw (unformatted) numbers.</translate> | ||
− | | {{Anchor|PAGESIZE}}{{MW version|version=1.13|compact=y|comment=and after|r=33551}} | + | | {{Anchor|PAGESIZE}}{{ {{TNTN|MW version}} |version=1.13|compact=y|comment=and after|r=33551}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{</nowiki>PROTECTIONLEVEL:<translate><!--T:269--> | | <code><nowiki>{{</nowiki>PROTECTIONLEVEL:<translate><!--T:269--> | ||
751行目: | 751行目: | ||
| <translate><!--T:158--> | | <translate><!--T:158--> | ||
[Expensive] Outputs the protection level (e.g. "autoconfirmed", "sysop") for a given action (e.g. "edit", "move") on the specified page. Returns an empty string if not protected.</translate> | [Expensive] Outputs the protection level (e.g. "autoconfirmed", "sysop") for a given action (e.g. "edit", "move") on the specified page. Returns an empty string if not protected.</translate> | ||
− | | {{MW version|version=1.21|compact=y|comment=and after|r=44683}} | + | | {{ {{TNTN|MW version}} |version=1.21|compact=y|comment=and after|r=44683}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONID: </nowiki><translate><!--T:271--> | | <code><nowiki>{{REVISIONID: </nowiki><translate><!--T:271--> | ||
758行目: | 758行目: | ||
| <translate><!--T:160--> | | <translate><!--T:160--> | ||
[Expensive] Unique revision ID of the last revision on the specified page*.</translate> | [Expensive] Unique revision ID of the last revision on the specified page*.</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONDAY: </nowiki><translate><!--T:272--> | | <code><nowiki>{{REVISIONDAY: </nowiki><translate><!--T:272--> | ||
765行目: | 765行目: | ||
| <translate><!--T:161--> | | <translate><!--T:161--> | ||
[Expensive] Day of edit from the last revision of the specified page* (unpadded number).</translate> | [Expensive] Day of edit from the last revision of the specified page* (unpadded number).</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONDAY2: </nowiki><translate><!--T:273--> | | <code><nowiki>{{REVISIONDAY2: </nowiki><translate><!--T:273--> | ||
772行目: | 772行目: | ||
| <translate><!--T:162--> | | <translate><!--T:162--> | ||
[Expensive] Day of edit from the last revision of the specified page* (zero-padded number).</translate> | [Expensive] Day of edit from the last revision of the specified page* (zero-padded number).</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONMONTH: </nowiki><translate><!--T:274--> | | <code><nowiki>{{REVISIONMONTH: </nowiki><translate><!--T:274--> | ||
779行目: | 779行目: | ||
| <translate><!--T:163--> | | <translate><!--T:163--> | ||
[Expensive] Month of edit from the last revision of the specified page* (zero-padded number as of {{mediawiki|rev:66200|1.17+}}, unpadded number in prior versions).</translate> | [Expensive] Month of edit from the last revision of the specified page* (zero-padded number as of {{mediawiki|rev:66200|1.17+}}, unpadded number in prior versions).</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONMONTH1: </nowiki><translate><!--T:275--> | | <code><nowiki>{{REVISIONMONTH1: </nowiki><translate><!--T:275--> | ||
786行目: | 786行目: | ||
| <translate><!--T:164--> | | <translate><!--T:164--> | ||
[Expensive] Month of edit from the last revision of the specified page* (unpadded number).</translate> | [Expensive] Month of edit from the last revision of the specified page* (unpadded number).</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONYEAR: </nowiki><translate><!--T:276--> | | <code><nowiki>{{REVISIONYEAR: </nowiki><translate><!--T:276--> | ||
793行目: | 793行目: | ||
| <translate><!--T:165--> | | <translate><!--T:165--> | ||
[Expensive] Year of edit from the last revision of the specified page*.</translate> | [Expensive] Year of edit from the last revision of the specified page*.</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONTIMESTAMP: </nowiki><translate><!--T:277--> | | <code><nowiki>{{REVISIONTIMESTAMP: </nowiki><translate><!--T:277--> | ||
800行目: | 800行目: | ||
| <translate><!--T:166--> | | <translate><!--T:166--> | ||
[Expensive] Timestamp as of time of edit on the specified page*.</translate> | [Expensive] Timestamp as of time of edit on the specified page*.</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- style="background: #FED;" | |- style="background: #FED;" | ||
| <code><nowiki>{{REVISIONUSER: </nowiki><translate><!--T:278--> | | <code><nowiki>{{REVISIONUSER: </nowiki><translate><!--T:278--> | ||
807行目: | 807行目: | ||
| <translate><!--T:167--> | | <translate><!--T:167--> | ||
[Expensive] The username from the last revision on the specified page*.</translate> | [Expensive] The username from the last revision on the specified page*.</translate> | ||
− | | {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}} | + | | {{ {{TNTN|MW version}} |version=1.23|compact=y|comment=and after|gerrit change=76534}} |
|- | |- | ||
| colspan="4" | <translate><!--T:168--> | | colspan="4" | <translate><!--T:168--> | ||
846行目: | 846行目: | ||
| <translate><!--T:175--> | | <translate><!--T:175--> | ||
A protocol-relative path to the title. This will also resolve [[<tvar|manual-interwiki>Special:MyLanguage/Manual:Interwiki</>|interwiki]] prefixes. '''Note:''' Unbracketed (plain) protocol-relative links are not automagically linked.</translate> | A protocol-relative path to the title. This will also resolve [[<tvar|manual-interwiki>Special:MyLanguage/Manual:Interwiki</>|interwiki]] prefixes. '''Note:''' Unbracketed (plain) protocol-relative links are not automagically linked.</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
| colspan="4"| {{Anchor|canonicalurl|CANONICALURL}} | | colspan="4"| {{Anchor|canonicalurl|CANONICALURL}} | ||
856行目: | 856行目: | ||
| <translate><!--T:176--> | | <translate><!--T:176--> | ||
The absolute path to the title, using the canonical URL. This will also resolve [[<tvar|manual-interwiki>Special:MyLanguage/Manual:Interwiki</>|interwiki]] prefixes.</translate> | The absolute path to the title, using the canonical URL. This will also resolve [[<tvar|manual-interwiki>Special:MyLanguage/Manual:Interwiki</>|interwiki]] prefixes.</translate> | ||
− | | {{MW version|version=1.18|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.18|compact=y|comment=and after}} |
|- | |- | ||
| colspan="4"| {{Anchor|filepath|FILEPATH}} | | colspan="4"| {{Anchor|filepath|FILEPATH}} | ||
867行目: | 867行目: | ||
| <translate><!--T:177--> | | <translate><!--T:177--> | ||
A protocol-relative path to the full size or thumbnail ({{mediawiki|rev:80813|1.18+}}) of a media file.</translate> | A protocol-relative path to the full size or thumbnail ({{mediawiki|rev:80813|1.18+}}) of a media file.</translate> | ||
− | | {{MW version|version=1.12|compact=y|comment=and after|r=25854}} <br />{{MW version|version=1.18|compact=y|comment=and after|r=80813}} | + | | {{ {{TNTN|MW version}} |version=1.12|compact=y|comment=and after|r=25854}} <br />{{ {{TNTN|MW version}} |version=1.18|compact=y|comment=and after|r=80813}} |
|- | |- | ||
| colspan="4"| {{Anchor|urlencode|URLENCODE}} | | colspan="4"| {{Anchor|urlencode|URLENCODE}} | ||
878行目: | 878行目: | ||
| <translate><!--T:179--> | | <translate><!--T:179--> | ||
The input encoded for use in URLs. Note that there is no urldecode function like there is in the obsolete [[<tvar|ext-stringfunctions>Special:MyLanguage/Extension:StringFunctions</>|Extension:StringFunctions]].</translate> | The input encoded for use in URLs. Note that there is no urldecode function like there is in the obsolete [[<tvar|ext-stringfunctions>Special:MyLanguage/Extension:StringFunctions</>|Extension:StringFunctions]].</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after|r=14273}} (or {{MW version|version=1.17|compact=y|comment=and after|r=64726}} <br />{{MW version|version=1.17|compact=y|comment=and after|r=64726}} <br />{{MW version|version=1.17|compact=y|comment=and after|r=64726}}) | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after|r=14273}} (or {{ {{TNTN|MW version}} |version=1.17|compact=y|comment=and after|r=64726}} <br />{{ {{TNTN|MW version}} |version=1.17|compact=y|comment=and after|r=64726}} <br />{{ {{TNTN|MW version}} |version=1.17|compact=y|comment=and after|r=64726}}) |
|- | |- | ||
| colspan="4"| {{Anchor|anchorencode|ANCHORENCODE}} | | colspan="4"| {{Anchor|anchorencode|ANCHORENCODE}} | ||
887行目: | 887行目: | ||
| <translate><!--T:180--> | | <translate><!--T:180--> | ||
The input encoded for use in URL section anchors (after the “#” symbol in a URL).</translate> | The input encoded for use in URL section anchors (after the “#” symbol in a URL).</translate> | ||
− | | {{MW version|version=1.6|compact=y|comment=and after|r=16279}} | + | | {{ {{TNTN|MW version}} |version=1.6|compact=y|comment=and after|r=16279}} |
|} | |} | ||
1,035行目: | 1,035行目: | ||
</translate> | </translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} <br />{{MW version|version=1.13|compact=y|comment=and after|r=32012}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} <br />{{ {{TNTN|MW version}} |version=1.13|compact=y|comment=and after|r=32012}} |
|- | |- | ||
| | | | ||
1,069行目: | 1,069行目: | ||
Although the ISO 8601 standard requires that dates be in the Gregorian calendar, the ISO parameter in this function will still format dates that fall outside the usual Gregorian range (e.g. dates prior to 1583). Also, the magic word cannot properly convert between negative years (used with ISO 8601) and years BC or years BCE (used in general writing).</translate></small> | Although the ISO 8601 standard requires that dates be in the Gregorian calendar, the ISO parameter in this function will still format dates that fall outside the usual Gregorian range (e.g. dates prior to 1583). Also, the magic word cannot properly convert between negative years (used with ISO 8601) and years BC or years BCE (used in general writing).</translate></small> | ||
− | | {{MW version|version=1.15|compact=y|comment=and after|r=48249}} | + | | {{ {{TNTN|MW version}} |version=1.15|compact=y|comment=and after|r=48249}} |
|- | |- | ||
| <code><nowiki>{{lc:</nowiki>''string''<nowiki>}}</nowiki></code> | | <code><nowiki>{{lc:</nowiki>''string''<nowiki>}}</nowiki></code> | ||
1,075行目: | 1,075行目: | ||
| {{Anchor|lc|Lc|LC}}<translate><!--T:215--> | | {{Anchor|lc|Lc|LC}}<translate><!--T:215--> | ||
The lowercase input.</translate> | The lowercase input.</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{lcfirst:</nowiki>''string''<nowiki>}}</nowiki></code> | | <code><nowiki>{{lcfirst:</nowiki>''string''<nowiki>}}</nowiki></code> | ||
1,081行目: | 1,081行目: | ||
| {{Anchor|lcfirst|Lcfirst|LCFIRST}}<translate><!--T:216--> | | {{Anchor|lcfirst|Lcfirst|LCFIRST}}<translate><!--T:216--> | ||
The input with the <u>very first</u> character lowercase.</translate> | The input with the <u>very first</u> character lowercase.</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{uc:</nowiki>''string''<nowiki>}}</nowiki></code> | | <code><nowiki>{{uc:</nowiki>''string''<nowiki>}}</nowiki></code> | ||
1,087行目: | 1,087行目: | ||
| {{Anchor|uc|Uc|UC}}<translate><!--T:217--> | | {{Anchor|uc|Uc|UC}}<translate><!--T:217--> | ||
The uppercase input.</translate> | The uppercase input.</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{ucfirst:</nowiki>''string''<nowiki>}}</nowiki></code> | | <code><nowiki>{{ucfirst:</nowiki>''string''<nowiki>}}</nowiki></code> | ||
1,093行目: | 1,093行目: | ||
| {{Anchor|ucfirst|Ucfirst|UCFIRST}}<translate><!--T:218--> | | {{Anchor|ucfirst|Ucfirst|UCFIRST}}<translate><!--T:218--> | ||
The input with the <u>very first</u> character uppercase.</translate> | The input with the <u>very first</u> character uppercase.</translate> | ||
− | | {{MW version|version=1.5|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.5|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{padleft:xyz|</nowiki>''stringlength''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padleft:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''char''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padleft:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''string''<nowiki>}}</nowiki></code> | | <code><nowiki>{{padleft:xyz|</nowiki>''stringlength''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padleft:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''char''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padleft:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''string''<nowiki>}}</nowiki></code> | ||
1,106行目: | 1,106行目: | ||
<!--T:222--> | <!--T:222--> | ||
'''{{mediawiki|bugzilla:16852|Bug}} (fixed in {{mediawiki|rev:45734|r45734}}):''' multibyte characters are interpreted as two characters, which can skew width. These also cannot be used as padding characters.</translate> | '''{{mediawiki|bugzilla:16852|Bug}} (fixed in {{mediawiki|rev:45734|r45734}}):''' multibyte characters are interpreted as two characters, which can skew width. These also cannot be used as padding characters.</translate> | ||
− | | {{MW version|version=1.8|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.8|compact=y|comment=and after}} |
|- | |- | ||
| <code><nowiki>{{padright:xyz|</nowiki>''stringlength''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padright:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''char''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padright:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''string''<nowiki>}}</nowiki></code> | | <code><nowiki>{{padright:xyz|</nowiki>''stringlength''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padright:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''char''<nowiki>}}</nowiki></code> <br /><code><nowiki>{{padright:xyz|</nowiki>''strlen''<nowiki>|</nowiki>''string''<nowiki>}}</nowiki></code> | ||
1,116行目: | 1,116行目: | ||
| <translate><!--T:223--> | | <translate><!--T:223--> | ||
Identical to <code>padleft</code>, but adds padding characters to the right side.</translate> | Identical to <code>padleft</code>, but adds padding characters to the right side.</translate> | ||
− | | {{MW version|version=1.8|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.8|compact=y|comment=and after}} |
|} | |} | ||
<translate> | <translate> | ||
1,156行目: | 1,156行目: | ||
| <translate><!--T:234--> | | <translate><!--T:234--> | ||
Outputs the correct inflected form of the given word described by the inflection code after the colon ([[<tvar|meta-help-magicwords>m:Special:MyLanguage/Help:Magic_words#Language-dependent_word_conversions</>|language-dependent]]). Grammar transformations are used for inflected languages like Polish. See also <tvar|manual-wg-grammarform>{{mediawiki|Special:MyLanguage/Manual:$wgGrammarForms|$wgGrammarForms}}</>.</translate> | Outputs the correct inflected form of the given word described by the inflection code after the colon ([[<tvar|meta-help-magicwords>m:Special:MyLanguage/Help:Magic_words#Language-dependent_word_conversions</>|language-dependent]]). Grammar transformations are used for inflected languages like Polish. See also <tvar|manual-wg-grammarform>{{mediawiki|Special:MyLanguage/Manual:$wgGrammarForms|$wgGrammarForms}}</>.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after}} | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after}} |
|- | |- | ||
| {{Anchor|gender|Gender|GENDER}}<code><nowiki>{{gender:username|text for unspecified}}</nowiki></code><br /> | | {{Anchor|gender|Gender|GENDER}}<code><nowiki>{{gender:username|text for unspecified}}</nowiki></code><br /> | ||
1,167行目: | 1,167行目: | ||
A switch for the gender set in [[Special:Preferences]]. <br/> | A switch for the gender set in [[Special:Preferences]]. <br/> | ||
''Note:'' If 3rd parameter is omitted and user hasn't defined his/her gender, then <code>''text if user is male''</code> is returned. A blank first parameter (<tvar|gender><nowiki>{{gender:|</nowiki></>) means the current user. A dot username (.) means the default user gender on this wiki.</translate> | ''Note:'' If 3rd parameter is omitted and user hasn't defined his/her gender, then <code>''text if user is male''</code> is returned. A blank first parameter (<tvar|gender><nowiki>{{gender:|</nowiki></>) means the current user. A dot username (.) means the default user gender on this wiki.</translate> | ||
− | | {{MW version|version=1.15|compact=y|comment=and after|r=46247}} | + | | {{ {{TNTN|MW version}} |version=1.15|compact=y|comment=and after|r=46247}} |
|- | |- | ||
| {{Anchor|int|INT}}<code><nowiki>{{int:</nowiki><translate><!--T:285--> | | {{Anchor|int|INT}}<code><nowiki>{{int:</nowiki><translate><!--T:285--> | ||
1,206行目: | 1,206行目: | ||
| <translate><!--T:245--> | | <translate><!--T:245--> | ||
The full name of the language for the given [[<tvar|manual-langcode>Special:MyLanguage/Manual:Language#lang-code</>|language code]]: native name (language autonym) by default, name translated in target language if a target language code is specified. [[<tvar|ext-cldr>Special:MyLanguage/Extension:CLDR</>|Extension:CLDR]] must be installed for the translation to work.</translate> | The full name of the language for the given [[<tvar|manual-langcode>Special:MyLanguage/Manual:Language#lang-code</>|language code]]: native name (language autonym) by default, name translated in target language if a target language code is specified. [[<tvar|ext-cldr>Special:MyLanguage/Extension:CLDR</>|Extension:CLDR]] must be installed for the translation to work.</translate> | ||
− | | {{MW version|version=1.7|compact=y|comment=and after|r=14490}}<br /> {{MW version|version=1.18|compact=y|comment=and after|r=91875}} <translate><!--T:246--> | + | | {{ {{TNTN|MW version}} |version=1.7|compact=y|comment=and after|r=14490}}<br /> {{ {{TNTN|MW version}} |version=1.18|compact=y|comment=and after|r=91875}} <translate><!--T:246--> |
(translation)</translate> | (translation)</translate> | ||
|- | |- | ||
1,214行目: | 1,214行目: | ||
| <translate><!--T:247--> | | <translate><!--T:247--> | ||
The localized name for the given canonical Special: page.</translate> | The localized name for the given canonical Special: page.</translate> | ||
− | | {{MW version|version=1.9|compact=y|comment=and after|r=17321}} | + | | {{ {{TNTN|MW version}} |version=1.9|compact=y|comment=and after|r=17321}} |
|- | |- | ||
| <code><nowiki>{{#speciale:</nowiki><translate><!--T:289--> | | <code><nowiki>{{#speciale:</nowiki><translate><!--T:289--> | ||
1,221行目: | 1,221行目: | ||
| <translate><!--T:248--> | | <translate><!--T:248--> | ||
The localized and URL-encoded name for the given canonical Special: page.</translate> | The localized and URL-encoded name for the given canonical Special: page.</translate> | ||
− | | {{MW version|version=1.20|compact=y|comment=and after|gerrit change=4340}} | + | | {{ {{TNTN|MW version}} |version=1.20|compact=y|comment=and after|gerrit change=4340}} |
|- | |- | ||
| <code><nowiki>{{#tag:</nowiki><translate><!--T:290--> | | <code><nowiki>{{#tag:</nowiki><translate><!--T:290--> | ||
1,249行目: | 1,249行目: | ||
<small>{{TNT|warning}}<translate><!--T:256--> | <small>{{TNT|warning}}<translate><!--T:256--> | ||
You must write <tvar|code1><code><nowiki>{{#tag:</nowiki></code></>''tagname''<tvar|code2><code><nowiki>||</nowiki></code></>''attribute1''=''value1''<tvar|code3><code><nowiki>|</nowiki></code></>''attribute2''=''value2''<tvar|code4><code><nowiki>}}</nowiki></code></> to pass an empty content. No space is permitted in the area reserved for content between the pipe characters <tvar|code5><code>{{!}}{{!}}</code></> before ''attribute1''.</translate></small> | You must write <tvar|code1><code><nowiki>{{#tag:</nowiki></code></>''tagname''<tvar|code2><code><nowiki>||</nowiki></code></>''attribute1''=''value1''<tvar|code3><code><nowiki>|</nowiki></code></>''attribute2''=''value2''<tvar|code4><code><nowiki>}}</nowiki></code></> to pass an empty content. No space is permitted in the area reserved for content between the pipe characters <tvar|code5><code>{{!}}{{!}}</code></> before ''attribute1''.</translate></small> | ||
− | | {{MW version|version=1.12|compact=y|comment=and after|r=29482}} | + | | {{ {{TNTN|MW version}} |version=1.12|compact=y|comment=and after|r=29482}} |
|} | |} | ||
2014年4月25日 (金) 09:06時点における版
Note: When you edit this page, you agree to release your contribution under the CC0. See Public Domain Help Pages for more info.
|
Magic words are strings of text that MediaWiki associates with a return value or function, such as time, site details, or page names. This page is about usage of standard magic words; for a technical reference, see Manual:Magic words.
There are three general types of magic words:
- Behavior switches: these are uppercase words surrounded by double underscores, e.g. __FOO__.
- Variables: these are uppercase words surrounded by double braces, e.g.
{{FOO}}
. As such, they look a lot like templates.
- Parser functions: these take parameters and are either of the form
{{foo:...}}
or{{#foo:...}}
. See also Help:Extension:ParserFunctions.
Variables and parser functions can use subst:, just like templates. Page-dependent magic words will affect or return data about the current page (by default), even if the word is added through a transcluded template or included system message.
目次
Behavior switches
A behavior switch controls the layout or behavior of the page and can often be used to specify desired omissions and inclusions in the content.
Word | Description | Versions | |
---|---|---|---|
Table of contents | |||
__NOTOC__
|
Hides the table of contents (TOC). | ||
__FORCETOC__
|
Forces the table of contents to appear at its normal position (before the first header). | ||
__TOC__
|
Places a table of contents at the word's current position (overriding __NOTOC__ ). If this is used multiple times, the table of contents will appear at the first word's position.
|
||
Editing | |||
__NOEDITSECTION__
|
Hides the section edit links beside headings. This is especially useful, where a heading is created from within a template: the normal wiki section-edit would in this case edit the template code, which is normally counterintuitive to the user. If a template contains multiple headings, it may be necessary to add "__NOEDITSECTION__ " after each heading.
|
||
__NEWSECTIONLINK__
|
Adds a link beside the "edit" tab for adding a new section on a non-talk page (see Adding a section to the end). |
| |
__NONEWSECTIONLINK__
|
Removes the link beside the "edit" tab on pages in talk namespaces. |
| |
Categories | |||
__NOGALLERY__
|
Used on a category page, replaces thumbnails in the category view with normal links. |
| |
__HIDDENCAT__
|
Used on a category page, hides the category from the lists of categories in its members and parent categories (there is an option in the user preferences to show them). |
| |
Language conversion | |||
__NOCONTENTCONVERT__ __NOCC__
|
On wikis with language variants, don't perform any content language conversion (character and phase) in article display; for example, only show Chinese (zh) instead of variants like zh_cn, zh_tw, zh_sg, or zh_hk. | ||
__NOTITLECONVERT__ __NOTC__
|
On wikis with language variants, don't perform language conversion on the title (all other content is converted). | ||
Other | |||
__START__
|
No effect. | ||
__END__
|
Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace. Removed in 19213. |
| |
__INDEX__
|
Tell search engines to index the page (overrides $wgArticleRobotPolicies, but not robots.txt). It obeys $wgExemptFromUserRobotsControl variable. |
| |
__NOINDEX__
|
Tell search engines not to index the page (i.e. do not list in search engines' results). It obeys $wgExemptFromUserRobotsControl variable. |
| |
__STATICREDIRECT__
|
On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks "このページへのリダイレクトがあればそのリダイレクトを修正". |
| |
__DISAMBIG__
|
Marks a page as a disambiguation page and places it in Special:DisambiguationPages, and places inward links in Special:DisambiguationPageLinks. See Extension:Disambiguator. | requires Disambiguator extension |
Variables
Variables return information about the current page, wiki, or date. Their syntax is similar to templates. Variables marked as "[expensive]" are tracked by the software, and the number that can be included on a page is limited.
If a template name conflicts with a variable, the variable will be used (so to transclude the template テンプレート:PAGENAME you would need to write {{テンプレート:PAGENAME}}
). In some cases, adding parameters will force the parser to invoke a template; for example, {{CURRENTDAYNAME|x}}
transcludes テンプレート:CURRENTDAYNAME, not the variable.
Date and time
The following variables return the current date and time in UTC.
Due to MediaWiki and browser caching, these variables frequently show when the page was cached rather than the current time.
The date and time magic words are formatted in the wiki content language. Since 1.19, they depend on the page content language.
Variable | Output | Description | Versions | |
---|---|---|---|---|
Year | ||||
{{CURRENTYEAR}}
|
2024 | Year | ||
Month | ||||
{{CURRENTMONTH}}
|
11 | Month (zero-padded number) | ||
{{CURRENTMONTHNAME}}
|
11月 | Month (name) | ||
{{CURRENTMONTHNAMEGEN}}
|
11月 | Month (genitive form) | ||
{{CURRENTMONTHABBREV}}
|
11月 | Month (abbreviation) |
| |
Day | ||||
{{CURRENTDAY}}
|
24 | Day of the month (unpadded number) | ||
{{CURRENTDAY2}}
|
24 | Day of the month (zero-padded number) |
| |
{{CURRENTDOW}}
|
0 | Day of the week (unpadded number), 0 (for Sunday) through 6 (for Saturday) | ||
{{CURRENTDAYNAME}}
|
日曜日 | Day of the week (name) | ||
Time | ||||
{{CURRENTTIME}}
|
11:36 | Time (24-hour HH:mm format) | ||
{{CURRENTHOUR}}
|
11 | Hour (24-hour zero-padded number) | ||
Other | ||||
{{CURRENTWEEK}}
|
47 | Week (number) | ||
{{CURRENTTIMESTAMP}}
|
20241124113624 | YYYYMMDDHHmmss timestamp |
|
The following variables do the same as the preceding ones, but using the site's server config or $wgLocaltimezone.
-
{{LOCALYEAR}}
- {{LOCALMONTH}}
- {{LOCALMONTHNAME}}
- {{LOCALMONTHNAMEGEN}}
- {{LOCALMONTHABBREV}}
- {{LOCALDAY}}
- {{LOCALDAY2}}
- {{LOCALDOW}}
- {{LOCALDAYNAME}}
- {{LOCALTIME}}
- {{LOCALHOUR}}
- {{LOCALWEEK}}
- {{LOCALTIMESTAMP}}
For more thorough time formatting, you may want to install Extension:ParserFunctions to use the #time parser function.
Technical metadata
Note: Revision variables return data about the latest edit to the current page, even if viewing an older version of the page.
Variable | Output | Description | Versions | ||
---|---|---|---|---|---|
Site | |||||
{{SITENAME}}
|
ひつじ小屋別館2代目 | The wiki's site name ($wgSitename). | |||
{{SERVER}}
|
http://littleprincess.sakura.ne.jp | Domain URL ($wgServer). | |||
{{SERVERNAME}}
|
littleprincess.sakura.ne.jp | Subdomain and domain name (no longer dependent on $wgServerName as of version 1.17). | |||
{{DIRMARK}} {{DIRECTIONMARK}}
|
|
Outputs a Unicode directional mark that matches the wiki's default language's direction (‎ on left-to-right wikis, ‏ on right-to-left wikis), useful in text with multi-directional text. Since 1.19, it depends on the page content language.
|
| ||
{{SCRIPTPATH}}
|
/mediawiki | Relative script path ($wgScriptPath). | |||
{{STYLEPATH}}
|
/mediawiki/skins | Relative style path ($wgStylePath). |
| ||
{{CURRENTVERSION}}
|
1.27.0 | The wiki's MediaWiki version. |
| ||
{{CONTENTLANGUAGE}} {{CONTENTLANG}}
|
ja ja |
The wiki's default interface language ($wgLanguageCode). |
| ||
Page | |||||
{{PAGEID}}
|
714 | Returns the page identifier. |
| ||
{{PROTECTIONLEVEL:action}}
|
Outputs the protection level (e.g. "autoconfirmed", "sysop") for a given action (e.g. "edit", "move") on the current page. Returns an empty string if not protected. |
| |||
Latest revision to current page | |||||
{{REVISIONID}}
|
3286 | Unique revision ID. |
| ||
{{REVISIONDAY}}
|
25 | Day edit was made (unpadded number). |
| ||
{{REVISIONDAY2}}
|
25 | Day edit was made (zero-padded number). |
| ||
{{REVISIONMONTH}}
|
04 | Month edit was made (zero-padded number as of 1.17+, unpadded number in prior versions). |
| ||
{{REVISIONMONTH1}}
|
4 | Month edit was made (unpadded number). |
| ||
{{REVISIONYEAR}}
|
2014 | Year edit was made. |
| ||
{{REVISIONTIMESTAMP}}
|
20140425090604 | Timestamp as of time of edit. |
| ||
{{REVISIONUSER}} {{URLENCODE:{{REVISIONUSER}}|WIKI}}
|
Shirayuki Shirayuki |
The username of the user who made the most recent edit to the page, or the current user when previewing an edit. |
| ||
{{REVISIONSIZE}}
|
73207 | The size (bytes of wikitext) of the current revision of this page |
| ||
Affects page content | |||||
{{DISPLAYTITLE:title}}
|
Format the current page's title header. The value must be equivalent to the default title: only capitalization changes and replacing spaces with underscores are allowed (this can be changed with $wgRestrictDisplayTitle). It can be disabled or enabled by $wgAllowDisplayTitle; disabled by default before 1.10+, enabled by default thereafter. |
| |||
{{DEFAULTSORT:sortkey}} {{DEFAULTSORTKEY:sortkey}} {{DEFAULTCATEGORYSORT:sortkey}} {{DEFAULTSORT:sortkey|noerror}} {{DEFAULTSORT:sortkey|noreplace}}
|
Used for categorizing pages, sets a default category sort key. For example if you put {{DEFAULTSORT:Smith, John}} at the end of John Smith, the page would be sorted under "S" by default in categories. It can take a second argument of noerror or noreplace to suppress error messages when multiple defaultsortkeys are used on one page or to make this defaultsort do nothing if a defaultsort was already specified earlier in the page.
|
(for noerror and noreplace) |
Statistics
Numbers returned by these variables normally contain separators (commas, dots or spaces, depending on the local language), but can return raw numbers with the ":R" flag (for example, {{NUMBEROFPAGES}}
→ 1,057 and {{NUMBEROFPAGES:R}}
→ 1057).
Use "|R" for magic words that require a parameter like PAGESINCATEGORY (for example {{PAGESINCATEGORY:Help}}
and {{PAGESINCATEGORY:Help|R}}
, or {{PAGESINCATEGORY:Help|subcats}}
and {{PAGESINCATEGORY:Help|subcats|R}}
). Also applicable to {{PAGESIZE:page name}}
hereinbefore.
The number magic words are formatted in the wiki content language. Since 1.19, it depends on the page content language.
Variable | Output | Description | Versions | |
---|---|---|---|---|
{{NUMBEROFPAGES}}
|
1,057 | Number of wiki pages. |
| |
{{NUMBEROFARTICLES}}
|
427 | Number of pages in content namespaces. | ||
{{NUMBEROFFILES}}
|
101 | Number of uploaded files. |
| |
{{NUMBEROFEDITS}}
|
2,806 | Number of wiki edits. |
| |
{{NUMBEROFVIEWS}}
|
2,566,766 | Number of page views. Usually useless on a wiki using caching. |
| |
{{NUMBEROFUSERS}}
|
199 | Number of registered users. |
| |
{{NUMBEROFADMINS}}
|
1 | Number of users in the sysop group. |
| |
{{NUMBEROFACTIVEUSERS}}
|
0 | Number of active users, based on the criteria used in Special:Statistics. |
| |
{{PAGESINCATEGORY:categoryname}} {{PAGESINCAT:categoryname}}
|
48 48 |
[Expensive] Number of pages (including subcategories and files) in the given category. |
| |
{{PAGESINCATEGORY:categoryname|all}} {{PAGESINCATEGORY:categoryname|pages}} {{PAGESINCATEGORY:categoryname|subcats}} {{PAGESINCATEGORY:categoryname|files}}
|
48 48 0 0 |
[Expensive] Respectively, the number of
in the given category. |
| |
{{NUMBERINGROUP:groupname}} {{NUMINGROUP:groupname}}
|
1 1 ({{NUMBERINGROUP:bureaucrat}} used here) |
Number of users in a specific group. |
| |
{{PAGESINNS:index}} {{PAGESINNAMESPACE:index}}
|
Not enabled | [Expensive] Number of pages in the given namespace (replace index with the relevant namespace index). For instance, {{PAGESINNAMESPACE:14}} will output the number of category pages. {{PAGESINNS:0}} differs from {{NUMBEROFARTICLES}} in that the former includes redirects and disambiguation pages. Disabled by default, enable with $wgAllowSlowParserFunctions.
|
|
Page names
Variable | Output | Description | Versions | |
---|---|---|---|---|
{{FULLPAGENAME}}
|
ヘルプ:Magic words | Namespace and full page title (including all subpage levels). |
| |
{{PAGENAME}}
|
Magic words | Full page title (including all subpage levels) without the namespace. | ||
{{BASEPAGENAME}}
|
Magic words | Page title of the page in the immediately superior subpage level without the namespace ("Title/foo" on "Help:Title/foo/bar").
For more complex splitting, use |
| |
{{SUBPAGENAME}}
|
Magic words | The subpage title ("bar" on "Help:Title/foo/bar"). |
| |
{{SUBJECTPAGENAME}} {{ARTICLEPAGENAME}}
|
ヘルプ:Magic words ヘルプ:Magic words |
Full page name of the associated subject (e.g. article or file). Useful on talk pages. |
| |
{{TALKPAGENAME}}
|
ヘルプ・トーク:Magic words | Full page name of the associated talk page. |
|
The {{BASEPAGENAME}}
and {{SUBPAGENAME}}
magic words only work in namespaces that have subpages enabled. See $wgNamespacesWithSubpages for information on enabling subpages.
As of 1.15+, these can all take a parameter, allowing specification of the page to be operated on, instead of just the current page:
-
{{PAGENAME:Template:Main Page}}
→ Main Page
For example, if page name is "L'Aquila", the following code will produce the string "Numeric char encoding":
{{#switch:{{PAGENAME}} | L'Aquila = No translation | L = Not OK | L'Aquila = Entity escaping | L'Aquila = Numeric char encoding }}
URL encoded page names
The following are equivalents encoded for use in MediaWiki URLs (i.e. spaces replaced with underscores and some characters HTML escaped using numeric character encoding):
-
{{FULLPAGENAMEE}}
- {{PAGENAMEE}}
- {{BASEPAGENAMEE}}
- {{SUBPAGENAMEE}}
- {{SUBJECTPAGENAMEE}}
- {{ARTICLEPAGENAMEE}}
- {{TALKPAGENAMEE}}
Note that {{PAGENAME}}
, {{PAGENAMEE}}
and {{urlencode:}}
have distinct implementations. See Manual:PAGENAMEE encoding for details.
Namespaces
Variable | Output | Description | Versions | |
---|---|---|---|---|
{{NAMESPACE}}
|
ヘルプ | Name of the page's namespace | ||
{{NAMESPACENUMBER}}
|
12 | ID of the page's namespace |
| |
{{SUBJECTSPACE}} {{ARTICLESPACE}}
|
ヘルプ ヘルプ |
Name of the associated content namespace |
| |
{{TALKSPACE}}
|
ヘルプ・トーク | Name of the associated talk namespace |
|
The following are equivalents encoded for use in MediaWiki URLs (spaces replaced with underscores and some characters percent-encoded):
-
{{NAMESPACEE}}
-
{{SUBJECTSPACEE}}
-
{{TALKSPACEE}}
As of 1.15+, these can take a full-page-name parameter and will return the requested namespace associated with that page, instead of with the current page:
-
{{NAMESPACE:Template:Main Page}}
→ テンプレート -
{{SUBJECTSPACE:Template:Main Page}}
→ テンプレート -
{{TALKSPACE:Template:Main Page}}
→ テンプレート・トーク
Parameter must not be a namespace name:
-
{{SUBJECTSPACE:Help talk}}
→ (Empty)
Parser functions
Parser functions are very similar to variables, but take one or more parameters (technically, any magic word that takes a parameter is a parser function), and the name is sometimes prefixed with a hash to distinguish them from templates.
This page only describes parser functions that are integral to the MediaWiki software. Other parser functions may be added by MediaWiki extensions such as the ParserFunctions extension. For those see Help:Extension:ParserFunctions.
Technical metadata of another page
Parser function | Output (for page MediaWiki) |
Description | Versions | |
---|---|---|---|---|
{{PAGEID: page name }}
|
890 | [Expensive] Returns the page identifier of the specified page*. |
| |
{{PAGESIZE: page name }} {{PAGESIZE: page name |R}}
|
157 157 |
[Expensive] Returns the byte size of the specified page. Use "<code>|R" to get raw (unformatted) numbers. |
| |
{{PROTECTIONLEVEL:action | page name}}
|
[Expensive] Outputs the protection level (e.g. "autoconfirmed", "sysop") for a given action (e.g. "edit", "move") on the specified page. Returns an empty string if not protected. |
| ||
{{REVISIONID: page name }}
|
4760 | [Expensive] Unique revision ID of the last revision on the specified page*. |
| |
{{REVISIONDAY: page name }}
|
24 | [Expensive] Day of edit from the last revision of the specified page* (unpadded number). |
| |
{{REVISIONDAY2: page name }}
|
24 | [Expensive] Day of edit from the last revision of the specified page* (zero-padded number). |
| |
{{REVISIONMONTH: page name }}
|
07 | [Expensive] Month of edit from the last revision of the specified page* (zero-padded number as of 1.17+, unpadded number in prior versions). |
| |
{{REVISIONMONTH1: page name }}
|
7 | [Expensive] Month of edit from the last revision of the specified page* (unpadded number). |
| |
{{REVISIONYEAR: page name }}
|
2016 | [Expensive] Year of edit from the last revision of the specified page*. |
| |
{{REVISIONTIMESTAMP: page name }}
|
20160724002620 | [Expensive] Timestamp as of time of edit on the specified page*. |
| |
{{REVISIONUSER: page name }}
|
しが | [Expensive] The username from the last revision on the specified page*. |
| |
*When the given param is equal to the current title of the parser, the parser function will yield the previous versions on preview and on substitution, that includes empty strings when used on page creation, but using the values from the current version for page view, including viewing old revisions. In this case it is a non-expensive parser function. |
URL data
Parser function | Input → Output | Description | Versions | ||||
---|---|---|---|---|---|---|---|
{{localurl:page name}} {{localurl:page name|query_string}}
|
{{localurl:MediaWiki}} → /mediawiki/index.php?title=MediaWiki {{localurl:MediaWiki|printable=yes}} → /mediawiki/index.php?title=MediaWiki&printable=yes
|
The relative path to the title. | |||||
{{fullurl:page name}} {{fullurl:page name|query_string}} {{fullurl:interwiki:remote page name|query_string}}
|
{{fullurl:Category:Top level}} → http://littleprincess.sakura.ne.jp/mediawiki/index.php?title=%E3%82%AB%E3%83%86%E3%82%B4%E3%83%AA:Top_level
|
A protocol-relative path to the title. This will also resolve interwiki prefixes. Note: Unbracketed (plain) protocol-relative links are not automagically linked. |
| ||||
{{canonicalurl:page name}} {{canonicalurl:page name|query_string}} {{canonicalurl:interwiki:remote page name|query_string}}
|
{{canonicalurl:Category:Top level}} → http://littleprincess.sakura.ne.jp/mediawiki/index.php?title=%E3%82%AB%E3%83%86%E3%82%B4%E3%83%AA:Top_level
|
The absolute path to the title, using the canonical URL. This will also resolve interwiki prefixes. |
| ||||
{{filepath:file name}} {{filepath:file name|nowiki}} {{filepath:file name|thumbnail_size}}
|
{{filepath:Wiki.png}} → http://littleprincess.sakura.ne.jp/mediawiki/images/b/bc/Wiki.png
|
A protocol-relative path to the full size or thumbnail (1.18+) of a media file. |
| ||||
{{urlencode:string}} (or {{urlencode:string|QUERY}} ) {{urlencode:string|WIKI}} {{urlencode:string|PATH}}
|
{{urlencode:x:y/z á é}} (or {{urlencode:x:y/z á é|QUERY}}) → x%3Ay%2Fz+%C3%A1+%C3%A9 {{urlencode:x:y/z á é|WIKI}} → x:y/z_%C3%A1_%C3%A9 {{urlencode:x:y/z á é|PATH}} → x%3Ay%2Fz%20%C3%A1%20%C3%A9
Note that the default changed from |
The input encoded for use in URLs. Note that there is no urldecode function like there is in the obsolete Extension:StringFunctions. |
| ||||
{{anchorencode:string}}
|
{{anchorencode:x y z á é}} → x_y_z_.C3.A1_.C3.A9
|
The input encoded for use in URL section anchors (after the “#” symbol in a URL). |
|
Namespaces
{{ns:}}
returns the current localized name for the namespace with that index, canonical name, or local alias. Thus {{ns:6}}
, {{ns:File}}
, and {{ns:Image}}
(an old name for the File namespace) all return "ファイル". On a wiki where the content language is French, {{ns:Fichier}}
is also valid, but {{ns:Datei}}
(the localisation of "File" in German) is not.
{{nse:}}
is the equivalent encoded for MediaWiki URLs. It does the same, but it replaces spaces with underscores, making it usable in external links.
Content namespaces | Talk namespaces | |||
---|---|---|---|---|
Usage | Output | Usage | Output | |
{{ns:-2}} / {{ns:Media}}
|
メディア | |||
{{ns:-1}} / {{ns:Special}}
|
特別 | |||
{{ns:0}} / {{ns:}}
|
{{ns:1}} / {{ns:Talk}}
|
トーク | ||
{{ns:2}} / {{ns:User}}
|
利用者 | {{ns:3}} / {{ns:User talk}}
|
利用者・トーク | |
{{ns:4}} / {{ns:Project}}
|
ひつじ小屋別館2代目 Varies between wikis |
{{ns:5}} / {{ns:Project talk}}
|
ひつじ小屋別館2代目・トーク | |
{{ns:6}} / {{ns:File}} or {{ns:Image}}
|
ファイル | {{ns:7}} / {{ns:File talk}} or {{ns:Image talk}}
|
ファイル・トーク | |
{{ns:8}} / {{ns:MediaWiki}}
|
MediaWiki | {{ns:9}} / {{ns:MediaWiki talk}}
|
MediaWiki・トーク | |
{{ns:10}} / {{ns:Template}}
|
テンプレート | {{ns:11}} / {{ns:Template talk}}
|
テンプレート・トーク | |
{{ns:12}} / {{ns:Help}}
|
ヘルプ | {{ns:13}} / {{ns:Help talk}}
|
ヘルプ・トーク | |
{{ns:14}} / {{ns:Category}}
|
カテゴリ | {{ns:15}} / {{ns:Category talk}}
|
カテゴリ・トーク |
Don't confuse localised namespaces with custom namespaces.
Formatting
Usage | Input → Output | Description | Version | ||
---|---|---|---|---|---|
{{formatnum:unformatted number}}
|
Unsupported: Examples of wrong input (unreliable output), with or without |
Takes an unformatted number (arab, no group separators and . as decimal separator) and outputs it in the localized digit script and formatted with decimal and decimal group separators, according to the wiki's default locale. The テンプレート:Warning/core If you don't input numbers in the exact format required, don't expect any reliable output, especially on non-English wikis. テンプレート:Warning/core The If you really need to format (according the wiki's locale) a number in unknown input format, you could try and use |
| ||
|
|
Formats an unlinked date based on user "date format" preference, and adds metadata tagging it as a formatted date. For logged-out users and those who have not set a date format in their preferences, dates can be given a default: mdy , dmy , ymd , ISO 8601 (all case sensitive). If only the month and day are given, only mdy and dmy are valid. If a format is not specified or is invalid, the input format is used as a default. If the supplied date is not recognized as a valid date (specifically, if it contains any metadata such as from a nested use of these or similar templates), it is rendered unchanged, and no (additional) metadata is generated. テンプレート:Warning/coreAlthough the ISO 8601 standard requires that dates be in the Gregorian calendar, the ISO parameter in this function will still format dates that fall outside the usual Gregorian range (e.g. dates prior to 1583). Also, the magic word cannot properly convert between negative years (used with ISO 8601) and years BC or years BCE (used in general writing). |
| ||
{{lc:string}}
|
{{lc:DATA CENTER}} → data center
|
The lowercase input. |
| ||
{{lcfirst:string}}
|
{{lcfirst:DATA center}} → dATA center
|
The input with the very first character lowercase. |
| ||
{{uc:string}}
|
{{uc:text transform}} → TEXT TRANSFORM
|
The uppercase input. |
| ||
{{ucfirst:string}}
|
{{ucfirst:text TRANSFORM}} → Text TRANSFORM
|
The input with the very first character uppercase. |
| ||
{{padleft:xyz|stringlength}} {{padleft:xyz|strlen|char}} {{padleft:xyz|strlen|string}}
|
{{padleft:xyz|5}} → 00xyz {{padleft:xyz|5|_}} → __xyz {{padleft:xyz|5|abc}} → abxyz {{padleft:xyz|2}} → xyz {{padleft:|1|xyz}} → x (first character of the string) |
Inserts a string of padding characters (character chosen in third parameter; default "0") of a specified length (second parameter) next to a chosen base character or variable (first parameter). The final digits or characters in the base replace the final characters in the padding; i.e. {{padleft:44|3|0}} produces 044. The padding string may be truncated if its length does not evenly divide the required number of characters.
Only the first character of the third parameter is used in versions up to 1.12, but by version 1.15 all the characters are used. Bug (fixed in r45734): multibyte characters are interpreted as two characters, which can skew width. These also cannot be used as padding characters. |
| ||
{{padright:xyz|stringlength}} {{padright:xyz|strlen|char}} {{padright:xyz|strlen|string}}
|
{{padright:xyz|5}} → xyz00
|
Identical to padleft , but adds padding characters to the right side.
|
|
See also: Extension:StringFunctions.
Localization
Here are the magic words which are used as main localisation tools. Other magic words will often depend on the wiki's locale and configuration or on the chosen language: see in particular #Date and time, #Formatting, #Miscellaneous. More magic words are added by the Translate extension.
The usage of these magic words can be very complex, and the documentation is currently incomplete; there's some more info on PLURAL, GRAMMAR, GENDER.
Usage | Input → Output | Description | Version | |
---|---|---|---|---|
{{plural:2|is|are}}
|
{{plural:0|is|are}} → are {{plural:1*1|is|are}} → is {{plural:21 mod 10|is|are}} → are {{plural:{{#expr:21 mod 10}}|is|are}} → is {{plural:1|is|are}} → is {{plural:2|is|are}} → are (For Russian) {{PLURAL:5|1=Категория|Категории}} → Категории
|
Outputs the singular form (second parameter) if the first parameter is an expression equalling one; the plural form (third parameter) otherwise. Its functioning is language-dependent. Some language codes (ab, av, ba, bxr, ce, crh_cyrl, cv, inh, koi, krc, kv, lbe, lez, mhr, mrj, myv, ru, tt_cyrl, tyv, udm, xal) used 3 plural forms (updated 01.2014):
|
||
{{grammar:N|noun}}
|
Outputs the correct inflected form of the given word described by the inflection code after the colon (language-dependent). Grammar transformations are used for inflected languages like Polish. See also $wgGrammarForms. |
| ||
{{gender:username|text for unspecified}}
|
(Depends on the named user's gender) | A switch for the gender set in Special:Preferences. Note: If 3rd parameter is omitted and user hasn't defined his/her gender, then |
| |
{{int:message name}}
|
<code>{{int:edit}} → 編集 (Depends on user language; try: fr • ja) |
Internationalizes (translates) the given interface (MediaWiki namespace) message into the user language. For msgnw and other transclusion magic words, see Help:Magic words#Template modifiers.
Note that this can damage / confuse cache consistency in MediaWiki 1.17 and earlier, see bug 14404. |
||
{{int:editsectionhint|MediaWiki}}
|
<code>{{int:editsectionhint|MediaWiki}} → 節を編集: MediaWiki | You may also use parameters with translations. Parameters are designated in messages with: $1, $2, $3, etc. For example, here is the message for editsectionhint: Edit section: $1 In this example, MediaWiki replaces $1. |
Miscellaneous
Usage | Output | Description | Version | ||
---|---|---|---|---|---|
{{#language:language code}} {{#language:ar}} {{#language:language code|target language code}} {{#language:ar|en}}
|
language code العربية language code Arabic |
The full name of the language for the given language code: native name (language autonym) by default, name translated in target language if a target language code is specified. Extension:CLDR must be installed for the translation to work. |
| ||
{{#special:special page name}}
|
特別:Special page name 特別:ログイン |
The localized name for the given canonical Special: page. |
| ||
{{#speciale:special page name}}
|
%E7%89%B9%E5%88%A5:Special_page_name %E7%89%B9%E5%88%A5:%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3 |
The localized and URL-encoded name for the given canonical Special: page. |
| ||
{{#tag:tagname
|
(Depends on parser tag) | Alias for XML-style MediaWiki parser tags or extension tags. It allows execution of wiki code and parser functions within tags before the tag is processed. It also prevents parsing of tags in conditional paths that aren't executed (like in #if statements). Content between tags is passed as the first parameter, and any attributes for the tags can be passed as subsequent parameters. This example:
…can be rewritten like this:
Example for the Cite extension's
テンプレート:Warning/coreYou must write |
|