Template:Subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Larry Sanger
No edit summary
imported>Chris Day
(make into a subpages9 equivalent)
Line 1: Line 1:
<noinclude>{{Technical Help}}</noinclude>
<includeonly><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"<nowiki>


The following code is the subpages template that includes the subroutines to choose the default and optional buttons
</nowiki>{{ #ifexist: {{../../Metadata|info=pagename}}
    |{{button off2}}{{!}}<font size=1>[[{{../../Metadata|info=pagename}}|Main Article]]</font><nowiki>


-->{|align=right width="110px" cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
</nowiki>{{#ifeq: {{../../Metadata|info=status}}|0
|align="top" align="right"|
        |{{button off25}}{{!}}<font size=1>[[Talk:{{../../Metadata|info=pagename}}/Draft|Talk]]</font>
{|width="100px" border="0" cellpadding="1" cellspacing="3" style="background:#B8DAE5"
        |{{button off25}}{{!}}<font size=1>[[Talk:{{../../Metadata|info=pagename}}|Talk]]</font>}}<nowiki>
|align=center|<font size=1>'''Cluster'''</font>
<!--


***The following code determine if the article name is longer than twenty characters. If so, main article is used rather than the actual name. This means huge names are not crunched into the navigation template. At present the the expr functions to determine string length are not functional in CZ.***
</nowiki>{{ #ifexist: {{../../Metadata|info=pagename}}/Draft|{{button off2}}{{!}}<font size=1>[[{{../../Metadata|info=pagename}}/Draft|Draft]]</font>}}


-->{{ #ifeq: {{#expr: {{#len:{{BASEPAGENAME}}}} > 20 }} | 1 | '''[[{{BASEPAGENAME}}|Main Article]]''' | '''[[{{BASEPAGENAME}}]]''' }}<!--
    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
          | {{button off2}}{{!}}<font size=1>[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]</font><nowiki>


***The next piece of code adds a Link to the draft page if it exists***
</nowiki>{{#ifeq: {{{{BASEPAGENAME}}|info=status}}|0
        |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}|info=pagename}}/Draft|Talk]]</font>
        |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}|info=pagename}}|Talk]]</font>}}<nowiki>


-->{{#ifexist:{{BASEPAGENAME}}/Draft|<br><font size=1>''[[{{BASEPAGENAME}}/Draft|Draft Page]]''</font>}}<!--
</nowiki>{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}/Draft|{{button off2}}{{!}}<font size=1>[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft]]</font>}}
            | {{#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>


***The following code identifies the subpages in the Template:Subpage list that are tagged as Default. It adds those buttons in the numerical sequence regardless of whether the subpage exists or not.
</nowiki>{{#ifeq: {{{{BASEPAGENAME}}/Metadata|info=status}}|0
                      |{{#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>


The subpage list row template is used to create the table cell for each specific button. Also, if the current page is the subpage, it uses the "button on" style template, otherwise the "button off" style template is used.***
</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>


-->{{ #ifeq: {{Subpage list|button=1C}}|Default|{{subpage_list_row|{{Subpage list|button=1A}}|{{Subpage list|button=1B}} }} }}<nowiki>
</nowiki>{{Default button 3}}<nowiki>


</nowiki>{{ #ifeq: {{Subpage list|button=2C}}|Default|{{subpage_list_row|{{Subpage list|button=2A}}|{{Subpage list|button=2B}} }} }}<nowiki>
</nowiki>{{Optional button 3}}<nowiki>


</nowiki>{{ #ifeq: {{Subpage list|button=3C}}|Default|{{subpage_list_row|{{Subpage list|button=3A}}|{{Subpage list|button=3B}} }} }}<nowiki>
</nowiki>{{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
                  | {{ #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:{{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-->{{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}} }}
| <!--not currently used--> (All subpage articles Talk) }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User subpage)
| <!--not currently used--> (User subpage talk) }} }}
| {{#ifeq:{{NAMESPACE}}|Talk
| <!--(Article Talk page) -->{{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}} }} }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
|  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
                        |<!--(metadata page)-->
                                        | {{#ifeq:{{NAMESPACE}}|Template
                    |
    | (template talk page) }} }} }} }} }} }}
