Changes

Template:Pgn/sandbox

1,019 bytes added, 17:03, 16 January 2013
{{pgn/core
| pagename =
{{#if: {{{page|}}}
| {{PAGENAME: {{{page|}}} }}
| {{PAGENAME}}
}}
| namespace = <!-- Empty if no namespace selected, or if main space -->
{{#if: {{{page|}}}
| {{#switch: {{{1|}}}
| fullpage
| fullbasepage
| fullrootpage
| ns = {{NAMESPACE: {{{page|}}} }}
| ss = {{SUBJECTSPACE: {{{page|}}} }}
| ts = {{TALKSPACE: {{{page|}}} }}
}}
| {{#switch: {{{1|}}}
| fullpage
| fullbasepage
| fullrootpage
| ns = {{NAMESPACE}}
| ss = {{SUBJECTSPACE}}
| ts = {{TALKSPACE}}
}}
}}
<!-- See to that the rest of the parameters always start from 1.
And the feeding as "2=" strips surrounding whitespace. -->
| 1 = {{#switch:{{{1|}}}|ns|ss|ts = {{{2|}}} | #default = {{{1|}}} }}
| 2 = {{#switch:{{{1|}}}|ns|ss|ts = {{{3|}}} | #default = {{{2|}}} }}
| 3 = {{#switch:{{{1|}}}|ns|ss|ts = {{{4|}}} | #default = {{{3|}}} }}
| 4 = {{#switch:{{{1|}}}|ns|ss|ts = {{{5|}}} | #default = {{{4|}}} }}
}}<noinclude>

{{documentation}}
</noinclude>
Anonymous user