Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 6: Line 6:
***Code to add the status bar on the article and all subpages.***
***Code to add the status bar on the article and all subpages.***


-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0
-->{{#ifeq:{{{status|}}}|0
           |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]]
           |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]]
           |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]]}}<nowiki>
           |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{{{status|}}}.png]]}}<nowiki>


</nowiki>{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}
</nowiki>{{ #ifeq: {{{current pagename}}} |{{{basepagename}}}
                             | {{button on2|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}}  
                             | {{button on2|status= {{{status|}}}}}  
                             | {{button off2}}}}{{!}}<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font><nowiki>
                             | {{button off2}}}}{{!}}<font size=1>[[{{{basepagename}}}|Main Article]]</font><nowiki>


</nowiki>{{#ifeq: {{{{BASEPAGENAME}}/Metadata|info=status}}|0
</nowiki>{{#ifeq: {{{status|}}}|0
                       |{{#ifeq:{{NAMESPACE}}|Talk
                       |{{#ifeq:{{NAMESPACE}}|Talk
                             |{{button on25|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} {{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|Talk]]</font>
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|Talk]]</font>}}
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>}}
                       |{{#ifeq:{{NAMESPACE}}|Talk
                       |{{#ifeq:{{NAMESPACE}}|Talk
                             |{{button on25|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} {{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|Talk]]</font>
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font>
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|Talk]]</font>}} }}<nowiki>
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{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>
</nowiki>{{ #ifexist: {{{basepagename}}}/Draft| {{ #ifeq: {{{current pagename}}} |{{{basepagename}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{basepagename}}}/Draft|Draft]]</font> }} }} }} }}<nowiki>


</nowiki>{{ #ifeq: {{Subpage list 2|button=1B}}|Default| {{Default2|{{Subpage list 2|button=1A}}}}
</nowiki>{{ #ifeq: {{Subpage list 2|button=1B}}|Default| {{Default2|{{Subpage list 2|button=1A}}}}
Line 108: Line 108:
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
|-  
|-  
|{{Cell_style|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
|{{Cell_style|pagename= {{{pagename|}}}|status= {{{status|}}}{{ #ifeq: {{{current pagename}}}|{{{full-pagename}}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{{basepagename}}}|{{{full-pagename}}}
  |<!--(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]]'''''.}}
  |<!--(Article)-->{{#ifeq:{{{status|}}}|0|<!--
 
***Next section is the approved template, it is only placed on approved article. ***
 
-->__NOEDITSECTION__
'''Article approved''' <small>{{#if:{{{editor}}}|{{#if:{{{editor2|}}}|{{#if:{{{editor3|}}}|by three editors ([[User:{{{editor}}}|first]], [[User:{{{editor2}}}|second]] and [[User:{{{editor3}}}|third]]; see the [[Talk:{{{ current pagename }}}/Draft|talk page]])|by two editors ([[User:{{{editor}}}|first]] and [[User:{{{editor2}}}|second]]; see the [[Talk:{{{ current pagename }}}/Draft|talk page]])}}|by [[User:{{{editor}}}|an editor]] (see the [[Talk:{{{ current pagename }}}/Draft|talk page]])}} |no known editors, please ask a constable to update this template}} of  {{#if:{{{group}}}|{{#if:{{{group2|}}}|{{#if:{{{group3|}}}|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]], [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]] and [[CZ:{{{group3}}} Workgroup|{{{group3}}} Workgroup]]|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]] and [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]]}}|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]]}}|an unknown workgroup, please ask a constable to update this template}} ''The Citizendium Foundation and Citizendium participants make no representations about the reliability of this article or its suitability for any purpose.''</small> <br/> <div align=center>'''Help improve this article further on [[{{PAGENAME}}/Draft|the draft page]]!'''</div> |''This is a '''draft article''', under development.  These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}}
  |{{#ifeq:{{SUBPAGENAME}}|Draft
  |{{#ifeq:{{SUBPAGENAME}}|Draft
  |<!--(Draft)-->{{Draft header}}
  |<!--(Draft)--> <small>''Most recent approved version: [[{{{basepagename}}}]]''</small>
          |{{ #ifexist: {{../../Metadata|info=pagename}}
          |{{ #ifexist: {{../../Metadata|info=pagename}}
          |{{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
          |{{#ifeq: {{{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}} }}
                                     |<!--(signed article)-->''An article by '''{{SUBPAGENAME}}''' relating to the topic of [[{{{pagename|}}}]].''
                      | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
<includeonly>
                                |<!--(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}}
[[Category:Signed Articles|{{{abc|}}}]]
                                                |<!--(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}} }}
[[Category:{{{group}}} Signed Articles|{{{abc|}}}]]
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Signed Articles|{{{abc|}}}]] |}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Signed Articles|{{{abc|}}}]] |}}
{{#ifeq:{{{status|}}}|0| [[Category:Approved Signed Articles|{{{abc}}}]]
[[Category:{{{group}}} Approved Signed Articles|{{{abc}}}]]
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Signed Articles|{{{abc|}}}]] |}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Signed Articles|{{{abc|}}}]] |}} }}</includeonly>
                      | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename}}}
                                |<!--(Catalog sub-subpage)-->''A catalog relating to the topic of [[{{../../Metadata|info=pagename}}]].''
<includeonly>
[[Category:Catalogs|{{{abc|}}}]]
[[Category:{{{group}}} Catalogs|{{{abc|}}}]]
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Catalogs|{{{abc|}}}]] |}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Catalogs|{{{abc|}}}]] |}}
{{#ifeq:{{{status|}}}|0| [[Category:Approved Catalogs|{{{abc}}}]]
[[Category:{{{group}}} Approved Catalogs|{{{abc}}}]]
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Catalogs|{{{abc|}}}]] |}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Catalogs|{{{abc|}}}]] |}} }}</includeonly>
                                  | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename}}}
                                                |<!--(timeline sub-subpage)-->''A timeline relating to the topic of [[{{{pagename|}}}]].''
<includeonly>
[[Category:Timelines|{{{abc|}}}]]
[[Category:{{{group}}} Timelines|{{{abc|}}}]]
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Timelines|{{{abc|}}}]] |}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Timelines|{{{abc|}}}]] |}}
{{#ifeq:{{{status|}}}|0| [[Category:Approved Timelines|{{{abc}}}]]
[[Category:{{{group}}} Approved Timelines|{{{abc}}}]]
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Timelines|{{{abc|}}}]] |}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Timelines|{{{abc|}}}]] |}} }}</includeonly>
                                                             |}} }} }}  
                                                             |}} }} }}  
            |{{#ifeq:{{SUBPAGENAME}}|Unused
            |{{#ifeq:{{SUBPAGENAME}}|Unused
               | <!--Unused subpages-->
               | <!--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}} }}      }} }} }} }}
                   | <!--(All subpage articles)-->{{ {{SUBPAGENAME}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }}      }} }} }} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq: {{{basepagename}}}/{{SUBPAGENAME}}|{{{current pagename}}}
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{SUBPAGENAME}}|Draft
  | {{#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}} }}
  | <!--(Draft Talk page) always place the checklist here if the page exists-->{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{by|}}} }}
 
  | <!--not currently used--> (All subpage articles Talk) }}
  | <!--not currently used--> (All subpage articles Talk) }}
  | {{#ifeq:{{NAMESPACE}}|User
  | {{#ifeq:{{NAMESPACE}}|User
Line 132: Line 166:
  | <!--not currently used--> (User subpage talk) }} }}  
  | <!--not currently used--> (User subpage talk) }} }}  
  | {{#ifeq:{{NAMESPACE}}|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}} }} }}
  | <!--(Article Talk page) -->{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{by|}}} }} }}
  | {{#ifeq:{{NAMESPACE}}|User
  | {{#ifeq:{{NAMESPACE}}|User
  | <!--not currently used--> (User page)  
  | <!--not currently used--> (User page)  
  | {{#ifeq:{{NAMESPACE}}|User talk
  | {{#ifeq:{{NAMESPACE}}|User talk
  |<!--not currently used--> (User talk page)
  |<!--not currently used--> (User talk page)
  |  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
  |  {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename}}}
                        |<!--(metadata page)-->
                        |<!--(metadata page)-->
                                         | {{#ifeq:{{NAMESPACE}}|Template
                                         | {{#ifeq:{{NAMESPACE}}|Template
                    |  
                    |  
    | (template talk page) }} }} }} }} }} }}
    | (template talk page) }} }} }} }} }} }}
|}</div>{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
|}</div>{{ #ifeq: {{{current pagename}}}|{{{full-pagename}}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{{basepagename}}}|{{{full-pagename}}}
  |<!--(Article)-->{{#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}} }} }}{{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}} }}  
  |<!--(Article)-->{{#ifeq:{{{status|}}}|0||{{#if:{{{ToA editor| }}}|<!--
 
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section.***
 
-->{{Checklist66|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cluster= {{{cluster|}}}|article url= {{{article url|}}}|subpage url= {{{subpage url|}}}|now= {{{now|}}}|date= {{{date|}}}|ToA editor= {{{ToA editor|}}}|ToA editor2= {{{ToA editor2|}}}|ToA editor3= {{{ToA editor3|}}} }} }} }}{{#switch: {{{status|}}}
| 0 = [[Category:Approved Articles|{{{abc| }}}]] [[Category:CZ Live|{{{abc| }}}]]
                              {{#if: {{{group|}}}|
                                [[Category:{{{group|}}} Approved|{{{abc| }}}]]}}
                              {{#if: {{{group2|}}}|
                                [[Category:{{{group2|}}} Approved|{{{abc| }}}]]}}
                              {{#if: {{{group3|}}}|
                                [[Category:{{{group3|}}} Approved|{{{abc| }}}]]}}
| 1 = [[Category:CZ Live|{{{abc| }}}]]
| 2 = [[Category:CZ Live|{{{abc| }}}]]
| 3 = [[Category:CZ Live|{{{abc| }}}]]
| 4 =  
|
}}
{{#if: {{{group|}}}|[[Category:{{{group|}}} Workgroup|{{{abc| }}}]]}}
{{#if: {{{group2|}}}|[[Category:{{{group2|}}} Workgroup|{{{abc| }}}]]}}
{{#if: {{{group3|}}}|[[Category:{{{group3|}}} Workgroup|{{{abc| }}}]]}}
  |{{#ifeq:{{SUBPAGENAME}}|Draft
  |{{#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}}}}
  |<!--(Draft)--> {{#if:{{{ToA editor| }}}|<!--
 
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section.***
 
-->{{Checklist66|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cluster= {{{cluster|}}}|article url= {{{article url|}}}|subpage url= {{{subpage url|}}}|now= {{{now|}}}|date= {{{date|}}}|ToA editor= {{{ToA editor|}}}|ToA editor2= {{{ToA editor2|}}}|ToA editor3= {{{ToA editor3|}}}}} }}
          |{{ #ifexist: {{../../Metadata|info=pagename}}
          |{{ #ifexist: {{../../Metadata|info=pagename}}
          |[[Category:Sub-subpages|{{../../Metadata|info=abc}}]] {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
          |[[Category:Sub-subpages|{{{abc|}}}]] {{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename}}}
                                     |<!--(signed article)-->
                                     |<!--(signed article)-->
                      | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                      | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename}}}
                                |<!--(Catalog sub-subpage)-->                                   | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                                |<!--(Catalog sub-subpage)-->                                   | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename}}}
                                                |<!--(timeline sub-subpage)-->
                                                |<!--(timeline sub-subpage)-->
                                                             |}} }} }}  
                                                             |}} }} }}  
            |{{#ifeq:{{SUBPAGENAME}}|Unused
            |{{#ifeq:{{SUBPAGENAME}}|Unused
               | <!--Unused subpages-->{{Unused subpages}}
               | <!--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}}]]}} }} }} }} }}
                   | <!--(All subpage articles)--> {{#if:{{{ToA editor| }}}|<!--
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
 
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section.***
 
-->{{Checklist66|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cluster= {{{cluster|}}}|article url= {{{article url|}}}|subpage url= {{{subpage url|}}}|now= {{{now|}}}|date= {{{date|}}}|ToA editor= {{{ToA editor|}}}|ToA editor2= {{{ToA editor2|}}}|ToA editor3= {{{ToA editor3|}}} }} }}     {{#ifeq:{{SUBPAGENAME}}|Approval|<!--(approval subpage)-->|[[Category:Subpages|{{{abc|}}}]]}} }} }} }} }}
| {{#ifeq: {{{basepagename}}}/{{SUBPAGENAME}}|{{{current pagename}}}
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{SUBPAGENAME}}|Draft
  | {{#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}} }} }}
  | <!--(Draft Talk page) -->{{#ifeq:{{{status|}}}|0|{{#if:{{{ToA editor| }}}|<!--
 
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section.***
 
-->{{Checklist66|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cluster= {{{cluster|}}}|article url= {{{article url|}}}|subpage url= {{{subpage url|}}}|now= {{{now|}}}|date= {{{date|}}}|ToA editor= {{{ToA editor|}}}|ToA editor2= {{{ToA editor2|}}}|ToA editor3= {{{ToA editor3|}}} }} }} }}
  | <!--not currently used--> (All subpage articles Talk) }}
  | <!--not currently used--> (All subpage articles Talk) }}
  | {{#ifeq:{{NAMESPACE}}|User
  | {{#ifeq:{{NAMESPACE}}|User
Line 166: Line 232:
  | <!--not currently used--> (User subpage talk) }} }}  
  | <!--not currently used--> (User subpage talk) }} }}  
  | {{#ifeq:{{NAMESPACE}}|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}} }} }}
  | <!--(Article Talk page) -->{{#ifeq:{{{status|}}}|0| |{{#if:{{{ToA editor| }}}|<!--
 
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section.***
 
-->{{Checklist66|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cluster= {{{cluster|}}}|article url= {{{article url|}}}|subpage url= {{{subpage url|}}}|now= {{{now|}}}|date= {{{date|}}}|ToA editor= {{{ToA editor|}}}|ToA editor2= {{{ToA editor2|}}}|ToA editor3= {{{ToA editor3|}}} }} }} }}
  | {{#ifeq:{{NAMESPACE}}|User
  | {{#ifeq:{{NAMESPACE}}|User
  | <!--not currently used--> (User page)  
  | <!--not currently used--> (User page)  
  | {{#ifeq:{{NAMESPACE}}|User talk
  | {{#ifeq:{{NAMESPACE}}|User talk
  |<!--not currently used--> (User talk page)
  |<!--not currently used--> (User talk page)
  |  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
  |  {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename}}}
                        |<!--(metadata page)-->{{Metadata}}
                        |<!--(metadata page)-->{{Metadata}}
                                         | {{#ifeq:{{NAMESPACE}}|Template
                                         | {{#ifeq:{{NAMESPACE}}|Template

Revision as of 17:02, 1 October 2007

	 	                     |  }} 
	  	         |Template:Subpage style header }} }} }}

| }}

|}This is a central location for all information relating to the

Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata cluster. It is critical to keep this page updated since the {{subpages}} and related templates use this information for the placement of categories and header templates in the cluster.

General article properties

pagename =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

variant =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

Required for checklist

abc =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

cat_check =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

status =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

underlinked =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

cleanup =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

by =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

cat1 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

cat2 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

cat3 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

Required for the {{ToApprove}} template

article url =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

subpage url =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

cluster =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

now =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

ToA editor =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

ToA editor2 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

ToA editor3 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

ToA editor4 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

date =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

Required for the {{Approved}} template

The status parameter in the checklist (see above) of approved versions must be set to 0 (zero).
A editor =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

A editor2 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata

A editor3 =
Statusbar.png
[[{{{basepagename}}}|Main Article]]
[[Talk:|Talk]] }} }} }} Template:Default2Template:Default2Template:Default2
 
pagename= |status=

Template loop detected: Template:Metadata</includeonly>

Usage

See CZ:Using the Subpages template for information on how to use this template. See CZ:Subpages for an introduction to the concept and our use of subpages.

Examples of this templates use can be found at the Test article cluster (unapproved) and the Biology cluster (approved).