Sarna News: Bad 'Mechs - Icestorm
Help page: Edit

Editing Help:Magic words

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 80: Line 80:
  
 
==Variables==
 
==Variables==
{{Shortcut|BTW:VAR}}
+
 
{{Further|mw:Help:Magic words#Variables}}
+
{{Shortcut|WP:VAR}}
 +
{{Further|mw:Help:Magic words#Variables|Wikipedia:Page name#sub}}
 +
{{Redirect|WP:VAR|policies and guidelines with WP:*VAR shortcuts, mostly about style matters|WP:VARS}}
 +
{{Redirect|WP:PAGENAME|the article naming policy|Wikipedia:Article titles}}
  
 
{| class="wikitable plainrowheaders"
 
{| class="wikitable plainrowheaders"
Line 94: Line 97:
 
! scope=row id=PAGENAME | <kbd>{<nowiki/>{PAGENAME}}</kbd>
 
! scope=row id=PAGENAME | <kbd>{<nowiki/>{PAGENAME}}</kbd>
 
| {{PAGENAME}}
 
| {{PAGENAME}}
| Title line excluding [[BattleTechWiki:Namespace|namespace]].
+
| Title line excluding [[Wikipedia:Namespace|namespace]].
 
|-
 
|-
 
! scope=row id=BASEPAGENAME | <kbd>{<nowiki/>{BASEPAGENAME}}</kbd>
 
! scope=row id=BASEPAGENAME | <kbd>{<nowiki/>{BASEPAGENAME}}</kbd>
Line 104: Line 107:
 
| Title of topmost parent (before all subpages), excluding namespace.
 
| Title of topmost parent (before all subpages), excluding namespace.
 
|-
 
|-
! scope=row | <kbd>{<nowiki/>{SUBPAGENAME}}</kbd>
+
! scope=row | <kbd>[[wp:pagename#sub|{<nowiki/>{SUBPAGENAME}}]]</kbd>
 
| {{SUBPAGENAME}}
 
| {{SUBPAGENAME}}
| On a subpage, rightmost portion of ''current'' title; higher subpagenames show as [[w:Breadcrumb navigation|backlinks]].
+
| On a subpage, rightmost portion of ''current'' title; higher subpagenames show as [[Breadcrumb navigation|backlinks]].
 
|-
 
|-
 
! scope=row id=ARTICLEPAGENAME | <kbd>{<nowiki/>{ARTICLEPAGENAME}}</kbd>
 
! scope=row id=ARTICLEPAGENAME | <kbd>{<nowiki/>{ARTICLEPAGENAME}}</kbd>
Line 140: Line 143:
 
! scope=row id=FULLPAGENAMEE | {{longitem|style=line-height:1.5em|<kbd>{<nowiki/>{FULLPAGENAMEE}<nowiki/>}</kbd>,<br /><kbd>{<nowiki/>{PAGENAMEE}<nowiki/>}</kbd>,<br />{{pad|0.4em}}(etc.)}}
 
! scope=row id=FULLPAGENAMEE | {{longitem|style=line-height:1.5em|<kbd>{<nowiki/>{FULLPAGENAMEE}<nowiki/>}</kbd>,<br /><kbd>{<nowiki/>{PAGENAMEE}<nowiki/>}</kbd>,<br />{{pad|0.4em}}(etc.)}}
 
| {{longitem|style=line-height:1.5em|{{FULLPAGENAMEE}},<br/>{{PAGENAMEE}},<br/>(etc.)}}
 
| {{longitem|style=line-height:1.5em|{{FULLPAGENAMEE}},<br/>{{PAGENAMEE}},<br/>(etc.)}}
| Adding an E to the end of the above variables, renders the above encoded for use in MediaWiki URLs (i.e. with underscores replacing spaces).
+
| Adding an E to the end of the above variables, renders the above encoded for use in MediaWiki [[URL]]s (i.e. with underscores replacing spaces).
 +
|-
 +
! scope=row id=SHORTDESC | <kbd>{<nowiki/>{SHORTDESC}}</kbd>
 +
| <!-- do not invoke this magic word here: shows nothing and places page in error-tracking category -->
 +
| Only works on the English Wikipedia, where it displays a short description below the article title on mobile platforms. {{crossref|printworthy=y|See [[Wikipedia:Short description]].}}
 
|}
 
|}
  
''Note:'' The magic words above can also take a parameter, in order to parse values on a page other than the current page. A colon (<kbd>:</kbd>) is used to pass the parameter, rather than a pipe (<kbd>{{!}}</kbd>) that is used in templates, like <kbd><nowiki>{{MAGICWORD:value}}</nowiki></kbd>. For example, <kbd><nowiki>{{TALKPAGENAME:BattleTechWiki:MOS}}</nowiki></kbd> returns <samp><nowiki>BattleTechWiki talk:MOS</nowiki></samp> on any page.
+
''Note:'' The magic words above can also take a parameter, in order to parse values on a page other than the current page. A colon (<kbd>:</kbd>) is used to pass the parameter, rather than a pipe (<kbd>{{!}}</kbd>) that is used in templates, like <kbd><nowiki>{{MAGICWORD:value}}</nowiki></kbd>. For example, <kbd><nowiki>{{TALKPAGENAME:Wikipedia:MOS}}</nowiki></kbd> returns <samp><nowiki>Wikipedia talk:MOS</nowiki></samp> on any page.
  
''Note:'' In the "Category" and "Category talk" namespaces, to wikilink (some) page name variables may require [[Help:link|prefixing a colon]] to avoid unwanted categorization.
+
''Note:'' In the "Category" and "Category talk" namespaces, to wikilink (some) page name variables may require [[help:link|prefixing a colon]] to avoid unwanted categorization.
  
 
{{crossref|printworthy=y|For more details on parser functions that relate to page names and namespaces, see: {{section link|meta:Help:Page name#Variables and parser functions}}.}}
 
{{crossref|printworthy=y|For more details on parser functions that relate to page names and namespaces, see: {{section link|meta:Help:Page name#Variables and parser functions}}.}}
Line 159: Line 166:
 
! scope=row id=SERVER | <kbd>{<nowiki/>{SERVER}}</kbd>
 
! scope=row id=SERVER | <kbd>{<nowiki/>{SERVER}}</kbd>
 
| {{SERVER}}
 
| {{SERVER}}
| Domain [[w:URL|URL]] ([[mw:Manual:$wgServer|$wgServer]]).
+
| Domain [[URL]] ([[mw:Manual:$wgServer|$wgServer]]).
 
|-
 
|-
 
! scope=row id=SERVERNAME | <kbd>{<nowiki/>{SERVERNAME}}</kbd>
 
! scope=row id=SERVERNAME | <kbd>{<nowiki/>{SERVERNAME}}</kbd>

Please note that all contributions to BattleTechWiki are considered to be released under the GNU FDL 1.2 (see BattleTechWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Advanced templates:

Editing: {{Merge}}   {{Moratorium}}   {{Otheruses| | | }}

Notices: {{NoEdit}}   {{Sign}}   {{Unsigned|name}}   {{Welcome}}

Administration: {{Essay}}   {{Policy}}   {{Procedure}}

Templates used on this page:

This page is a member of 1 hidden category: