Template:Subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
mNo edit summary
 
(117 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;">
<includeonly><!--
{|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"
|-
|<nowiki>


</nowiki>{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
***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.***
    |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0
          |width=10px cellpadding="0" style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[Image:StatusbarT0.png]]
          |width=2px cellpadding="0" valign=top align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #C4D2DF; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[image:StatusbarT{{{{BASEPAGENAME}}/Metadata|info=status}}.png]]}}
    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
          |{{#ifeq:{{{{BASEPAGENAME}}|info=status}}|0
                |width=10px cellpadding="0" style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #C4D2DF; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[Image:StatusbarT0.png]]
                |width=2px cellpadding="0" valign=top align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[image:StatusbarT{{{{BASEPAGENAME}}|info=status}}.png]]}}
            |{{#ifexist: {{../../Metadata|info=pagename}}
                |{{#ifeq:{{../../Metadata|info=status}}|0
                      |width=10px cellpadding="0" style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #C4D2DF; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[Image:StatusbarT0.png]]
                      |width=2px cellpadding="0" valign=top align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[image:StatusbarT{{../../Metadata|info=status}}.png]] }} }} }} }}<nowiki>


</nowiki>{{ #ifexist: {{../../Metadata|info=pagename}}
-->{{move}}{{Every page}}{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
    |{{button off2}}{{!}}<font size=1>[[{{../../Metadata|info=pagename}}|Main Article]]</font><nowiki>
        |{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
 
                      |<!--(Article)-->
</nowiki>{{#ifeq: {{../../Metadata|info=status}}|0
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
        |{{button off25}}{{!}}<font size=1>[[Talk:{{../../Metadata|info=pagename}}/Draft|Talk]]</font>
                        |<!--(all subsubpages--> {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
        |{{button off25}}{{!}}<font size=1>[[Talk:{{../../Metadata|info=pagename}}|Talk]]</font>}}<nowiki>
                                                    |<!--(signed article)-->
 
                                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
</nowiki>{{ #ifexist: {{../../Metadata|info=pagename}}/Draft|{{button off2}}{{!}}<font size=1>[[{{../../Metadata|info=pagename}}/Draft|Draft]]</font>}}
                                              |<!--(Catalog sub-subpage)-->
 
                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Tutorials|{{BASEPAGENAME}}
    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
                                                              |<!--(tutorial sub-subpage)-->
          | {{button off2}}{{!}}<font size=1>[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]</font><nowiki>
                                                                            | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
 
                                                                    |<!--(timeline sub-subpage)-->
</nowiki>{{#ifeq: {{{{BASEPAGENAME}}|info=status}}|0
                                                                                  | {{#ifeq: {{../../Metadata|info=pagename}}/Recipes|{{BASEPAGENAME}}
        |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}|info=pagename}}/Draft|Talk]]</font>
                                                                                        |<!--(Code sub-subpage)-->
        |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}|info=pagename}}|Talk]]</font>}}<nowiki>
                                                                                        | {{#ifeq: {{../../Metadata|info=pagename}}/Code|{{BASEPAGENAME}}
 
                                                                                |<!--(recipe sub-subpage)-->
</nowiki>{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}/Draft|{{button off2}}{{!}}<font size=1>[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft]]</font>}}
                                                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Related Articles|{{BASEPAGENAME}}
            | {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|
                                                                                      |<!--(Related Articles sub-subpage)-->
                  |{{button off25}}{{!}}<font size=1>[[Template:{{BASEPAGENAME}}/Metadata|Exist?]]</font>
                                                                                                    | {{#ifeq: {{../../Metadata|info=pagename}}/Program|{{BASEPAGENAME}}
                  | {{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}
                                                                                              |<!--(Program sub-subpage)-->
                            | {{button on2|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}}  
                                                                                                            |<span style="font-style:italic;">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.</span>[[Category:Unexpected subsubpage]]}} }} }} }} }} }} }} }}
                            | {{button off2}} }}{{!}}<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font><nowiki>
                          |}} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq:{{NAMESPACE}}|Talk