|}</div>{{ #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}}}}|{{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)-->{{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: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--> (All subpage articles Talk) }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User subpage)
| <!--not currently used--> (User subpage talk) }} }}
| {{#ifeq:{{NAMESPACE}}|Talk
| <!--(Article 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}} }} }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
|  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
                        |<!--(metadata page)-->{{Metadata}}
                                        | {{#ifeq:{{NAMESPACE}}|Template
                    | {{Metadata}}
    | (template talk page) }} }} }} }} }} }} }}</includeonly><noinclude>
{{Technical Help}}
===Usage===


</nowiki>{{ #ifeq: {{Subpage list|button=4C}}|Default|{{subpage_list_row|{{Subpage list|button=4A}}|{{Subpage list|button=4B}} }} }}<nowiki>
See [[CZ:Using the Subpages template]] for information on how to use this template.


</nowiki>{{ #ifeq: {{Subpage list|button=5C}}|Default|{{subpage_list_row|{{Subpage list|button=5A}}|{{Subpage list|button=5B}} }} }}<nowiki>
Examples of this template's use can be found at the [[Chiropractic]] cluster (approved) and the [[New York City]] cluster (not approved).


</nowiki>{{ #ifeq: {{Subpage list|button=6C}}|Default|{{subpage_list_row|{{Subpage list|button=6A}}|{{Subpage list|button=6B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=7C}}|Default|{{subpage_list_row|{{Subpage list|button=7A}}|{{Subpage list|button=7B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=8C}}|Default|{{subpage_list_row|{{Subpage list|button=8A}}|{{Subpage list|button=8B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=9C}}|Default|{{subpage_list_row|{{Subpage list|button=9A}}|{{Subpage list|button=9B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=10C}}|Default|{{subpage_list_row|{{Subpage list|button=10A}}|{{Subpage list|button=10B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=11C}}|Default|{{subpage_list_row|{{Subpage list|button=11A}}|{{Subpage list|button=11B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=12C}}|Default|{{subpage_list_row|{{Subpage list|button=12A}}|{{Subpage list|button=12B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=13C}}|Default|{{subpage_list_row|{{Subpage list|button=13A}}|{{Subpage list|button=13B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=14C}}|Default|{{subpage_list_row|{{Subpage list|button=14N}}|{{Subpage list|button=14B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=15C}}|Default|{{subpage_list_row|{{Subpage list|button=15A}}|{{Subpage list|button=15B}} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=16C}}|Default|{{subpage_list_row|{{Subpage list|button=16A}}|{{Subpage list|button=16B}} }} }}<!--
***The following code identifies the subpages in the Template:Subpage list that are tagged as optional. If the subpage exists it adds the button after the default buttons in the numerical sequence defined in the subpage list template.
Again, the subpage list row template is used to create the table cell for each specific button. Also, if the current page is the subpage, it uses the "button on" style template, otherwise the "button off" style template is used.***
-->{{ #ifeq: {{Subpage list|button=1C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{subpage_list_row|{{Subpage list|button=1A}}|{{Subpage list|button=1B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=2C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=2A}}|{{subpage_list_row|{{Subpage list|button=2A}}|{{Subpage list|button=2B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=3C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=3A}}|{{subpage_list_row|{{Subpage list|button=3A}}|{{Subpage list|button=3B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=4C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=4A}}|{{subpage_list_row|{{Subpage list|button=4A}}|{{Subpage list|button=4B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=5C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=5A}}|{{subpage_list_row|{{Subpage list|button=5A}}|{{Subpage list|button=5B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=6C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=6A}}|{{subpage_list_row|{{Subpage list|button=6A}}|{{Subpage list|button=6B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=7C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=7A}}|{{subpage_list_row|{{Subpage list|button=7A}}|{{Subpage list|button=7B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=8C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=8A}}|{{subpage_list_row|{{Subpage list|button=8A}}|{{Subpage list|button=8B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=9C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=9A}}|{{subpage_list_row|{{Subpage list|button=9A}}|{{Subpage list|button=9B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=10C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=10A}}|{{subpage_list_row|{{Subpage list|button=10A}}|{{Subpage list|button=10B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=11C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=11A}}|{{subpage_list_row|{{Subpage list|button=11A}}|{{Subpage list|button=11B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=12C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=12A}}|{{subpage_list_row|{{Subpage list|button=12A}}|{{Subpage list|button=12B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=13C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=13A}}|{{subpage_list_row|{{Subpage list|button=13A}}|{{Subpage list|button=13B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=14C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=14A}}|{{subpage_list_row|{{Subpage list|button=14N}}|{{Subpage list|button=14B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=15C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=15A}}|{{subpage_list_row|{{Subpage list|button=15A}}|{{Subpage list|button=15B}} }} }} }}<nowiki>
</nowiki>{{ #ifeq: {{Subpage list|button=16C}}|Optional|{{#ifexist:{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{subpage_list_row|{{Subpage list|button=16A}}|{{Subpage list|button=16B}} }} }} }}
|-
|<center><font size=1>''[[CZ:Subpage Pilot|About Clusters]]''</font></center>
|-
|<center><font color="#333333" size=1>[[{{BASEPAGENAME}}/Unused|Unused subpages]]</font></center>
|}
|}<!--
***The following code is to place the correct header template above each article subpage***
-->{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{ {{Subpage list|button=1A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=2A}}|{{ {{Subpage list|button=2A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=3A}}|{{ {{Subpage list|button=3A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=4A}}|{{ {{Subpage list|button=4A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=5A}}|{{ {{Subpage list|button=5A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=6A}}|{{ {{Subpage list|button=6A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=7A}}|{{ {{Subpage list|button=7A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=8A}}|{{ {{Subpage list|button=8A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=9A}}|{{ {{Subpage list|button=9A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=10A}}|{{ {{Subpage list|button=10A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=11A}}|{{ {{Subpage list|button=11A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=12A}}|{{ {{Subpage list|button=12A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=13A}}|{{ {{Subpage list|button=13A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=14A}}|{{ {{Subpage list|button=14A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=15A}}|{{ {{Subpage list|button=15A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{ {{Subpage list|button=16A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }} }}<noinclude>
[[Biology/Draft|Here's a test page]] -- see the upper right
:'''''For discussion about Subpages, and other versions of subpages templates with examples, also see http://forum.citizendium.org/index.php/topic,1059.0.html'''''
<BR><BR>
== Placement ==
Use on the top of pages as an index mechanism for subpages.
== Usage ==
<br><br><br><br>
{|border="0" colspan="3" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff; class="wikitable";"
|<pre>{{Subpages}}</pre>
|{{Subpages}}
|
{|class="wikitable"
|{{Subpages}}
|}
|-
!Wikitext!!Appearance!!Anatomical
|}
==Parameters==
None
==Credits==
* [[User:Chris Day|Chris Day]]
* [[User:Stephen Ewen|Stephen Ewen]]
* [[User:Larry Sanger|Larry Sanger]]
</noinclude>
</noinclude>

Revision as of 17:19, 13 September 2007


Citizendium Technical Help
How to edit an article | Searching | Start article with subpages
The Article Checklist | Subpage template

|width=10% align=center style="background:#F5F5F5"|  |}

Usage

See CZ:Using the Subpages template for information on how to use this template.

Examples of this template's use can be found at the Chiropractic cluster (approved) and the New York City cluster (not approved).