Open main menu

Project: Gorgon Wiki β

Changes

Template:BASEPAGENAME/doc

909 bytes added, 06:22, 27 April 2016
m
Eliminating double nowikis
;Usage
:To make use of the same functionality as the [[mw:Special:MyLanguage/Help:Magic words#Page_names|magic-word]] using a template with same name if it exists.::Use <code><nowiki>{{</nowiki>msg:{{msg:BASEPAGENAME}}<nowiki>}}</nowiki></code> inplace of <code><nowiki>{{</nowiki>{{msg:BASEPAGENAME}}<nowiki>}}</nowiki></code> to make use of the same functionality as the [[mw:Special:MyLanguageOr <code><nowiki>{{</Helpnowiki>msg:{{msg:Magic words#Page_namesBASEPAGENAME}}<nowiki>|magic-word]] using </nowiki><var>Pagename</var><nowiki>}}</nowiki></code> inplace of <code><nowiki>{{</nowiki>{{msg:BASEPAGENAME}}:<var>Pagename</var><nowiki>}}</nowiki></code> to provide a template with same name if pagename to operate upon.::If no <var>Pagename</var> is provided it existsdefaults to <span style="color:teal;">{{((}}FULLPAGENAME{{))}}</span>.
{| class="wikitable" style="background-color:teal;"
| <code>{{((}}#titleparts:<var>{{((}}PAGENAME:Tinput {{))}}</var><nowiki>|</nowiki>-1{{))}}</code>
| <code>{{#titleparts:{{PAGENAME:{{{1|{{FULLPAGENAME}}/1 1/2 2}}} }}|-1}}</code>
|-
! rowspan="2" | #titleparts: <nowiki>||</nowiki>-1
| <code>{{((}}#titleparts:<var>{{((}}PAGENAME:input {{))}}</var><nowiki>||</nowiki>-1{{))}}</code>
| <code>{{#titleparts:{{PAGENAME:{{{1|{{FULLPAGENAME}}}}} }}||-1}}</code>
|-
| <code>{{((}}#titleparts:<var>{{((}}PAGENAME:Tinput {{))}}</var><nowiki>||</nowiki>-1{{))}}</code>
| <code>{{#titleparts:{{PAGENAME:{{{1|{{FULLPAGENAME}}/1 1/2 2}}} }}||-1}}</code>
|}
|-
! rowspan="2" | msg:{{msg:BASEPAGENAME}}
| <code>{{((}}msg:{{msg:BASEPAGENAME}}:<nowiki>|</nowiki><var>input</var>{{))}}</code>| <code>{{msg:{{msg:BASEPAGENAME}}:|{{FULLPAGENAME}} }}</code>
|-
| <code>{{((}}msg:{{msg:BASEPAGENAME}}:<nowiki>|</nowiki><var>Tinput</var>{{))}}</code>| <code>{{msg:{{msg:BASEPAGENAME}}:|{{FULLPAGENAME}}/1 1/2 2 }}</code>
|}
;Dependencies
*{{t|((}}, {{t|(((}}, {{t|))}}, {{t|)))}} and {{t|SPW}} to provide this documentation.
*MediaWiki [[mw:Help:Magic words#Transclusion modifiers|Help:Magic words#Transclusion modifiers]] For the <i>msg</i> MAGICWORD.
*MediaWiki [[mw:Help:Magic words#Page names|Help:Magic words#Page names]].
1,071
edits