1,071
edits
Changes
Copy-over latest version from wikia:c:templates:Template:BASEPAGENAME/doc
{{SPW|is not on|name={{msg:BASEPAGENAME}}}}
{{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>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:MyLanguage/Help:Magic words#Page_names|magic-word]] using a template with same name if it exists.
{| class="wikitable" style="background-color:teal;"
|+ Logic table for debugging
! !! code !! result
|-
! input
| <code>{{(((}}1<nowiki>|</nowiki><span style="color:teal;">{{((}}FULLPAGENAME{{))}}</span>{{)))}}</code>
| <code>{{{1|<span style="color:teal;">{{FULLPAGENAME}}</span>}}}</code>
|-
! Tinput
| <code>{{(((}}1<nowiki>|</nowiki><span style="color:teal;">{{((}}FULLPAGENAME{{))}}</span>/1 1/2 2{{)))}}</code>
| <code>{{{1|<span style="color:teal;">{{FULLPAGENAME}}</span>/1 1/2 2}}}</code>
|-
! NAMESPACE
| <code>{{((}}NAMESPACE{{))}}</code>
| <code>{{NAMESPACE}}</code>
|-
! rowspan="2" | PAGENAME
| <code>{{((}}PAGENAME:<var>input</var> {{))}}</code>
| <code>{{PAGENAME:{{{1|{{FULLPAGENAME}}}}} }}</code>
|-
| <code>{{((}}PAGENAME:<var>Tinput</var> {{))}}</code>
| <code>{{PAGENAME:{{{1|{{FULLPAGENAME}}/1 1/2 2}}} }}</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" | #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:BASEPAGENAME}}
| <code>{{((}}{{msg:BASEPAGENAME}}:<var>input</var>{{))}}</code>
| <code>{{{{msg:BASEPAGENAME}}:{{FULLPAGENAME}} }}</code>
|-
| <code>{{((}}{{msg:BASEPAGENAME}}:<var>Tinput</var>{{))}}</code>
| <code>{{{{msg:BASEPAGENAME}}:{{FULLPAGENAME}}/1 1/2 2 }}</code>
|-
! rowspan="2" | msg:{{msg:BASEPAGENAME}}
| <code>{{((}}msg:{{msg:BASEPAGENAME}}:<var>input</var>{{))}}</code>
| <code>{{msg:{{msg:BASEPAGENAME}}:{{FULLPAGENAME}} }}</code>
|-
| <code>{{((}}msg:{{msg:BASEPAGENAME}}:<var>Tinput</var>{{))}}</code>
| <code>{{msg:{{msg:BASEPAGENAME}}:{{FULLPAGENAME}}/1 1/2 2 }}</code>
|}
;See also
*[[Template:{{#ifeq:{{msg:BASEPAGENAME}}|BASEPAGENAME
|BASEPAGENAMEE
|BASEPAGENAME
}}]]
<includeonly>
<!-- Categories/interwikis for the template itself -->
[[Category:General wiki templates]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>
{{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>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:MyLanguage/Help:Magic words#Page_names|magic-word]] using a template with same name if it exists.
{| class="wikitable" style="background-color:teal;"
|+ Logic table for debugging
! !! code !! result
|-
! input
| <code>{{(((}}1<nowiki>|</nowiki><span style="color:teal;">{{((}}FULLPAGENAME{{))}}</span>{{)))}}</code>
| <code>{{{1|<span style="color:teal;">{{FULLPAGENAME}}</span>}}}</code>
|-
! Tinput
| <code>{{(((}}1<nowiki>|</nowiki><span style="color:teal;">{{((}}FULLPAGENAME{{))}}</span>/1 1/2 2{{)))}}</code>
| <code>{{{1|<span style="color:teal;">{{FULLPAGENAME}}</span>/1 1/2 2}}}</code>
|-
! NAMESPACE
| <code>{{((}}NAMESPACE{{))}}</code>
| <code>{{NAMESPACE}}</code>
|-
! rowspan="2" | PAGENAME
| <code>{{((}}PAGENAME:<var>input</var> {{))}}</code>
| <code>{{PAGENAME:{{{1|{{FULLPAGENAME}}}}} }}</code>
|-
| <code>{{((}}PAGENAME:<var>Tinput</var> {{))}}</code>
| <code>{{PAGENAME:{{{1|{{FULLPAGENAME}}/1 1/2 2}}} }}</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" | #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:BASEPAGENAME}}
| <code>{{((}}{{msg:BASEPAGENAME}}:<var>input</var>{{))}}</code>
| <code>{{{{msg:BASEPAGENAME}}:{{FULLPAGENAME}} }}</code>
|-
| <code>{{((}}{{msg:BASEPAGENAME}}:<var>Tinput</var>{{))}}</code>
| <code>{{{{msg:BASEPAGENAME}}:{{FULLPAGENAME}}/1 1/2 2 }}</code>
|-
! rowspan="2" | msg:{{msg:BASEPAGENAME}}
| <code>{{((}}msg:{{msg:BASEPAGENAME}}:<var>input</var>{{))}}</code>
| <code>{{msg:{{msg:BASEPAGENAME}}:{{FULLPAGENAME}} }}</code>
|-
| <code>{{((}}msg:{{msg:BASEPAGENAME}}:<var>Tinput</var>{{))}}</code>
| <code>{{msg:{{msg:BASEPAGENAME}}:{{FULLPAGENAME}}/1 1/2 2 }}</code>
|}
;See also
*[[Template:{{#ifeq:{{msg:BASEPAGENAME}}|BASEPAGENAME
|BASEPAGENAMEE
|BASEPAGENAME
}}]]
<includeonly>
<!-- Categories/interwikis for the template itself -->
[[Category:General wiki templates]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>