Template:Subpages3: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 1: Line 1:
{{{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}} |subpage_style|x0}}|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subpage|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|variant= {{{{BASEPAGENAME}}/Metadata|info=variant}}|abc= {{{{BASEPAGENAME}}/Metadata|info=abc}}|cat_check= {{{{BASEPAGENAME}}/Metadata|info=cat_check}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}|underlinked= {{{{BASEPAGENAME}}/Metadata|info=underlinked}}|cleanup= {{{{BASEPAGENAME}}/Metadata|info=cleanup}}|by= {{{{BASEPAGENAME}}/Metadata|info=by}}|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3= {{{{BASEPAGENAME}}/Metadata|info=cat3}}|article url= {{{{BASEPAGENAME}}/Metadata|info=article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info=subpage url}}|cluster= {{{{BASEPAGENAME}}/Metadata|info=cluster}}|now= {{{{BASEPAGENAME}}/Metadata|info=now}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info=ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info=ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info=ToA editor3}}|date= {{{{BASEPAGENAME}}/Metadata|info=date}}|A editor= {{{{BASEPAGENAME}}/Metadata|info=A editor}}|A editor2= {{{{BASEPAGENAME}}/Metadata|info=A editor2}}|A editor3= {{{{BASEPAGENAME}}/Metadata|info=A editor3}} }}{{{{ #ifexist: {{../../Metadata|info=pagename}}
<!--
|subpage_style|x0}}|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subsubpage|pagename= {{../../Metadata|info=pagename}}|variant= {{../../Metadata|info=variant}}|abc= {{../../Metadata|info=abc}}|cat_check= {{../../Metadata|info=cat_check}}|status= {{../../Metadata|info=status}}|underlinked= {{../../Metadata|info=underlinked}}|cleanup= {{../../Metadata|info=cleanup}}|by= {{../../Metadata|info=by}}|group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3= {{../../Metadata|info=cat3}}|article url= {{../../Metadata|info=article url}}|subpage url= {{../../Metadata|info=subpage url}}|cluster= {{../../Metadata|info=cluster}}|now= {{../../Metadata|info=now}}|ToA editor= {{../../Metadata|info=ToA editor}}|ToA editor2= {{../../Metadata|info=ToA editor2}}|ToA editor3= {{../../Metadata|info=ToA editor3}}|date= {{../../Metadata|info=date}}|A editor= {{../../Metadata|info=A editor}}|A editor2= {{../../Metadata|info=A editor2}}|A editor3= {{../../Metadata|info=A editor3}} }}


{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
***The following section specifically establishes parameters for the subpage template on all pages except subsubpages and their talk pages as well as the metadata template.***
       | out1
 
-->{{{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}} |subpage_style|x0}}|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subpage|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|variant= {{{{BASEPAGENAME}}/Metadata|info=variant}}|abc= {{{{BASEPAGENAME}}/Metadata|info=abc}}|cat_check= {{{{BASEPAGENAME}}/Metadata|info=cat_check}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}|underlinked= {{{{BASEPAGENAME}}/Metadata|info=underlinked}}|cleanup= {{{{BASEPAGENAME}}/Metadata|info=cleanup}}|by= {{{{BASEPAGENAME}}/Metadata|info=by}}|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3= {{{{BASEPAGENAME}}/Metadata|info=cat3}}|article url= {{{{BASEPAGENAME}}/Metadata|info=article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info=subpage url}}|cluster= {{{{BASEPAGENAME}}/Metadata|info=cluster}}|now= {{{{BASEPAGENAME}}/Metadata|info=now}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info=ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info=ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info=ToA editor3}}|date= {{{{BASEPAGENAME}}/Metadata|info=date}}|A editor= {{{{BASEPAGENAME}}/Metadata|info=A editor}}|A editor2= {{{{BASEPAGENAME}}/Metadata|info=A editor2}}|A editor3= {{{{BASEPAGENAME}}/Metadata|info=A editor3}} }}<!--
 
***The following section specifically functions on subsubpages.***
 
-->{{{{ #ifexist: {{../../Metadata|info=pagename}}
|subpage_style|x0}}|namespace={{NAMESPACE}}|subpagename={{SUBPAGENAME}}|basepagename={{BASEPAGENAME}}|fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= subsubpage|pagename= {{../../Metadata|info=pagename}}|variant= {{../../Metadata|info=variant}}|abc= {{../../Metadata|info=abc}}|cat_check= {{../../Metadata|info=cat_check}}|status= {{../../Metadata|info=status}}|underlinked= {{../../Metadata|info=underlinked}}|cleanup= {{../../Metadata|info=cleanup}}|by= {{../../Metadata|info=by}}|group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3= {{../../Metadata|info=cat3}}|article url= {{../../Metadata|info=article url}}|subpage url= {{../../Metadata|info=subpage url}}|cluster= {{../../Metadata|info=cluster}}|now= {{../../Metadata|info=now}}|ToA editor= {{../../Metadata|info=ToA editor}}|ToA editor2= {{../../Metadata|info=ToA editor2}}|ToA editor3= {{../../Metadata|info=ToA editor3}}|date= {{../../Metadata|info=date}}|A editor= {{../../Metadata|info=A editor}}|A editor2= {{../../Metadata|info=A editor2}}|A editor3= {{../../Metadata|info=A editor3}} }}<!--
 
