Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(remove this whole section. Add back bit by bit. Note to self: might be something in checklist22)
imported>Chris Day
(add page decision tree)
Line 129: Line 129:
|{{click|image=Approval button.png|link={{{pagename|}}}/Approval |width=17px|height=17px}}
|{{click|image=Approval button.png|link={{{pagename|}}}/Approval |width=17px|height=17px}}
|{{click|image=Unused button.png|link={{{pagename|}}}/Unused|width=17px|height=17px}}  
|{{click|image=Unused button.png|link={{{pagename|}}}/Unused|width=17px|height=17px}}  
|}
|}{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
      | {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
        | <!--(Article)--> (Article)
        | {{#ifeq:{{SUBPAGENAME}}|Draft
        | <!--(Draft)--> (Draft)
                | {{ #ifexist: {{../../Metadata|info=pagename}}
                                | {{#ifeq:{{NAMESPACE}}|Talk
                        | <!--(Talk: Sub subpage)--> (Talk: Sub subpage)
                        | {{#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)
                  | {{#ifeq:{{SUBPAGENAME}}|Approval
                                              |<!--(approval subpage)-->  (approval subpage)         
                                              |<!--(All other subpage articles but not approval, unused or draft)--> All Subpage articles except draft}} }} }} }} }}
      | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
              | {{#ifeq:{{NAMESPACE}}|Talk
                  | {{#ifeq:{{SUBPAGENAME}}|Draft
                  | <!--(Draft Talk page) --> (Draft Talk page)
                  | <!--not currently used--> (All subpage and subsubpage Talk) }}
          | {{#ifeq:{{NAMESPACE}}|User
                  | <!--not currently used--> (User subpage)
                  | <!--not currently used--> (User subpage talk) }} }}
              | {{#ifeq:{{NAMESPACE}}|Talk
                  | <!--(Article Talk page)--> (Article Talk page)
          | {{#ifeq:{{NAMESPACE}}|User
          | <!--not currently used--> (User page)
          | {{#ifeq:{{NAMESPACE}}|User talk
        |<!--not currently used--> (User talk page)
          |  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
                                |<!--not currently used-->(the metadata template)
                                                |  {{#ifeq:{{NAMESPACE}}|Template
            | <!--not currently used--> (template main page)
            | <!--not currently used--> (template talk page) }} }} }} }} }} }} }}
|}</div>
|}</div>
{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}

Revision as of 16:30, 4 October 2007


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).