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 161: Line 161:
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
       | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
       | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
         | <!--(Article)-->{{#ifeq:{{{status|}}}|0|<!--
         |<!--(Article)-->{{#ifeq:{{{status|}}}|0
 
                        |<!--Approved Article-->
***Next section is the approved template, it is only placed on an approved article. ***
                        |<!--UnApproved version-->''This is a '''draft article''', under development.  These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}}
 
-->__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: {{{type}}}|subsubpage
             | {{ #ifeq: {{{type}}}|subsubpage
                   |(ALL subsubpages) {{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                   |<!--ALL subsubpages-->{{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                                               |<!--(signed article)-->''An article by '''{{{subpagename|}}}''' relating to the topic of [[{{{pagename|}}}]].''
                                               |<!--(signed article)-->
[[Category:Signed Articles|{{{abc|}}}]]
[[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|}}}]] |}} }}
                                | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
                                | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
                                        |<!--(Catalog sub-subpage)-->''A catalog relating to the topic of [[{{{pagename|}}}]].''
                                        |<!--(Catalog sub-subpage)-->                                         | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename|}}}
[[Category:Catalogs|{{{abc|}}}]]
                                                |<!--(timeline sub-subpage)-->
[[Category:{{{group}}} Catalogs|{{{abc|}}}]]
                                                             |<!--Sub-subpages other than the three above-->}} }} }}
{{#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|}}}]] |}} }}                                         | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename|}}}
                                                |<!--(timeline sub-subpage)-->''A timeline relating to the topic of [[{{{pagename|}}}]].''
[[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|}}}]] |}} }}
                                                             |(other sub-subpage) }} }} }}
                  |<!--(All Subpage articles)-->{{ {{{subpagename|}}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }}  {{#ifeq:{{{subpagename|}}}|Draft
                  |<!--(All Subpage articles)-->{{ {{{subpagename|}}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }}  {{#ifeq:{{{subpagename|}}}|Draft
                        | <!--(Draft)-->
                        | <!--(Draft)-->
                                       |{{#ifeq:{{{subpagename|}}}|Unused
                                       |{{#ifeq:{{{subpagename|}}}|Unused
                     | <!--Unused subpages-->
                     | <!--Unused subpage-->
                     | {{#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-->}} }} }} }} }}
       | {{#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) -->{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{by|}}} }}
                   | <!--(Draft Talk page) -->{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{by|}}} }}
                   | <!--(All subpage Talk pages other than draft)--> (All subpage Talk pages other than draft)}}
                   | <!--(All subpage Talk pages other than draft)--> }}
               | {{#ifeq:{{{namespace|}}}|Talk
               | {{#ifeq:{{{namespace|}}}|Talk
                   | <!--(Article Talk page)-->{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{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:{{{pagename|}}}/Metadata|{{{basepagename|}}}
           | {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename|}}}
              |<!--(the metadata template)-->(the metadata template)
              |<!--(the metadata template)-->
                               | }} }} }} }}
                               | }} }} }} }}
|}</div>{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
|}</div>{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
       | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
       | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
         | <!--(Article)-->{{#ifeq:{{{status|}}}|0||{{#if:{{{ToA editor| }}}|<!--
         |<!--(Article)-->{{#ifeq:{{{status|}}}|0
 
                        |<!--Approved Article-->
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section. Does not add the template to an approved version (in that case adds the template to the draft version) ***
                        |<!--UnApproved version-->''This is a '''draft article''', under development. These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}}
 
-->'''ToApprove template will go here.''' }} }}
             | {{ #ifeq: {{{type}}}|subsubpage
             | {{ #ifeq: {{{type}}}|subsubpage
                              | {{#ifeq:{{{namespace|}}}|Talk
                  |<!--ALL subsubpages-->{{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                        | <!--(Talk: Sub subpage)--> (Talk: Sub subpage)
                                               |<!--(signed article)-->
                        |(ALL subsubpages) {{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                                               |<!--(signed article)-->(signed article)
                                | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
                                | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
                                        |<!--(Catalog sub-subpage)-->(Catalog sub-subpage)                                         | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename|}}}
                                        |<!--(Catalog sub-subpage)-->                                         | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename|}}}
                                                |<!--(timeline sub-subpage)-->(timeline sub-subpage)
                                                |<!--(timeline sub-subpage)-->
                                                             |(other sub-subpage) }} }} }} }}
                                                             |<!--Sub-subpages other than the three above-->}} }} }}
                  |{{#ifeq:{{{subpagename|}}}|Unused
                  |<!--(All Subpage articles)-->{{#ifeq:{{{subpagename|}}}|Draft
                        |<!--Unused subpages-->
                        | <!--(Draft)-->
                                       |{{#if:{{{ToA editor| }}}|<!--
                                       |{{#ifeq:{{{subpagename|}}}|Unused
 
                     | <!--Unused subpage-->
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section. It adds the ToApprove template to all subpages except for the unused subpages page***
 
-->'''ToApprove template will go here.''' }}{{#ifeq:{{{subpagename|}}}|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-->}} }} }} }} }}
      | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
      | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
               |<!--(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) -->
                                        |{{#if:{{{ToA editor| }}}
                   | <!--(All subpage Talk pages other than draft)--> }}
                                                |<!--(ToApprove information here if approval is being updated)-->
                                                |<!--(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)-->}}
                   | <!--(All subpage Talk pages other than draft)-->}}
               | {{#ifeq:{{{namespace|}}}|Talk
               | {{#ifeq:{{{namespace|}}}|Talk
                   | <!--(Article Talk page)-->{{#ifeq:{{{status|}}}|0
                   | <!--(Article Talk page)-->
                                    |<!--(not used: a redirect to the draft page talk is here after approval)-->
                                    |{{#if:{{{ToA editor| }}}
                                                |<!--(ToApprove information here if being approved for the first time)-->
                                                |}}}}
           | {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename|}}}
           | {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename|}}}
              |<!--(the metadata template)-->
              |<!--(the metadata template)-->{{metadata}}
                               | }} }} }} }}</includeonly>
                               | }} }} }} }}</includeonly>
<noinclude>
<noinclude>

Revision as of 00:51, 11 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).