|{{#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-->}}
                          |<!--Talk subsubpage--><span style="text-align:center; font-weight:bold; font-style:italic;">The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br/><span style="color:red">However, it cannot function on sub-subpage talk pages.</span>.</span>''Please continue discussion at [[../../]], or return to the [[{{PAGENAME}}|{{SUBPAGENAME}}]] subsubpage.''}}
                |{{#ifeq:{{NAMESPACE}}|User
                      | <!--(User subpage) --><span style="text-align:center; font-weight:bold; font-style:italic;">This is a draft in {{NAMESPACE}} space, not yet ready to go to Citizendium's main space, and not meant to be cited. The {{tl|subpages}} template is designed to be used within article clusters and their related pages.<br /><span style="color:red">It will not function on {{NAMESPACE}} pages</span>.</span>[[Category:Misplaced subpage]]<br />
                        |{{#ifeq:{{SUBPAGENAME}}|Metadata
              | {{#ifeq:{{NAMESPACE}}|Template talk
                                      |<!--(talk metadata page)--><span style="font-style:italic;">Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[Template:{{BASEPAGENAME}}/Metadata]] page.</span>
                                      |<!--(metadata page)--> }}
                              |<!--(User subpage talk)--><span style="text-align:center; font-weight:bold; font-style:italic;">The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br /><span style="color:red">It will not function on {{NAMESPACE}} pages</span>.</span>[[Category:Misplaced subpage]] <br/>}} }} }}
| {{#ifeq:{{NAMESPACE}}|Talk
| <!--(Article Talk page) -->
|<span style="text-align:center; font-weight:bold; font-style:italic;">The {{tl|subpages}} template is designed to be used within article clusters and their related pages. <br/><span style="color:red">It will not function on {{NAMESPACE}} pages</span>.</span>[[Category:Misplaced subpage]] <br/> }} }} }}<!--


