Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(update link)
imported>Chris Day
(adding some of the general templates)
Line 135: Line 135:
       | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
       | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
         |<!--(Article)-->{{#ifeq:{{{status|}}}|0
         |<!--(Article)-->{{#ifeq:{{{status|}}}|0
                         |<!--Approved Article-->
                         |<!--Approved Article-->{{APPROVE stuff}}
                         |<!--UnApproved version--> }}
                         |<!--UnApproved version-->{{TOAPPROVE stuff}}}}
             | {{ #ifeq: {{{type}}}|subsubpage
             | {{ #ifeq: {{{type}}}|subsubpage
                   |<!--ALL subsubpages-->{{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                   |<!--ALL subsubpages-->{{All subsubpages}}{{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                                               |<!--(signed article)-->
                                               |<!--(signed article)-->
                                | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
                                | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
Line 144: Line 144:
                                                |<!--(timeline sub-subpage)-->
                                                |<!--(timeline sub-subpage)-->
                                                             |<!--Sub-subpages other than the three above-->}} }} }}
                                                             |<!--Sub-subpages other than the three above-->}} }} }}
                |<!--(All Subpage articles)-->{{ {{{subpagename|}}} footer|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }} {{#ifeq:{{{subpagename|}}}|Draft
                  |<!--(All Subpage articles)-->{{TOAPPROVE stuff}}{{ {{{subpagename|}}} footer|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }} {{#ifeq:{{{subpagename|}}}|Draft
                        | <!--(Draft)-->
                        | <!--(Draft)-->
                         | {{#ifeq:{{{subpagename|}}}|Approval
                         | {{#ifeq:{{{subpagename|}}}|Approval
                                               |<!--approval subpage-->
                                               |<!--approval subpage-->
                                               |<!--All other subpage articles but not approval, unused or draft-->}} }} }} }}
                                               |<!--All other subpage articles but not approval, unused or draft-->{{All subpage content}}}} }} }} }}
       | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
       | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
               |<!--All subpage Talk pages-->(All subpage Talk pages) {{#ifeq:{{{subpagename|}}}|Draft
               |<!--All subpage Talk pages-->(All subpage Talk pages) {{#ifeq:{{{subpagename|}}}|Draft
                   | <!--(Draft Talk page) -->{{#ifeq:{{{status|}}}|0
                   | <!--(Draft Talk page) -->{{Talk Checklist}}{{#ifeq:{{{status|}}}|0
                                         |{{#if:{{{ToA editor| }}}
                                         |{{#if:{{{ToA editor| }}}
                                                 |<!--(ToApprove information here if approval is being updated)-->
                                                 |<!--(ToApprove information here if approval is being updated)-->{{TOAPPROVE stuff}}
                                                 |<!--(Draft talk page info when approved but not reapproving)-->}}
                                                 |<!--(Draft talk page info when approved but not reapproving)-->}}
                                         |<!--(Article not approved: in theory the draft page will not exist unless the article has been approved)-->}}
                                         |<!--(Article not approved: in theory the draft page will not exist unless the article has been approved)-->}}
Line 160: Line 160:
                   | <!--(Article Talk page)-->{{#ifeq:{{{status|}}}|0
                   | <!--(Article Talk page)-->{{#ifeq:{{{status|}}}|0
                                     |<!--(not used: a redirect to the draft page talk is here after approval)-->
                                     |<!--(not used: a redirect to the draft page talk is here after approval)-->
                                     |{{#if:{{{ToA editor| }}}
                                     |{{Talk Checklist}}{{#if:{{{ToA editor| }}}
                                                 |<!--(ToApprove information here if being approved for the first time)-->
                                                 |<!--(ToApprove information here if being approved for the first time)-->{{TOAPPROVE stuff}}
                                                 |}}}}
                                                 |}}}}
           | {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename|}}}
           | {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename|}}}

Revision as of 01:17, 15 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).