Template:Subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(clarify location of metadata page on coloured section of subpages template)
imported>Chris Day
(now or not for a while. Fingers crossed)
Line 1: Line 1:
<div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;">
<!--
{|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"
|-
|<!--


***Code to add the status bar on the article and all subpages.***
***The following section adds a comment at the top of any page that cannot use the subpages template. It also places a comment at the top of subpage and subsubpage talk pages encouraging the use of the clusters primary talk page (at either Talk:Article or Talk:Article/Draft depending on the status of approval.***


-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
-->{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
    |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0
        |{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
          |rowspan=2 width=2px valign=top align=left style="background:#C4DFC4; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[Image:Statusbar0.gif]]
                      |<!--(Article)-->
          |rowspan=2 width=2px valign=top align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:1px solid #dddddd;"{{!}}[[image:Statusbar{{{{BASEPAGENAME}}/Metadata|info=status}}.png]]}}
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
                        |<!--(all subsubpages--> {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
          |{{#ifeq:{{{{BASEPAGENAME}}|info=status}}|0
                                                    |<!--(signed article)-->
                |rowspan=2 width=2px valign=top align=left style="background:#C4DFC4; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[Image:Statusbar0.gif]]
                                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                |rowspan=2 width=2px valign=top align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:1px solid #dddddd;"{{!}}[[image:Statusbar{{{{BASEPAGENAME}}|info=status}}.png]]}}
                                              |<!--(Catalog sub-subpage)-->
            |{{#ifexist: {{../../Metadata|info=pagename}}
                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                |{{#ifeq:{{../../Metadata|info=status}}|0
                                                              |<!--(timeline sub-subpage)-->
                      |rowspan=2 width=2px valign=top align=left style="background:#C4DFC4; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[Image:Statusbar0.gif]]
                                                                            |''The {{tl|subpages}} template is not currently configured to be used on this class of subsubpage. The header and categories are consequently less specific than normal.''[[Category:Unexpected subsubpage]]}} }} }}
                      |rowspan=2 width=2px valign=top align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:1px solid #dddddd;"{{!}}[[image:Statusbar{{../../Metadata|info=status}}.png]] }} }} }} }}<nowiki>
                          |}} }}
 
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
</nowiki>{{ #ifexist: {{../../Metadata|info=pagename}}
| {{#ifeq:{{NAMESPACE}}|Talk
    |{{button off2}}{{!}}<font size=1>[[{{../../Metadata|info=pagename}}|Main Article]]</font><nowiki>
|{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}<!--redirect to the article talk page. This depends on a redirect being established from the talk page to the draft talk page after approval for the subsubpage talk page.-->
 
                          | {{#ifeq:{{SUBPAGENAME}}|Draft||<!--Talk subpage-->''Please continue discussion at the {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|[[{{TALKSPACE}}:{{BASEPAGENAME}}/Draft|main talk page]]|[[{{TALKSPACE}}:{{BASEPAGENAME}}|main talk page]]}}, or return to the [[{{PAGENAME}}|{{SUBPAGENAME}}]] subpage.''}}
</nowiki>{{#ifeq: {{../../Metadata|info=status}}|0
                          |<!--Talk subsubpage--><center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">However, it cannot function on sub-subpage talk pages.</font>.'''''</center>''Please continue discussion at [[../../]], or return to the [[{{PAGENAME}}|{{SUBPAGENAME}}]] subsubpage.''}}
        |{{button off25}}{{!}}<font size=1>[[Talk:{{../../Metadata|info=pagename}}/Draft|Talk]]</font>
| {{#ifeq:{{NAMESPACE}}|User
        |{{button off25}}{{!}}<font size=1>[[Talk:{{../../Metadata|info=pagename}}|Talk]]</font>}}<nowiki>
| <!--(User subpage) --><center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">It will not function on {{NAMESPACE}} pages</font>.'''''</center>[[Category:Misplaced subpage]] <br>
                        |{{#ifeq:{{SUBPAGENAME}}|Metadata
              | {{#ifeq:{{NAMESPACE}}|Template talk
                                      |<!--(talk metadata page)-->''Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[{{BASEPAGENAME}}/Metadata]] page.''
                                      |<!--(metadata page)--> }}
                              |<!--(User subpage talk)--><center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">It will not function on {{NAMESPACE}} pages</font>.'''''</center>[[Category:Misplaced subpage]] <br>}} }} }}
| {{#ifeq:{{NAMESPACE}}|Talk
| <!--(Article Talk page) -->
|<center> '''''The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br><font color="red">It will not function on {{NAMESPACE}} pages</font>.'''''</center>[[Category:Misplaced subpage]] <br> }} }} }}<!--


</nowiki>{{ #ifexist: {{../../Metadata|info=pagename}}/Draft|{{button off2}}{{!}}<font size=1>[[{{../../Metadata|info=pagename}}/Draft|Draft]]</font>}}
***The following section adds error templates to the top of pages. Errors caught include, no metadata page, a misspelled pagename field or a mismatch between the status and approving editor fields (Must have a status of "0" if an approving editor is shown). The tree below resolves such that the no metadata template is only placed on subpages, the article and its talk page and the metadata page***


    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
-->{{#ifexist:Template:{{BASEPAGENAME}}/Metadata
          | {{button off2}}{{!}}<font size=1>[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]</font><nowiki>
    |{{ {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|{{BASEPAGENAME}}
            |Editor error catch
            |metadata error catch}} }}
    |{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
        |{{ {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
                      |no metadata template
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
                        |x0
                          |no metadata template}} }} }}
        | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
          | {{ {{#ifeq:{{NAMESPACE}}|Talk
          |x0
          |{{#ifeq:{{NAMESPACE}}|User
          |x0
                                |{{#ifeq:{{SUBPAGENAME}}|Metadata
                        |{{#ifeq:{{NAMESPACE}}|Template talk
                                                |x0
                                                |no metadata template}}
                                        |x0}} }} }} }}
          | {{ {{#ifeq:{{NAMESPACE}}|Talk
          | no metadata template
          | x0}} }} }} }} }}<!--


</nowiki>{{#ifeq: {{{{BASEPAGENAME}}|info=status}}|0
***The following section specifically establishes parameters for the subpage template on all pages except subsubpages and their talk pages.***
        |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}|info=pagename}}/Draft|Talk]]</font>
        |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}|info=pagename}}|Talk]]</font>}}<nowiki>


