Changes

Jump to navigation Jump to search
120 bytes removed ,  19:19, 21 December 2019
m
Text replacement - "<tvar|1>" to ""
Line 88: Line 88:  
|-
 
|-
 
| colspan="2" | <code><nowiki>__START__</nowiki></code>
 
| colspan="2" | <code><nowiki>__START__</nowiki></code>
|  No effect.  Was used to point where database message starts after comment that should not be transcluded. <small> Removed in <tvar|1>{{rev|1695}} and completely removed in {{rev|24784}}</small>
+
|  No effect.  Was used to point where database message starts after comment that should not be transcluded. <small> Removed in {{rev|1695}} and completely removed in {{rev|24784}}</small>
 
| {{MW version|version=1.10|compact=y|comment=and before|r=1610}}
 
| {{MW version|version=1.10|compact=y|comment=and before|r=1610}}
 
|-
 
|-
 
| colspan="2" | <code><nowiki>__END__</nowiki></code>
 
| colspan="2" | <code><nowiki>__END__</nowiki></code>
|  Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace.  Removed in <tvar|1>[[rev:19213|19213]].
+
|  Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace.  Removed in [[rev:19213|19213]].
 
| {{MW version|version=1.1|compact=y|version2=1.8}}
 
| {{MW version|version=1.1|compact=y|version2=1.8}}
 
|-
 
|-
Line 324: Line 324:  
| <code><nowiki>{{PAGEID}}</nowiki></code>
 
| <code><nowiki>{{PAGEID}}</nowiki></code>
 
| {{PAGEID}}
 