</nowiki>{{#ifeq: {{{{BASEPAGENAME}}/Metadata|info=status}}|0
***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. If there is no metadata AND a 'definition only' page the Lemma template is used on the article page. ***
                      |{{#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>
-->{{#ifeq:{{SUBPAGENAME}}|Definition
|<!--Adds category for the stand alone subpages in this case definitions-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
    |
    |{{#ifexist:{{BASEPAGENAME}} (disambiguation)
          |<!--a definition exists at a term that has a disambiguation page but no metadata. A cluster might exist here in the future since it would have priority over other similar terms-->[[Category:Dabdef Subpages]][[Category:All Content]]
          |{{#ifexist:{{../../Metadata|info=pagename}}
                |<!--subdefinition page often used for catalogs-->[[Category:Subdefinition]][[Category:All Content]]
                |{{#ifexist:{{../../../Metadata|info=pagename}}
                      |<!--Sub-subdefinition page often used for catalogs-->[[Category:Sub-Subdefinition]][[Category:All Content]]
                      |<!--Lemma template is used to add a banner at the top of pages in a cluster without Metadata. Gives a link to create metadata as well as a summary R template-like data set at the top of the page-->{{Lemma}} }}| }} }} }}
|{{#ifeq:{{SUBPAGENAME}}|Related Articles
      |<!--Adds category for the stand alone subpages in this case related articles-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
          |
          |{{Lemma}} }}
      |{{#ifeq:{{SUBPAGENAME}}|Masterlist
            |<!--Adds category for the stand alone subpages in this case a masterlist subsubpage related articles-->{{#ifexist:{{../../Metadata|info=pagename}}
                  |
                  |[[Category:Masterlist Only]][[Category:All Content]] }}
            |{{ {{#ifexist:Template:{{BASEPAGENAME}}/Metadata
                  |{{#ifeq:{{localurl:{{BASEPAGENAME}}}}|{{localurl:{{{{BASEPAGENAME}}/Metadata|info=pagename}}}}
                        |{{#ifexist:{{BASEPAGENAME}}
                              |Editor error catch
                              |Orphan subpage}}
                        |{{#ifexist:{{BASEPAGENAME}}
                              |metadata error catch
                              |x0}} }}
                  |{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
                        |{{#ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
                              |{{#ifexist:{{BASEPAGENAME}}/Definition
                                  |Lemma
                                  |no metadata template}}
                              |{{ #ifexist: {{../../Metadata|info=pagename}}
                            |x0
                      |{{#ifexist:{{BASEPAGENAME}}/Definition
                                          |Lemma
                                          |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>{{Default button 3}}<nowiki>
***The following section specifically establishes parameters for (parses) the subpage template on all pages except subsubpages and their talk pages.***
 
</nowiki>{{Optional button 3}}<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===


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.
-->{{{{#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}} |subgroup={{{{BASEPAGENAME}}/Metadata|info=sub1}} |subgroup2={{{{BASEPAGENAME}}/Metadata|info=sub2}} |subgroup3={{{{BASEPAGENAME}}/Metadata|info=sub3}} |approved color={{Subpage list|button=button on A}}|not approved color={{Subpage list|button=button on NA}}|button off color={{Subpage list|button=button off}} |background={{Subpage list|button=background}}| tab1={{{{BASEPAGENAME}}/Metadata|info=tab1}}| tab2={{{{BASEPAGENAME}}/Metadata|info=tab2}}| tab3={{{{BASEPAGENAME}}/Metadata|info=tab3}}|speedydelete={{{{BASEPAGENAME}}/Metadata|info=speedydelete}} }}<!--


Examples of this templates use can be found at the [[Onslow Beach]] cluster (unapproved) and the [[Biology]] cluster (approved).
***The following section specifically functions on subsubpages. For technical reasons this template is not fully functional on the subsubpage talk pages.***


</noinclude>
-->{{{{ #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={{Subpage list|button=background}}|approved color={{Subpage list|button=button on A}}|not approved color={{Subpage list|button=button on NA}}|button off color={{Subpage list|button=button off}} | tab1={{../../Metadata|info=tab1}}| tab2={{../../Metadata|info=tab2}}| tab3={{../../Metadata|info=tab3}}|speedydelete={{../../Metadata|info=speedydelete}} }}{{Every page below}}</includeonly><noinclude>{{TlDoc}}</noinclude>

Latest revision as of 13:41, 21 January 2023

This documentation is transcluded from Template:Subpages/doc (edit | history)

Documentation of all templates called by the {{Subpages}} template

List of templates used by the subpages template

Core function

{{Subpages}}
Specific task for this template include:
  1. 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.
  2. 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. If there is no metadata AND a 'definition only' page the Lemma template is used on the article page.
  3. Establishes parameters for the ‘subpage style’ template on all pages except subsubpages and their talk pages.
  4. Establishes parameters for the ‘subpage style’ template on subsubpages.
The following categories are specifically placed by this template when appropriate:
{{Subpage style}}
  • Adds the status bar on the article and all subpages.
  • Adds the MAIN ARTICLE tab
  • Adds the TALK tab and ensures it always links to the correct talk page from all the different cluster pages. Also indicates if on a talk page or not.
  • Adds the Definition tab if there is no definition (gives red link with a preload to encourage the creation of a definition)
  • Adds the DRAFT tab but only if the article is approved.
  • Adds the DEFAULT subpage tabs.
  • Adds the OPTIONAL subpage tabs if the page exists.
  • These final categories add the All Content and Workgroup Content categories as well as the Workgroup and subgroup tags categories.
{{Button off2}}
{{Button on2}}
{{Optional3}}
{{Button off2}}
{{Button on2}}
{{Default3}}
{{Button off2}}
{{Button on2}}
{{Subpage list}}
{{move}} Used to provide information about a cluster move. Becomes active after a metadata page is moved to a new home.
{{Every page}}
{{Every page below}}
{{Lemma}} Used to add a banner at the top of an article page that has no metadata but is associated with a 'Definition Only' subpage. Gives a link to create metadata as well as a summary 'R template'-like data set that transcludes the definition.
{{Def_only}} Used to add a banner at the top of a 'Definition Only' subpage as well as a 'Related Articles Only' subpage. Gives a link to create metadata as well as a summary 'R template'-like data set at the top of the page.

Error related

{{Editor error catch}} In place to identify a discrepancy between the approval status of the article and the placement of approving editors. Useful reminder for constables who forget to change the status during approval.
{{No metadata template}} Placed on subpages that have an associated article but no metadata page.
{{metadata error catch}} Placed on pages in which the metadata pages pagename field has no known article despite the fact that the basepagename does have an article. Possibly due to an error in the pagename or if the basepagename leads to a redirect there was an error while moving the article.
{{Orphan subpage}} Placed on subpages with no article or metadata page. Also on subpages or templates with no article on the basepagename or the pagename from the metadata page.
{{Metadata to finish}} Create a todo list on the talk page with an aim to get the metadata templates fully filled out with respect to the status, variant, abc and workgroup. Also used to remind authors to add the definition if needed. Uses the {{Talk Checklist}} to check for the absense of information and place the template. The To-Do list will disappear when all four and the definition are completed.
Category:Metadata to finish
Category:Misplaced subpage
Category:Unexpected subsubpage
Category:Incompatible editor status
Category:No metadata template
Category:Incorrect metadata pagename
Category:Articles_with_Ambiguous_Status
Category: No talk page
Category: Orphan subpage

Color

These four colours are coded for by fields in the {{subpage list}} template. These colors are all variable to allow changes that might be needed with the skin upgrade.

Colors used in the subpages template
Button type field name designated color example of the color selected
For approved article button on A C4DFC4
For unapproved article button on NA C4D2DF
For a button that is not selected button off CCCCCC
For template background background f3f3f3

{{Subpages}} template hierarchy

  • Bulleted templates indicate those that can be used for content. Content can be added to specific pages in a given cluster or added to various combinations of pages. See the usage chart below to determine which template is most suitable.
{{Subpages}} Does preliminary error check and places appropriate messages on page if there is a problem such as incorrect pagename or no metadata template.

Places content above subpage template

{{Subpages}}
  • {{Every page}} Currently empty
{{Subpage style}}
  • {{Every page below}} Currently empty

Places content inside subpage template

{{Subpage style}}
{{Subsubpages IN}}
  • {{Metadata header}} Currently empty
  • {{All Subpage Talk In}} Currently empty
{{To Approve Inner}} This template controls whether the draft page is populated or not. It is only populated when the article is approved. Likewise the article talk page is only populated when the article is unapproved.
{{Checklist22 Unused}}
  • {{Checklist22}} Adds checklist to the talk page; reads the info from the metadata template. Also adds the maintenance and definition categories to the talk page.
{{Unused subpage list}} Adds a list of subpages that have not been used in any particular cluster.
{{article approved IN}}
  • {{Article Specific In}} Currently empty
  • {{Approved Article In}} Contains the approved article disclaimer and brief details with respect to the approving editor/s.
{{draft approved IN}}
  • {{All Subpages In}} Currently empty
  • {{Draft header}} Containers header text.
  • {{TOAPPROVE stuff In}} Currently empty
{{subpages not draft IN}}
  • {{All Subpages In}} Currently empty
  • {{Approval header}} Containers header text.
{{subpage approved IN}}
  • {{All Subpage Content In}} Currently empty
  • {{Tab header}} Generic header for any article specific subpage designated by the fields tab1, tab2 or tab3 in the metadata.
  • {{ {{{subpagename|}}} header}}
  • {{TOAPPROVE stuff In}} Currently empty
{{article not approved IN}}
  • {{Article Specific In}} Currently empty
  • {{Not Approved Article In}} Adds the following text. "This is a draft article, under development. These unapproved articles are subject to a disclaimer."
  • {{TOAPPROVE stuff In}} Currently empty

Places content below template

{{Subpage style}}
{{Subsubpages}}
  • {{metadata2}} Allows the metadata to be viewed without entering edit mode. Also add the Please create the "Talk page" link if talk page is absent.
  • {{All Subpage Talk}} Currently empty
{{To Approve Info}} This template controls whether the draft page is populated or not. It is only populated when the article is approved. Likewise the article talk page is only populated when the article is unapproved.
{{Talk Always}} Added to the approved article talk page. Adds some of the subpage categories so they are listed by article name only.
{{Talk Checklist Not Approved Article}}
  • {{Talk Always}} Added to the regular (not approved) article talk page. Adds some of the subpage categories so they are listed by article name only.
  • {{Talk Checklist}} Controls the addition of the "To Do" list on the talk page and adds the "no approval page" reminder if needed.
  • {{Metadata to finish}} adds content to the "To Do" list for finishing the checklist and/or the definition. Adds categories for def needed and metadata to finish as appropriate.
  • {{Not Approved Article Talk}} currently empty
{{Talk_Checklist_Approved_Article}}
  • {{Talk Checklist}} See above.
  • {{Approved Article Talk}} Currently empty
{{article approved}}
  • {{Article Specific}} This template adds the CZ live category to the article page. It also adds Approved article workgroup and subgroup categories when article is approved. If the talk page is absent it gives a hyperlink and requests Please create the "Talk page". If a recipe subpage exists it will add a comment at the top of the page. See below:
See the tab above for Recipes of Subpages.
{{draft approved}}
  • {{All Subpages}} Currently empty
  • {{Draft footer}} Adds the workgroup and subgroup category links at the top of the draft page.
  • {{TOAPPROVE stuff}} Contains the To Approve template.
{{subpages not draft}}
  • {{All Subpages}} Currently empty
  • {{Approval footer}} If the talk page is absent it gives a hyperlink and requests Please create the "Talk page". Added following [[Category:Approval Subpage|{{{abc|}}}]]
{{subpage approved}}
  • {{All Subpage Content}} [[Category:Subpages|{{{abc|}}}]] and the categories for the workgroup specific extra/optional subpages.
  • {{Tab footer}} Generic footer for any article specific subpage designated by the fields tab1, tab2 or tab3 in the metadata. This template adds categories to an article specific subpage.
  • {{ {{{subpagename|}}} footer}}
  • {{TOAPPROVE stuff}} Contains the To Approve template. As above
{{article not approved}}

Subpage related

inner

All headers used by the Subpages template are also used by Subpages3 template.

{{Related Articles header}}
{{Bibliography header}}
{{ External Links header}}
{{ Works header}}
{{ Discography header}}
{{ Filmography header}}
{{ Catalogs header}}
{{ Timelines header}}
{{ Gallery header}}
{{ Audio header}}
{{ Video header}}
{{ Code header}}
{{ Tutorials header}}
{{ Student_Level header}}
{{ Signed Articles header}}
{{ Function header}}
{{ Addendum header}}
{{ Debate Guide header}}
{{ Isotopes header}}
{{ Recipes header}}

outer

Three different templates for adding text or categories immediately below the subpages template.

{{All Subpage Content}} only on subpages with content, omits the approval page and the draft page. Added [[Category:Subpages|{{{abc|}}}]]
{{All Subpages}}, includes draft and approval page. Currently empty
{{All Subpage Talk}} Currently empty
{{Draft footer}}
Draft page only. Adds the workgroup and subgroup category links at the top of the draft page.
{{Related Articles footer}}
Adds the "what links here" links to the top of the related articles page. And the Related Articles specific categories.
{{Bibliography footer}}
Adds the "Please sort and annotate in a user-friendly manner" text. And the bibliography specific categories.
{{External Links footer}} Currently empty
{{Works footer}} Currently empty
{{Discography footer}} Currently empty
{{Filmography footer}} Currently empty
{{Catalogs footer}} Currently empty
{{Timelines footer}} Currently empty
{{Gallery footer}} Currently empty
{{Audio footer}} Currently empty
{{Video footer}} Currently empty
{{Code footer}} Currently empty
{{Tutorials footer}} Currently empty
{{Student_Level footer}} Currently empty
{{Signed Articles footer}} Currently empty
{{Function footer}} Currently empty
{{Addendum footer}} Currently empty
{{Debate Guide footer}} Currently empty
{{Isotopes footer}} Currently empty
{{Recipes footer}}

Approval

{{Approval header}}
{{Approval footer}} added following [[Category:Approval Subpage|{{{{BASEPAGENAME}}/Metadata|info=abc}}]]

Metadata view

{{Metadata2}} allows the metadata to be viewed without entering edit mode.
{{Metadata header}} Currently empty

Subsubpage related

Inner

{{Tutorial Header}}
{{Recipe Header}}
{{Timeline Header}}
{{Signed Article Header}}
{{Catalog Header}}
{{Code Header}}
{{Program Header}}
{{Related Articles Header}}
{{Other subsubpage Header}}, a generic version subsubpages not hardwired into the subpages template. Currently empty

Outer

{{Other Subsubpage}} Generic one for any subsubpage created outside of the hardwired current three. See error category above to monitor for such instances. If there is a need we can hard wire more of the subpages for subsubpage functionality.
{{Signed Article Subsubpage}}
{{All Subsubpages}} [[Category:Sub-subpages|{{{abc|}}}]]
{{Timeline Subsubpage}}
{{Catalog Subsubpage}}
{{Code Subsubpage}}
{{Program Subsubpage}}
{{Tutorial Subsubpage}}
{{Recipe Subsubpage}}
{{Related Articles Subsubpage}}

General (used elsewhere)

{{Archive list long}}
{{Tl}}
{{X0}}
{{Yes-or-no}}
{{Click}}
{{Clickurl}}
{{Editintro}}

Usage Summary

A-nA = Article (not approved) A = Approval page Meta = Metadata template
A-nAT = Article Talk (not approved) AT = Approval page Talk MetaT = Metadata template Talk
A-A = Article (approved) Sub = Subpage USsp = Unexpected Sub-subpage
A-AT = Article Talk (approved) SubT = Subpage Talk USspT = Unexpected Sub-subpage Talk
Dft = Draft Ssub = Sub-subpage
DftT = Draft Talk SsubT = Sub-subpage Talk
Content in this template appears above the subpage template Specific page type
A-nA A-nAT A-A A-AT Dft DftT A AT Sub SubT Ssub SsubT Meta MetaT USsp USspT
{{Every page}} X X X X X X X X X X X X X X X
Content in these templates appear below the subpage template Specific page type
A-nA A-nAT A-A A-AT Dft DftT A AT Sub SubT Ssub SsubT Meta MetaT USsp USspT
{{Every page below}} X X X X X X X X X X X X X X X
{{Approved Article}} X
{{Article Specific}} X X
{{Not Approved Article}} X
{{TOAPPROVE stuff}} X X X X X
{{Not Approved Article Talk}} X
{{Talk Checklist}} X X
{{Talk Always}} X X
{{Approved Article Talk}} X
{{All Subpages}} X X X
{{Draft footer}} X
{{All Subpage Content}} X
{{All Subpage Talk}} X X X X
{{Related Articles footer}} or similar subpage specific footer X
{{Approval footer}} X
{{Metadata2}} X
{{Other Subsubpage}} X
{{All Subsubpages}} X X
{{Catalog Subsubpage}} or similar subpage specific footer X
Content in these templates appear inside the subpage template Specific page type
A-nA A-nAT A-A A-AT Dft DftT A AT Sub SubT Ssub SsubT Meta MetaT USsp USspT
{{Article Specific In}} X X
{{Not Approved Article In}} X
{{Approved Article In}} X
{{Checklist22}} X X
{{Unused subpage list}} X X
{{Draft header}} X
{{TOAPPROVE stuff In}} X X X X X
{{All Subpages In}} X X X
{{Related Articles header}} or similar subpage specific header X
{{All Subpage Content In}} X
{{All Subpage Talk In}} X X X X
{{Approval header}} X
{{Metadata header}} X
{{Catalog Header}} or similar subsubpage specific header X
{{Other subsubpage Header}} X
{{All Subsubpages}} X X