Changes
Jump to navigation
Jump to search
m
Changed protection level for "Template:Pgn/core": Allowing template editors on some templates with full protection dating back to pre-WP:TPROT times which aren't too often or too sensitively used. ([Edit=Require template editor access] (indefin...
{{#if:{{{namespace|}}}
| {{#if:{{{1|}}}
| {{{namespace|}}}: <!--Other parts of the pagename will follow-->
| {{{namespace|}}} <!--Only show namespace-->
}}
}}{{#switch: {{{1|}}}
| fullbasepage <!--Namespace already added-->
| basepage = {{BASEPAGENAME:Template:{{{pagename|}}}}}
| subpage = {{SUBPAGENAME:Template:{{{pagename|}}}}}
| fullpage <!--Namespace already added-->
| page = {{{pagename|}}}
| .. = <!--Relative path "../"-->
{{#ifeq: {{{2|}}} | .. <!--If two levels "../.." -->
| {{BASEPAGENAME:Template:{{BASEPAGENAME:Template:{{{pagename|}}}}}}}{{
#if:{{{3|}}}
| /{{{3|}}} <!--Whitespace already stripped in main template-->
}}
| {{BASEPAGENAME:Template:{{{pagename|}}}}}{{
#if:{{{2|}}}
| /{{{2|}}}
}}
}}
| fullrootpage <!-- Namespace already added -->
| rootpage <!-- rootpage = page1 -->
| page1 = {{#titleparts: {{{pagename|}}} | 1 | 1 }}
<!--Handle page2-4 for {{{1|}} here, to avoid prefixing "/" -->
| page2 = {{#titleparts: {{{pagename|}}} | 1 | 2 }}
| page3 = {{#titleparts: {{{pagename|}}} | 1 | 3 }}
| page4 = {{#titleparts: {{{pagename|}}} | 1 | 4 }}
}}{{#switch: page2 <!--"{{{1|}}} = page2" already checked above-->
| {{{2|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 2 }}
| / <!--If a page2 in pagename, prefix "/"-->
}}{{#titleparts: {{{pagename|}}} | 1 | 2 }}
}}{{#switch: page3
| {{{2|}}}
| {{{3|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 3 }}
| /
}}{{#titleparts: {{{pagename|}}} | 1 | 3 }}
}}{{#switch: page4
| {{{2|}}}
| {{{3|}}}
| {{{4|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 4 }}
| /
}}{{#titleparts: {{{pagename|}}} | 1 | 4 }}
}}<noinclude>
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
| {{#if:{{{1|}}}
| {{{namespace|}}}: <!--Other parts of the pagename will follow-->
| {{{namespace|}}} <!--Only show namespace-->
}}
}}{{#switch: {{{1|}}}
| fullbasepage <!--Namespace already added-->
| basepage = {{BASEPAGENAME:Template:{{{pagename|}}}}}
| subpage = {{SUBPAGENAME:Template:{{{pagename|}}}}}
| fullpage <!--Namespace already added-->
| page = {{{pagename|}}}
| .. = <!--Relative path "../"-->
{{#ifeq: {{{2|}}} | .. <!--If two levels "../.." -->
| {{BASEPAGENAME:Template:{{BASEPAGENAME:Template:{{{pagename|}}}}}}}{{
#if:{{{3|}}}
| /{{{3|}}} <!--Whitespace already stripped in main template-->
}}
| {{BASEPAGENAME:Template:{{{pagename|}}}}}{{
#if:{{{2|}}}
| /{{{2|}}}
}}
}}
| fullrootpage <!-- Namespace already added -->
| rootpage <!-- rootpage = page1 -->
| page1 = {{#titleparts: {{{pagename|}}} | 1 | 1 }}
<!--Handle page2-4 for {{{1|}} here, to avoid prefixing "/" -->
| page2 = {{#titleparts: {{{pagename|}}} | 1 | 2 }}
| page3 = {{#titleparts: {{{pagename|}}} | 1 | 3 }}
| page4 = {{#titleparts: {{{pagename|}}} | 1 | 4 }}
}}{{#switch: page2 <!--"{{{1|}}} = page2" already checked above-->
| {{{2|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 2 }}
| / <!--If a page2 in pagename, prefix "/"-->
}}{{#titleparts: {{{pagename|}}} | 1 | 2 }}
}}{{#switch: page3
| {{{2|}}}
| {{{3|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 3 }}
| /
}}{{#titleparts: {{{pagename|}}} | 1 | 3 }}
}}{{#switch: page4
| {{{2|}}}
| {{{3|}}}
| {{{4|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 4 }}
| /
}}{{#titleparts: {{{pagename|}}} | 1 | 4 }}
}}<noinclude>
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>