Difference between revisions of "Template:BASEPAGENAMEE"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Added SPW, i have put it on templates-wiki also)
m (Final fix)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Underconstruction}}
+
{{urlencode:{{msg:BASEPAGENAME|{{{1|{{FULLPAGENAME}}}}} }} |WIKI}}<noinclude>
</noinclude>{{urlencode:{{
+
{{documentation|Template:BASEPAGENAME/doc}}
#if: {{#titleparts: {{PAGENAME}} |-1}}
 
| {{#titleparts: {{PAGENAME}} |-1}}
 
| {{ROOTPAGENAME}}
 
}}|WIKI}}<noinclude>
 
{{documentation
 
|content={{SPW
 
        |is not on
 
        |name={{PAGENAME}}
 
        }}{{Ambox
 
        |border=red
 
        |type= Dropin !
 
        |info= This is a dropin functionality for wikis that don't have [[mw:Special:MyLanguage/Help:Subpages|Subpages]] enabled !
 
        }}
 
;Usage
 
Use <code><nowiki>{{</nowiki>{{FULLPAGENAME}}<nowiki>}}</nowiki></code> inplace of <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code> to make use of the same functionality as the [[mw:Special:MyLanguage/Help:Magic words#Page_names|magic-word]].
 
;See also
 
*[[Template:BASEPAGENAME]]
 
}}
 
[[Category:General wiki templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 05:36, 27 April 2016

BASEPAGENAMEE

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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:BASEPAGENAMEE}} inplace of {{BASEPAGENAMEE}}
Or {{msg:BASEPAGENAMEE|Pagename}} inplace of {{BASEPAGENAMEE: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:BASEPAGENAMEE
Tinput Template:(((1|{{FULLPAGENAME}}/1 1/2 2}}} Template:BASEPAGENAMEE/1 1/2 2
NAMESPACE {{NAMESPACE}} Template
PAGENAME {{PAGENAME:input }} BASEPAGENAMEE
{{PAGENAME:Tinput }} BASEPAGENAMEE/1 1/2 2
#titleparts: |1 {{#titleparts:{{PAGENAME:input }}|1}} BASEPAGENAMEE
{{#titleparts:{{PAGENAME:Tinput }}|1}} BASEPAGENAMEE
#titleparts: |-1 {{#titleparts:{{PAGENAME:input }}|-1}}
{{#titleparts:{{PAGENAME:Tinput }}|-1}} BASEPAGENAMEE/1 1
#titleparts: ||-1 {{#titleparts:{{PAGENAME:input }}||-1}} BASEPAGENAMEE
{{#titleparts:{{PAGENAME:Tinput }}||-1}} 2 2
Functionality table for debugging
functionality code result
BASEPAGENAMEE {{BASEPAGENAMEE:input}} BASEPAGENAMEE
{{BASEPAGENAMEE:Tinput}} BASEPAGENAMEE/1_1
msg:BASEPAGENAMEE {{msg:BASEPAGENAMEE|input}} BASEPAGENAMEE
{{msg:BASEPAGENAMEE|Tinput}} BASEPAGENAMEE/1_1
Dependencies
See also
The above text is transcluded from Template:BASEPAGENAME/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:BASEPAGENAME/doc. (View all subpages of this page.)