Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:PG/BASEPAGENAME/doc

Template page
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:PG/BASEPAGENAME}} inplace of {{PG/BASEPAGENAME}}
Or {{msg:PG/BASEPAGENAME|Pagename}} inplace of {{PG/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:PG/BASEPAGENAME/doc
Tinput Template:(((1|{{FULLPAGENAME}}/1 1/2 2}}} Template:PG/BASEPAGENAME/doc/1 1/2 2
NAMESPACE {{NAMESPACE}} Template
PAGENAME {{PAGENAME:input }} PG/BASEPAGENAME/doc
{{PAGENAME:Tinput }} PG/BASEPAGENAME/doc/1 1/2 2
#titleparts: |1 {{#titleparts:{{PAGENAME:input }}|1}} PG
{{#titleparts:{{PAGENAME:Tinput }}|1}} PG
#titleparts: |-1 {{#titleparts:{{PAGENAME:input }}|-1}} PG/BASEPAGENAME
{{#titleparts:{{PAGENAME:Tinput }}|-1}} PG/BASEPAGENAME/doc/1 1
#titleparts: ||-1 {{#titleparts:{{PAGENAME:input }}||-1}} doc
{{#titleparts:{{PAGENAME:Tinput }}||-1}} 2 2
Functionality table for debugging
functionality code result
PG/BASEPAGENAME {{PG/BASEPAGENAME:input}} Template:PG/BASEPAGENAME:Template:PG/BASEPAGENAME/doc
{{PG/BASEPAGENAME:Tinput}} Template:PG/BASEPAGENAME:Template:PG/BASEPAGENAME/doc/1 1/2 2
msg:PG/BASEPAGENAME {{msg:PG/BASEPAGENAME|input}} PG/BASEPAGENAME
{{msg:PG/BASEPAGENAME|Tinput}} PG/BASEPAGENAME/doc/1 1
Dependencies
See also