| {{PAGEID}}
|  Returns the [[<tvar|1>Special:MyLanguage/Manual:Page table#page_id|page identifier]].
+
|  Returns the [[Special:MyLanguage/Manual:Page table#page_id|page identifier]].
 
| {{MW version|version=1.20|compact=y|comment=and after|gerrit change=9858}}
 
| {{MW version|version=1.20|compact=y|comment=and after|gerrit change=9858}}
 
|-
 
|-
Line 353: Line 353:  
| <code><nowiki>{{REVISIONID}}</nowiki></code>
 
| <code><nowiki>{{REVISIONID}}</nowiki></code>
 
| {{REVISIONID}}
 
| {{REVISIONID}}
|  Unique revision ID.  It is empty in preview, thus one can show an error message only in preview.  May be disabled in [[<tvar|1>Special:MyLanguage/Manual:$wgMiserMode|miser mode]].
+
|  Unique revision ID.  It is empty in preview, thus one can show an error message only in preview.  May be disabled in [[Special:MyLanguage/Manual:$wgMiserMode|miser mode]].
 
| {{MW version|version=1.5|compact=y|comment=and after}}
 
| {{MW version|version=1.5|compact=y|comment=and after}}
 
|-
 
|-
Line 368: Line 368:  
| <code><nowiki>{{REVISIONMONTH}}</nowiki></code>
 
| <code><nowiki>{{REVISIONMONTH}}</nowiki></code>
 
| {{REVISIONMONTH}}
 
| {{REVISIONMONTH}}
|  Month edit was made (zero-padded number as of <tvar|1>[[rev:66200|1.17+]], unpadded number in prior versions).
+
|  Month edit was made (zero-padded number as of [[rev:66200|1.17+]], unpadded number in prior versions).
 
| {{MW version|version=1.8|compact=y|comment=and after}}
 
| {{MW version|version=1.8|compact=y|comment=and after}}
 
|-
 
|-
Line 444: Line 444:  
| <code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code>
 
| <code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code>
 
| {{NUMBEROFARTICLES}}
 
| {{NUMBEROFARTICLES}}
| {{Anchor|NUMBEROFARTICLES}} Number of pages in {{<tvar|1>mediawiki|Special:MyLanguage/Manual:Using custom namespaces#content-ns|content namespaces}} that qualify as articles.  See <tvar|1>{{ll|Manual:$wgArticleCountMethod}} for details.
+
| {{Anchor|NUMBEROFARTICLES}} Number of pages in {{mediawiki|Special:MyLanguage/Manual:Using custom namespaces#content-ns|content namespaces}} that qualify as articles.  See {{ll|Manual:$wgArticleCountMethod}} for details.
 
|
 
|
 
|-
 
|-
Line 563: Line 563:       −
As of <tvar|1>[[rev:46662|1.15+]], these can all take a parameter, allowing specification of the page to be operated on, instead of just the current page:
+
As of [[rev:46662|1.15+]], these can all take a parameter, allowing specification of the page to be operated on, instead of just the current page:
    
* <code><nowiki>{{PAGENAME:Template:Main Page}}</nowiki></code> &rarr; '''{{PAGENAME:Template:Main Page}}'''
 
* <code><nowiki>{{PAGENAME:Template:Main Page}}</nowiki></code> &rarr; '''{{PAGENAME:Template:Main Page}}'''
Line 572: Line 572:  
}}
 
}}
   −
{{Warning|1= Page titles containing certain characters, such as apostrophes <code>'</code> or asterisks <code>*</code>, may produce unexpected results when handled with these magic words, e.g. <tvar|pic><code><nowiki>{{PAGESINCATEGORY:{{PAGENAME}}}}</nowiki></code>. See bugs <tvar|1>[[phabricator:T16779|T16779]], [[phabricator:T18474|T18474]], [[phabricator:T37628|T37628]], [[phabricator:T37746|T37746]]. One simple way to fix this is wrapping the pagename in <tvar|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]].
+
{{Warning|1= Page titles containing certain characters, such as apostrophes <code>'</code> or asterisks <code>*</code>, may produce unexpected results when handled with these magic words, e.g. <tvar|pic><code><nowiki>{{PAGESINCATEGORY:{{PAGENAME}}}}</nowiki></code>. See bugs [[phabricator:T16779|T16779]], [[phabricator:T18474|T18474]], [[phabricator:T37628|T37628]], [[phabricator:T37746|T37746]]. One simple way to fix this is wrapping the pagename in <tvar|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]].
 
}}
 
}}
   Line 641: Line 641:       −
As of <tvar|1>[[rev:46630|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:
+
As of [[rev:46630|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:
      Line 733: Line 733:  
| <code><nowiki>{{REVISIONMONTH: </nowiki> ''page name''<nowiki> }}</nowiki></code>
 
| <code><nowiki>{{REVISIONMONTH: </nowiki> ''page name''<nowiki> }}</nowiki></code>
 
| {{REVISIONMONTH: MediaWiki }}
 
| {{REVISIONMONTH: MediaWiki }}
| '''[ Expensive]'''  Month of edit from the last revision of the specified page* (zero-padded number as of <tvar|1>[[rev:66200|1.17+]], unpadded number in prior versions).
+
| '''[ Expensive]'''  Month of edit from the last revision of the specified page* (zero-padded number as of [[rev:66200|1.17+]], unpadded number in prior versions).
 
| {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}}{{Anchor|REVISIONMONTH1:}}
 
| {{MW version|version=1.23|compact=y|comment=and after|gerrit change=76534}}{{Anchor|REVISIONMONTH1:}}
 
|- style="background: #FED;"
 
|- style="background: #FED;"
Line 802: Line 802:  
<code><nowiki>{{filepath:Example.svg|300}}</nowiki></code><br />→ {{filepath:Example.svg|300}} <br /><br />
 
<code><nowiki>{{filepath:Example.svg|300}}</nowiki></code><br />→ {{filepath:Example.svg|300}} <br /><br />
 
The parameter <code>nowiki</code> usually removes the link around the filepath (which can't be seen in this example).
 
The parameter <code>nowiki</code> usually removes the link around the filepath (which can't be seen in this example).
|  A protocol-relative path to the full size or thumbnail (<tvar|1>[[rev:80813|1.18+]]) of a media file.
+
|  A protocol-relative path to the full size or thumbnail ([[rev:80813|1.18+]]) of a media file.
 
| {{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}}
 
| {{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}}
 
|-
 
|-
Line 1,007: Line 1,007:       −
'''[[<tvar|1>bugzilla:16852|Bug]] (fixed in [[rev:45734|r45734]]):''' multibyte characters are interpreted as two characters, which can skew width. These also cannot be used as padding characters.
+
'''[[bugzilla:16852|Bug]] (fixed in [[rev:45734|r45734]]):''' multibyte characters are interpreted as two characters, which can skew width. These also cannot be used as padding characters.
 
| {{MW version|version=1.8|compact=y|comment=and after}}
 
| {{MW version|version=1.8|compact=y|comment=and after}}
 
|-
 
|-
Line 1,104: Line 1,104:  
| <code><nowiki>{{int:xyz}}</nowiki></code>
 
| <code><nowiki>{{int:xyz}}</nowiki></code>
 
|
 
|
|  Same as <tvar|mw><nowiki>{{MediaWiki:xyz}}</nowiki>, except standard message translation is applied depending on subpages and content/user/uselang language.  Another difference is: this doesn't appear under "<tvar|translatesused>{{int|templatesused}}".  Rendered as <tvar|int>{{int:xyz}} if <tvar|mw>[[MediaWiki:xyz]] doesn't exist.  See also <tvar|1>{{ll|Help:System message}}.
+
|  Same as <tvar|mw><nowiki>{{MediaWiki:xyz}}</nowiki>, except standard message translation is applied depending on subpages and content/user/uselang language.  Another difference is: this doesn't appear under "<tvar|translatesused>{{int|templatesused}}".  Rendered as <tvar|int>{{int:xyz}} if <tvar|mw>[[MediaWiki:xyz]] doesn't exist.  See also {{ll|Help:System message}}.
 
|
 
|
 
|-
 
|-
Line 1,129: Line 1,129:  
| <code><nowiki>{{safesubst:xyz}}</nowiki></code>
 
| <code><nowiki>{{safesubst:xyz}}</nowiki></code>
 
|
 
|
|  See <tvar|1>{{ll|Help:Template#Usage}}.
+
|  See {{ll|Help:Template#Usage}}.
 
|
 
|
 
|}
 
|}
4,000

edits

Navigation menu