</nowiki>{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}/Draft|{{button off2}}{{!}}<font size=1>[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft]]</font>}}
-->{{{{#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}}|basepagenamee={{BASEPAGENAMEE}}|background=ffffff }}<!--
            | {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|
                  |{{button off25}}{{!}}<font size=1>[[Template:{{BASEPAGENAME}}/Metadata|Exist?]]</font>
                  | {{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}
                            | {{button on2|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}}  
                            | {{button off2}} }}{{!}}<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font><nowiki>


</nowiki>{{#ifeq: {{{{BASEPAGENAME}}/Metadata|info=status}}|0
***The following section specifically functions on subsubpages. For technical reasons this template is not fully function on the subsubpage talk pages.***
                      |{{#ifeq:{{NAMESPACE}}|Talk
                            |{{button on25|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} {{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|Talk]]</font>
                            |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|Talk]]</font>}}
                      |{{#ifeq:{{NAMESPACE}}|Talk
                            |{{button on25|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} {{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|Talk]]</font>
                            |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|Talk]]</font>}} }}<nowiki>


</nowiki>{{ #ifexist: {{BASEPAGENAME}}/Draft| {{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Draft| {{button on2|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} | {{button off2}} }}{{!}}<font size=1>[[{{BASEPAGENAME}}/Draft|Draft]]</font> }} }} }} }}<nowiki>
-->{{{{ #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}}|background=ffffff }}
</nowiki>{{Default button 3}}<nowiki>
 
</nowiki>{{Optional button 3}}<nowiki>
 
</nowiki>{{#ifexist: {{../../Metadata|info=pagename}}
        |{{Optional2|{{../../Metadata|info=tab1}}}}{{Optional2|{{../../Metadata|info=tab2}}}}{{Optional2|{{../../Metadata|info=tab3}}}}
        |{{#ifexist: {{{{BASEPAGENAME}}|info=pagename}}
                      |{{Optional2|{{{{BASEPAGENAME}}|info=tab1}}}}{{Optional2|{{{{BASEPAGENAME}}|info=tab2}}}}{{Optional2|{{{{BASEPAGENAME}}|info=tab3}}}}   
                      |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=tab1}}|||{{Default2|{{{{BASEPAGENAME}}/Metadata|info=tab1}}}}}}{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=tab2}}|||{{Default2|{{{{BASEPAGENAME}}/Metadata|info=tab2}}}}}}{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=tab3}}|||{{Default2|{{{{BASEPAGENAME}}/Metadata|info=tab3}}}}}} }} }}{{Button_off25}}|{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
|-
|{{ #ifexist: {{../../Metadata|info=pagename}}
    |{{Cell_style|pagename= {{../../Metadata|info=pagename}}|status= {{../../Metadata|info=status}} }}
    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
          | {{Cell_style|pagename= {{{{BASEPAGENAME}}|info=pagename}}|status= {{{{BASEPAGENAME}}|info=status}}}}
            | {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|
                  | unexpected page for this template [[Category:unexpected]]
                  | {{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}
                            | {{Cell_style|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}} }}
                            | {{Cell_style|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}} }} }} }} }}
}}{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
|<!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{approved3|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}|editor= {{{{BASEPAGENAME}}/Metadata|info=A editor}}|editor2= {{{{BASEPAGENAME}}/Metadata|info=A editor2}}|editor3= {{{{BASEPAGENAME}}/Metadata|info=A editor3}}}}|''This is a '''draft article''', under development.  These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}}
|{{#ifeq:{{SUBPAGENAME}}|Draft
|<!--(Draft)-->{{Draft header}}
        |{{ #ifexist: {{../../Metadata|info=pagename}}
        |{{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                                    |<!--(signed article)-->{{Signed Article Header||group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3={{../../Metadata|info=cat3}}|abc={{../../Metadata|info=abc}}|status= {{../../Metadata|info=status}} }}
                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                              |<!--(Catalog sub-subpage)-->{{Catalog Header||group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3={{../../Metadata|info=cat3}}|abc={{../../Metadata|info=abc}}|status= {{../../Metadata|info=status}} }}                                   | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                                              |<!--(timeline sub-subpage)-->{{Timeline Header||group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3={{../../Metadata|info=cat3}}|abc={{../../Metadata|info=abc}}|status= {{../../Metadata|info=status}} }}
                                                            |}} }} }}
          |{{#ifeq:{{SUBPAGENAME}}|Unused
              | <!--Unused subpages-->
                  | <!--(All subpage articles)-->{{ {{SUBPAGENAME}} header|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}} }}      }} }} }} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq:{{NAMESPACE}}|Talk
