Template:Subpages3: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(Undo revision 100288583 by Chris Day (Talk))
imported>Chris Day
No edit summary
Line 12: Line 12:
***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.***
***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: {{PAGENAME}}|{{FULLPAGENAME}}
-->{{ {{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
       |{{ #ifeq: {{PAGENAME}}|{{{{BASEPAGENAME}}/Metadata|info=pagename}}
       |x0
              |
       | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
              |{{subsub talk catch}} }}
       |{{ {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
               |x0
               |x0
               |{{#ifeq:{{NAMESPACE}}|Talk
               |{{#ifeq:{{NAMESPACE}}|Talk
Line 22: Line 20:
           |{{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
           |{{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
                                 |subpage_style
                                 |subpage_style
                                |{{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
                                |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}} }}
                                      |x0
 
                                      |subsub talk catch}} }} }} }} }}|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: {{PAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
|<!--(Article)-->
|{{#ifeq:{{SUBPAGENAME}}|Draft
|<!--(Draft)-->
        |{{ #ifexist: {{../../Metadata|info=pagename}}
        |[[<!--(all subsubpages--> {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                                    |<!--(signed article)-->
                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                              |<!--(Catalog sub-subpage)-->
                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                                              |<!--(timeline sub-subpage)-->
                                                            |}} }} }}
          |<!--(All subpage articles)--> {{#ifeq:{{SUBPAGENAME}}|Approval
                                  |<!--(approval subpage)-->
                                  | }} }} }} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq:{{NAMESPACE}}|Talk
| {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(Draft Talk page) -->
| <!--not currently used--> }} }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User subpage)
                        |{{#ifeq:{{SUBPAGENAME}}|Metadata
              |<!--(metadata page)-->{{Metadata}}
                              |<!--not currently used--> (User subpage talk and other tempaltes?) }} }} }}
| {{#ifeq:{{NAMESPACE}}|Talk
| <!--(Article Talk page) -->
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
| (template talk page) }} }} }} }} }}
 
 
[[Test article]]
[[Test article]]

Revision as of 07:26, 17 March 2008


{{ #ifeq: Subpages3|Template:Subpages3 | {{ #ifeq: Subpages3|Template:Subpages3

	| 
	|{{#ifeq:Subpages3|Draft
	 	|
	        |{{ #ifexist: {{../../Metadata|info=pagename}}
	 	        |[[  
	  	         |  }} }} }}

| (User subpage talk and other tempaltes?)

	| 	(template talk page) }} }}


Test article