Difference between revisions of "Template:BASEPAGENAME/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Enhanced Usage text)
m (added dependencies of the documentation)
Line 75: Line 75:
  
 
;Dependencies
 
;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#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:Magic words#Page names|Help:Magic words#Page names]].

Revision as of 05:54, 26 April 2016

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
To make use of the same functionality as the magic-word using a template with same name if it exists.
Use {{msg:BASEPAGENAME}} inplace of {{BASEPAGENAME}}
Or {{msg:BASEPAGENAME:Pagename}} inplace of {{BASEPAGENAME:Pagename}} to provide a pagename to operate upon.
If no Pagename is provided it defaults to {{FULLPAGENAME}}.
Logic table for debugging
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
#titleparts: | |-1 {{#titleparts:{{PAGENAME:input }}||-1}} doc
{{#titleparts:{{PAGENAME:Tinput }}||-1}} 2 2
Functionality table for debugging
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
See also