Difference between revisions of "Template:BASEPAGENAME/doc"
From Project: Gorgon Wiki
m (Updated with description and see also links) |
m (Split table and added dependencies to MW helppages.) |
||
| Line 43: | Line 43: | ||
| <code>{{((}}#titleparts:<var>{{((}}PAGENAME:Tinput {{))}}</var><nowiki>|</nowiki>-1{{))}}</code> | | <code>{{((}}#titleparts:<var>{{((}}PAGENAME:Tinput {{))}}</var><nowiki>|</nowiki>-1{{))}}</code> | ||
| <code>{{#titleparts:{{PAGENAME:{{{1|{{FULLPAGENAME}}/1 1/2 2}}} }}|-1}}</code> | | <code>{{#titleparts:{{PAGENAME:{{{1|{{FULLPAGENAME}}/1 1/2 2}}} }}|-1}}</code> | ||
| + | |} | ||
| + | |||
| + | {| class="wikitable" style="background-color:teal;" | ||
| + | |+ Functionality table for debugging | ||
| + | ! functionality !! code !! result | ||
|- | |- | ||
! rowspan="2" | {{msg:BASEPAGENAME}} | ! rowspan="2" | {{msg:BASEPAGENAME}} | ||
| Line 58: | Line 63: | ||
| <code>{{msg:{{msg:BASEPAGENAME}}:{{FULLPAGENAME}}/1 1/2 2 }}</code> | | <code>{{msg:{{msg:BASEPAGENAME}}:{{FULLPAGENAME}}/1 1/2 2 }}</code> | ||
|} | |} | ||
| + | |||
| + | ;Dependencies | ||
| + | *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]]. | ||
| + | *MediaWiki [[mw:Help:Extension:ParserFunctions#.23titleparts|Help:Extension:ParserFunctions##titleparts]] for logic used in the functionality. | ||
;See also | ;See also | ||
| − | |||
*[[Template:BASEPAGENAME]] | *[[Template:BASEPAGENAME]] | ||
*[[Template:BASEPAGENAMEE]] | *[[Template:BASEPAGENAMEE]] | ||
Revision as of 04:36, 26 April 2016
| This template was copied from Template:BASEPAGENAME on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
- Description
- This is a drop-in functionality for wikis that don't have Subpages enabled.
- This documentation is shared between templates affected by this, see the See also section at bottom.
- Usage
- Use
{{msg:BASEPAGENAME}}inplace of{{BASEPAGENAME}}to make use of the same functionality as the magic-word using a template with same name if it exists.
| code | result | |
|---|---|---|
| input | Template:(((1|{{FULLPAGENAME}}}}}
|
Template:BASEPAGENAME/doc
|
| Tinput | Template:(((1|{{FULLPAGENAME}}/1 1/2 2}}}
|
Template:BASEPAGENAME/doc/1 1/2 2
|
| NAMESPACE | {{NAMESPACE}}
|
Template
|
| PAGENAME | {{PAGENAME:input }}
|
BASEPAGENAME/doc
|
{{PAGENAME:Tinput }}
|
BASEPAGENAME/doc/1 1/2 2
| |
| #titleparts: |1 | {{#titleparts:{{PAGENAME:input }}|1}}
|
BASEPAGENAME
|
{{#titleparts:{{PAGENAME:Tinput }}|1}}
|
BASEPAGENAME
| |
| #titleparts: |-1 | {{#titleparts:{{PAGENAME:input }}|-1}}
|
BASEPAGENAME
|
{{#titleparts:{{PAGENAME:Tinput }}|-1}}
|
BASEPAGENAME/doc/1 1
|
| functionality | code | result |
|---|---|---|
| BASEPAGENAME | {{BASEPAGENAME:input}}
|
BASEPAGENAME
|
{{BASEPAGENAME:Tinput}}
|
BASEPAGENAME/doc/1 1
| |
| msg:BASEPAGENAME | {{msg:BASEPAGENAME:input}}
|
BASEPAGENAME
|
{{msg:BASEPAGENAME:Tinput}}
|
BASEPAGENAME/doc/1 1
|
- Dependencies
- MediaWiki Help:Magic words#Transclusion modifiers For the msg MAGICWORD.
- MediaWiki Help:Magic words#Page names.
- MediaWiki Help:Extension:ParserFunctions##titleparts for logic used in the functionality.
- See also