***The following section filters out all pages except for the metadata page. Then tests to see if the metadata page exists. If the metadata page does exist it establishes the parameters for the subpages tempalte.  If not, it should enter the an error check mode via "subsub talk catch" template  Note, this used to function with subsubpage talk pages too but not now.***
 
-->{{ #ifeq: {{NAMESPACE}}|Template
       |  
       | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
       | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
               | out2
               |  
               | {{#ifeq:{{NAMESPACE}}|Talk
               | {{#ifeq:{{NAMESPACE}}|Talk
                   |out3
                   |
           |out4{{{{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}|subpage_style|x0}}| namespace={{NAMESPACE}} |subpagename={{SUBPAGENAME}} |basepagename={{BASEPAGENAME}} |fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= template|pagename= {{{{BASEPAGENAME}}|info=pagename}}|variant= {{{{BASEPAGENAME}}|info=variant}}|abc= {{{{BASEPAGENAME}}|info=abc}}|cat_check= {{{{BASEPAGENAME}}|info=cat_check}}|status= {{{{BASEPAGENAME}}|info=status}}|underlinked= {{{{BASEPAGENAME}}|info=underlinked}}|cleanup= {{{{BASEPAGENAME}}|info=cleanup}}|by= {{{{BASEPAGENAME}}|info=by}}|group = {{{{BASEPAGENAME}}|info=cat1}}|group2= {{{{BASEPAGENAME}}|info=cat2}}|group3= {{{{BASEPAGENAME}}|info=cat3}}|article url= {{{{BASEPAGENAME}}|info=article url}}|subpage url= {{{{BASEPAGENAME}}|info=subpage url}}|cluster= {{{{BASEPAGENAME}}|info=cluster}}|now= {{{{BASEPAGENAME}}|info=now}}|ToA editor= {{{{BASEPAGENAME}}|info=ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}|info=ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}|info=ToA editor3}}|date= {{{{BASEPAGENAME}}|info=date}}|A editor= {{{{BASEPAGENAME}}|info=A editor}}|A editor2= {{{{BASEPAGENAME}}|info=A editor2}}|A editor3= {{{{BASEPAGENAME}}|info=A editor3}} }}{{ {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}|x0|subsub talk catch}}|}} }} }} }}
           |{{{{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}|subpage_style|x0}}| namespace={{NAMESPACE}} |subpagename={{SUBPAGENAME}} |basepagename={{BASEPAGENAME}} |fullpagename={{FULLPAGENAME}}|name={{PAGENAME}}|type= template|pagename= {{{{BASEPAGENAME}}|info=pagename}}|variant= {{{{BASEPAGENAME}}|info=variant}}|abc= {{{{BASEPAGENAME}}|info=abc}}|cat_check= {{{{BASEPAGENAME}}|info=cat_check}}|status= {{{{BASEPAGENAME}}|info=status}}|underlinked= {{{{BASEPAGENAME}}|info=underlinked}}|cleanup= {{{{BASEPAGENAME}}|info=cleanup}}|by= {{{{BASEPAGENAME}}|info=by}}|group = {{{{BASEPAGENAME}}|info=cat1}}|group2= {{{{BASEPAGENAME}}|info=cat2}}|group3= {{{{BASEPAGENAME}}|info=cat3}}|article url= {{{{BASEPAGENAME}}|info=article url}}|subpage url= {{{{BASEPAGENAME}}|info=subpage url}}|cluster= {{{{BASEPAGENAME}}|info=cluster}}|now= {{{{BASEPAGENAME}}|info=now}}|ToA editor= {{{{BASEPAGENAME}}|info=ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}|info=ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}|info=ToA editor3}}|date= {{{{BASEPAGENAME}}|info=date}}|A editor= {{{{BASEPAGENAME}}|info=A editor}}|A editor2= {{{{BASEPAGENAME}}|info=A editor2}}|A editor3= {{{{BASEPAGENAME}}|info=A editor3}} }}{{ {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}|x0|subsub talk catch}}|}} }} }} }}

Revision as of 00:55, 26 October 2007