Template:Tracklist: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Drew R. Smith
No edit summary
imported>Drew R. Smith
(Removing all content from page)
Line 1: Line 1:
<includeonly><!--


***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.***
-->{{move}}{{Every page}}{{#ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
        |{{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
                      |<!--(Article)-->
                      |{{ #ifexist: {{../../Metadata|info=pagename}}
                        |<!--(all subsubpages--> {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                                                    |<!--(signed article)-->
                                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                                              |<!--(Catalog sub-subpage)-->
                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Tutorials|{{BASEPAGENAME}}
                                                              |<!--(tutorial sub-subpage)-->
                                                                            | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                                                                    |<!--(timeline sub-subpage)-->
                                                                                  | {{#ifeq: {{../../Metadata|info=pagename}}/Recipes|{{BASEPAGENAME}}
                                                                                        |<!--(Code sub-subpage)-->
                                                                                        | {{#ifeq: {{../../Metadata|info=pagename}}/Code|{{BASEPAGENAME}}
                                                                                |<!--(recipe sub-subpage)-->
                                                                                              | {{#ifeq: {{../../Metadata|info=pagename}}/Related Articles|{{BASEPAGENAME}}
                                                                                      |<!--(Related Articles sub-subpage)-->
                                                                                                    |<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]]}} }} }} }} }} }} }}
                          |}} }}
| {{#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:{{SUBPAGENAME}}|Metadata
              | {{#ifeq:{{NAMESPACE}}|Template talk
                                      |<!--(talk metadata page)--><span style="font-style:italic;">Please continue discussion at [[Talk:{{BASEPAGENAME}}]], or return to the [[{{BASEPAGENAME}}/Metadata]] page.</span>
                                      |<!--(metadata page)--> }}
                                | <!--(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/> }} }} }}<!--
***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:{{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]]
                      |[[Category:Definition Only]][[Category:All Content]] }}| }} }} }}
|{{#ifeq:{{SUBPAGENAME}}|Related Articles
      |<!--Adds category for the stand alone subpages in this case related articles-->{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}
          |
          |[[Category:Related Articles Only]][[Category:All Content]] }}
      |{{#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
                      |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}} }} }} }} }} }} }} }}<!--
***The following section specifically establishes parameters for the subpage template on all pages except subsubpages and their talk pages.***
-->{{{{#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}} }}<!--
***The following section specifically functions on subsubpages. For technical reasons this template is not fully function on the subsubpage talk pages.***
-->{{{{ #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>

Revision as of 21:39, 21 June 2009