Jump to content

Help:Magic Words: Difference between revisions

remove broken MW + redlinks
(remove broken MW + redlinks)
Line 89: Line 89:
|{{CURRENTWEEK}}
|{{CURRENTWEEK}}
|The current week of the year, with no leading zero
|The current week of the year, with no leading zero
|-
|<nowiki>{{CURRENTYEAR}}</nowiki>
|{{CURRENTYEAR}}
|The current year
|-
|-
|<nowiki>{{CURRENTTIMESTAMP}}</nowiki>
|<nowiki>{{CURRENTTIMESTAMP}}</nowiki>
Line 138: Line 134:
|{{NUMBEROFADMINS}}
|{{NUMBEROFADMINS}}
|The total number of users on this wiki in the [[Administrator]] group
|The total number of users on this wiki in the [[Administrator]] group
|-
|<nowiki>{{PAGESINNS:1}}</nowiki>
|{{PAGESINNS:4}}
|Shows the number of pages in a given namespace. The alternative format <nowiki>{{PAGESINNAMESPACE:ns}}</nowiki> may also work.
|}
|}
For the number of pages within a category, see other information (below)
For the number of pages within a category, see other information (below)
Line 434: Line 426:
!Description
!Description
|-
|-
|<nowiki>{{:xyz}}</nowiki>
|<nowiki>{{:GTA}}</nowiki>
|{{:xyz}}
|(no example included due to size of [[GTA]] page)
|A leading colon is the prefix for the name namespace (IE an empty namespace). This will transclude the specified page, not the page within the template: namespace. This example will include [[Xyz]] not [[Template:Xyz]].
|A leading colon is the prefix for the name namespace (IE an empty namespace). This will transclude the specified page, not the page within the template: namespace. This example will include [[GTA]] not [[Template:GTA]].
|-
|<nowiki>{{int:xyz}}</nowiki><br><nowiki>{{int:currentevents}}</nowiki>
|{{int:xyz}}<br>{{int:currentevents}}
|Includes a page from the MediaWiki namespace. Same as <nowiki>{{mediaWiki:xyz}}</nowiki>, but also doesn't show up under ''Templates used on this page''. Rendered as <xyz> if MediaWiki:xyz doesn't exist.
|-
|-
|<nowiki>{{msg:CURRENTYEAR}}</nowiki>
|<nowiki>{{int:GTA}}</nowiki><br><nowiki>{{int:currentevents}}</nowiki>
|{{msg:CURRENTYEAR}}
|{{int:GTA}}<br>{{int:currentevents}}
|Transcludes the template xyz, even if a Magic Word with the same name exists. Usually Magic Words take priority.
|Includes a page from the MediaWiki namespace. Same as <nowiki>{{mediaWiki:GTA}}</nowiki>, but also doesn't show up under ''Templates used on this page''. Rendered as <GTA> if MediaWiki:GTA doesn't exist.
|-
|-
|<nowiki>{{msgnw:Col-end}}</nowiki><br><nowiki>{{raw:Col-end}}</nowiki>
|<nowiki>{{msgnw:Col-end}}</nowiki><br><nowiki>{{raw:Col-end}}</nowiki>
Line 450: Line 438:
|Includes the wikitext (markup, raw code) of a page. Does not render the page.  
|Includes the wikitext (markup, raw code) of a page. Does not render the page.  
|-
|-
|<nowiki>{{subst:xyz}}</nowiki>
|<nowiki>{{subst:GTA}}</nowiki>
| --
| --
|The content of the mentioned page is copied into this page. The include tag is replaced by the markup of the target page. The template will appear to show as normal, but changes to the template will not affect this page.
|The content of the mentioned page is copied into this page. The include tag is replaced by the markup of the target page. The template will appear to show as normal, but changes to the template will not affect this page.
Line 462: Line 450:
!Description
!Description
|-
|-
|<nowiki>{{DISPLAYTITLE:xyz}}</nowiki>
|<nowiki>{{DISPLAYTITLE:GTA}}</nowiki>
| --
| --
|Changes a page's title, as displayed at in the header at the top of the page
|Changes a page's title, as displayed at in the header at the top of the page
Cookies help us deliver our services. By using our services, you agree to our use of cookies.