| {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(Draft Talk page) always place the checklist here if the page exists--><small>''To learn how to fill out this checklist, please see [[CZ:The Article Checklist]]. To update this checklist edit the [http://en.citizendium.org/wiki?title=Template:{{BASEPAGENAMEE}}/Metadata&action=edit metadata template].''</small><br>{{Checklist2|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|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}} }}{{Unused subpages}}
| <!--not currently used-->''<small>This is a subpage specific talk page.  Use this clusters  {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|[[{{TALKSPACE}}:{{BASEPAGENAME}}/Draft|main talk page]]|[[{{TALKSPACE}}:{{BASEPAGENAME}}|main talk page]]}} for more general discussion about the whole cluster.</small>''}}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User subpage)
                        |{{#ifeq:{{SUBPAGENAME}}|Metadata
              |<!--(metadata page)-->
                              | <!--not currently used--> (User subpage talk and possibly other templates?) }} }} }}
| {{#ifeq:{{NAMESPACE}}|Talk
| <!--(Article Talk page) --><small>''To learn how to fill out this checklist, please see [[CZ:The Article Checklist]]. To update this checklist edit the [http://en.citizendium.org/wiki?title=Template:{{BASEPAGENAMEE}}/Metadata&action=edit metadata template].''</small><br>{{Checklist2|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|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}} }} {{Unused subpages}} }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
| (template talk page) }} }} }} }}
|}</div>{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
|<!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|__NOEDITSECTION__|{{Editintro}}{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }} }}{{Checklist4|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|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}} }}
|{{#ifeq:{{SUBPAGENAME}}|Draft
|<!--(Draft)-->{{Editintro}}{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}}}}
        |{{ #ifexist: {{../../Metadata|info=pagename}}
        |[[Category:Sub-subpages|{{../../Metadata|info=abc}}]] {{#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)-->
                                                            |}} }} }}
          |{{#ifeq:{{SUBPAGENAME}}|Unused
              | <!--Unused subpages-->{{Unused subpages}}
                  | <!--(All subpage articles)-->{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }} {{#ifeq:{{SUBPAGENAME}}|Approval|<!--(approval subpage)-->[[Category:Approval Subpage|{{{{BASEPAGENAME}}/Metadata|info=abc}}]]|[[Category:Subpages|{{{{BASEPAGENAME}}/Metadata|info=abc}}]]}} }} }} }} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq:{{NAMESPACE}}|Talk
| {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(Draft Talk page) -->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }} }}
| <!--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) -->{{#ifexist:{{BASEPAGENAME}}/Approval|
|'''[[Image:Pleasecreate.gif]] the "[http://en.citizendium.org/wiki?action=edit&preload=Template%3ASubpages_name&title={{BASEPAGENAMEE}}%2FApproval Approval page]".'''<br>Just click the blue ''approval page'' link and save the page.[[Category:No approval page]]}} {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0| |{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }} }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
| (template talk page) }} }} }} }} }}

Revision as of 15:15, 19 March 2008

The {{subpages}} template is designed to be used within article clusters and their related pages.
It will not function on Template pages.