Template:Subpages2: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>J. Noel Chiappa
(Grab blank template from common location)
 
(48 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
<includeonly><!--


***The following code is the part of the subpages template that includes the subroutines to choose the default and optional buttons for the subpages navigation box***
***The following code is the part of the subpages template that includes the subroutines to choose the default and optional buttons for the subpages navigation box***
Line 5: Line 5:
-->{|class=noprint align=right width=120px cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
-->{|class=noprint align=right width=120px cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
|align="top" align="right"|
|align="top" align="right"|
{|width=110px border="0" cellpadding="1" cellspacing="3" style=" border-bottom:2px solid #aaaaaa; border-top:2px solid #eeeeee; border-left:2px solid #bbbbbb; border-right:2px solid #ffffff; {{ #ifexist: {{../../Metadata|info=pagename}}
{|width=110px border="0" cellpadding="1" cellspacing="3" style=" border-bottom:2px solid #aaaaaa; border-top:2px solid #eeeeee; border-left:2px solid #bbbbbb; border-right:2px solid #ffffff; <!--
  |{{#ifeq:{{../../Metadata|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
 
***Code that fills out the header of the navigation box and selects the background colour, green for approved and blue ofr unapproved.  if the pagename in the metadata table is not filled out the template will be orange-like and a message to fill out the pagename will appear in the tempalte***
 
-->{{ #ifexist: {{../../Metadata|info=pagename}}
    |{{#ifeq:{{../../Metadata|info=status}}|0
          |background:#C4DFC4
          |background:#C4D2DF}}"
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{{!}} align="right" border="0" cellpadding="0" cellspacing="0"
{{!}}{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
{{!}}}
{{ #ifeq: {{#expr: {{#len:{{../../Metadata|info=pagename}}}} > 20 }} | 1  
{{ #ifeq: {{#expr: {{#len:{{../../Metadata|info=pagename}}}} > 20 }} | 1  
               |'''[[{{../../Metadata|info=pagename}}|Main Article]]'''  
               |'''[[{{../../Metadata|info=pagename}}|Main Article]]'''  
Line 14: Line 23:
                   |<br><font size=1>''[[{{../../Metadata|info=pagename}}/Draft|Draft Page]]''</font>
                   |<br><font size=1>''[[{{../../Metadata|info=pagename}}/Draft|Draft Page]]''</font>
                   | }}
                   | }}
  |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
          |  {{#ifeq:{{{{BASEPAGENAME}}|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
          |  {{#ifeq:{{{{BASEPAGENAME}}|info=status}}|0
                  |background:#C4DFC4
                  |background:#C4D2DF}}"
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{{!}} align="right" border="0" cellpadding="0" cellspacing="0"
{{!}}{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
{{!}}}
{{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}|info=pagename}}}} > 20 }} | 1  
{{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}|info=pagename}}}} > 20 }} | 1  
                   |'''[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]'''  
                   |'''[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]'''  
Line 23: Line 37:
                   |<br><font size=1>''[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft Page]]''</font>
                   |<br><font size=1>''[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft Page]]''</font>
                   | }}
                   | }}
          |  {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
            | {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|
                  |background:#DFD4C4"
{{{!}} align="right" border="0" cellpadding="0" cellspacing="0"
{{!}}{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
{{!}}}
{{!}}align=center {{!}}<font size=1>'''Pagename parameter in [http://en.citizendium.org/wiki?title=Template:{{BASEPAGENAMEE}}/Metadata&action=edit metadata template] is missing'''</font>
'''[[{{BASEPAGENAME}}|Main Article]]'''
{{#ifexist:{{BASEPAGENAME}}/Draft
                        |<br><font size=1>''[[{{BASEPAGENAME}}/Draft|Draft Page]]''</font>
                        | }}
                  | {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0
                          |background:#C4DFC4
                          |background:#C4D2DF}}"
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}/Metadata|info=pagename}}}} > 20 }} | 1  
{{{!}} align="right" border="0" cellpadding="0" cellspacing="0"
                  |'''[[{{{{BASEPAGENAME}}/Metadata|info=pagename}}|Main Article]]'''  
{{!}}{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
                  |'''[[{{{{BASEPAGENAME}}/Metadata|info=pagename}}]]''' }}
{{!}}}
{{#ifexist:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft
{{ #ifeq: {{#expr: {{#len:{{BASEPAGENAME}} }} > 20 }} | 1  
                  |<br><font size=1>''[[{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|Draft Page]]''</font>
                        |'''[[{{BASEPAGENAME}}|Main Article]]'''  
                  | }} }} }}<!--
                        |'''[[{{BASEPAGENAME}}]]''' }}
{{#ifexist:{{BASEPAGENAME}}/Draft
                        |<br><font size=1>''[[{{BASEPAGENAME}}/Draft|Draft Page]]''</font>
                        | }} }} }} }}<!--


***The following template identifies the subpages in the Template:Subpage list that are tagged as Default. It adds those buttons in the numerical sequence regardless of whether the subpage exists or not.  
***The following template identifies the subpages in the Template:Subpage list that are tagged as Default. It adds those buttons in the numerical sequence regardless of whether the subpage exists or not.  
Line 45: Line 74:
|-
|-
|
|
{| align="right" border="0" cellpadding="2" cellspacing="0"
{| align="right" border="0" cellpadding="1" cellspacing="0"
{{#ifeq:{{NAMESPACE}}|Talk||{{!}}{{clickurl|image=Print icon.png|link=http://en.citizendium.org/wiki?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
{{#ifeq:{{SUBPAGENAME}}|Unused
    |
    |{{#ifeq:{{NAMESPACE}}|Talk
          |
          |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0
              |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|{{PAGENAME}}
                    | {{!}}{{clickurl|image=Compare.png|link=http://en.citizendium.org/wiki?title={{PAGENAMEE}}/Draft&diff=current&oldid={{REVISIONID}} | width=17px | height=17px}}
                    |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|{{PAGENAME}}
                        |{{!}}{{clickurl|image=Compare.png|link=http://en.citizendium.org/wiki?title={{BASEPAGENAMEE}}&diff=current&oldid={{REVISIONID}} |width=17px|height=17px}}
                        | }} }}
              |}} }} }}
{{#ifeq:{{NAMESPACE}}|Talk||{{!}}{{clickurl|image=Print button.png|link=http://en.citizendium.org/wiki?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
{{ #ifexist: {{../../Metadata|info=pagename}}
{{ #ifexist: {{../../Metadata|info=pagename}}
           |{{!}} {{click|image=Compare icon.png|link={{../../Metadata|info=pagename}}/Approval |width=17px|height=17px}}
           |{{!}}{{click|image=Unused button.png|link={{../../Metadata|info=pagename}}/Unused|width=17px|height=17px}}
 
{{!}}{{click|image=Metadata.png|link=Template:{{../../Metadata|info=pagename}}/Metadata|width=17px|height=17px}}


{{!}}{{click|image=Attention_niels_epting.png|link={{../../Metadata|info=pagename}}/Unused|width=17px|height=17px}}
{{!}} {{click|image=Approval button.png|link={{../../Metadata|info=pagename}}/Approval |width=17px|height=17px}}


{{!}}{{click|image=Information_icon.svg.png|link=Template:{{../../Metadata|info=pagename}}/Metadata|width=17px|height=17px}}
           |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
           |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
                 |{{!}} {{click|image=Compare icon.png|link={{{{BASEPAGENAME}}|info=pagename}}/Approval |width=17px|height=17px}}
                 |{{!}}{{click|image=Unused button.png|link={{{{BASEPAGENAME}}|info=pagename}}/Unused|width=17px|height=17px}}


{{!}}{{click|image=Attention_niels_epting.png|link={{{{BASEPAGENAME}}|info=pagename}}/Unused|width=17px|height=17px}}
{{!}}{{click|image=Metadata.png|link=Template:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|width=17px|height=17px}}


{{!}}{{click|image=Information_icon.svg.png|link=Template:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|width=17px|height=17px}}
{{!}} {{click|image=Approval button.png|link={{{{BASEPAGENAME}}|info=pagename}}/Approval |width=17px|height=17px}}


                 |{{!}} {{click|image=Compare icon.png|link={{BASEPAGENAME}}/Approval |width=17px|height=17px}}
                 |{{!}}{{click|image=Unused button.png|link={{BASEPAGENAME}}/Unused|width=17px|height=17px}}


{{!}}{{click|image=Attention_niels_epting.png|link={{BASEPAGENAME}}/Unused|width=17px|height=17px}}
{{!}}{{click|image=Metadata.png|link=Template:{{BASEPAGENAME}}/Metadata|width=17px|height=17px}}


{{!}}{{click|image=Information_icon.svg.png|link=Template:{{BASEPAGENAME}}/Metadata|width=17px|height=17px}}}}}}
{{!}} {{click|image=Approval button.png|link={{BASEPAGENAME}}/Approval |width=17px|height=17px}}}}}}
 
|{{click|image=Pictogram_voting_question.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
|}
|}
|}
|}
Line 75: Line 114:
-->{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
-->{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
  | <!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{approved2|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}}}}|}}  {{Checklist4|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}} }}  {{Checklist5|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}} }}
  | <!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{approved2|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}}}}|{{Checklist5|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
  |{{#ifeq:{{SUBPAGENAME}}|Draft
  |<!--(Draft)-->{{Draft header2|status = {{{{BASEPAGENAME}}/Metadata|info=status}} }} {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{Checklist5|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}} }} |}}
  |<!--(Draft)-->{{Draft header|status = {{{{BASEPAGENAME}}/Metadata|info=status}}}}{{Checklist5|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}}
          |{{ #ifexist: {{../../Metadata|info=pagename}}
          |{{Checklist5|group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3={{../../Metadata|info=cat3}}|abc={{../../Metadata|info=abc}}|status= {{../../Metadata|info=status}} }}{{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
          |{{#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}} }}
                                     |<!--(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}}/Tables|{{BASEPAGENAME}}
                      | {{#ifeq: {{../../Metadata|info=pagename}}/Tables|{{BASEPAGENAME}}
Line 87: Line 126:
            |{{#ifeq:{{SUBPAGENAME}}|Unused
            |{{#ifeq:{{SUBPAGENAME}}|Unused
               | <!--Unused subpages--> {{Unused subpages}}  
               | <!--Unused subpages--> {{Unused subpages}}  
                   | <!--(All subpage articles)-->{{ {{SUBPAGENAME}} header2|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}} }} {{Checklist5|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}} }}     }} }} }} }}
                   | <!--(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}} }} {{Checklist5|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: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{SUBPAGENAME}}|Draft
  | {{#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}} }} {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{Checklist5|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}} }}
  | <!--(Draft Talk page) always place the checklist here if the page exists-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{Checklist5|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}} }} <br>  }} {{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}} }}
__TOC__
<big><big>Article re-approval and version record area</big></big>
----
{{{!}}align=left width=95%
{{!}}<div class="NavFrame" style="border: 1px solid #CCCCCC">
<div class="NavHead" style="background-color:lightblue">[[{{BASEPAGENAME}}/Approval|Approval process for {{BASEPAGENAME}}]]</div>
<div align = left style = "font-size:95%; background-color: #eeeeee">
<div class="NavContent">
{{:{{BASEPAGENAME}}/Approval}}
</div></div></div>
{{!}}}
{{clear}} }}
  | <!--not currently used--> (All subpage articles Talk) }}
  | <!--not currently used--> (All subpage articles Talk) }}
  | {{#ifeq:{{NAMESPACE}}|User
  | {{#ifeq:{{NAMESPACE}}|User
Line 109: Line 136:
  | <!--not currently used--> (User subpage talk) }} }}  
  | <!--not currently used--> (User subpage talk) }} }}  
  | {{#ifeq:{{NAMESPACE}}|Talk
  | {{#ifeq:{{NAMESPACE}}|Talk
  | <!--(Article Talk page) always place the checklist here if the page exists.  Basically the same as the draft 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:{{{{BASEPAGENAME}}/Metadata|info=status}}|0| |{{Checklist5|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}} }}
  | <!--(Article Talk page) -->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0| |{{Checklist5|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}} <br><br> }} {{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}} }} }}
__TOC__
<big><big>Article re-approval and version record area</big></big>
----
{{{!}}align=left width=95%
{{!}}<div class="NavFrame" style="border: 1px solid #CCCCCC">
<div class="NavHead" style="background-color:lightblue">[[{{BASEPAGENAME}}/Approval|Approval process for {{BASEPAGENAME}}]]</div>
<div align = left style = "font-size:95%; background-color: #eeeeee">
<div class="NavContent">
{{:{{BASEPAGENAME}}/Approval}}
</div></div></div>
{{!}}}
{{clear}} }}
  | {{#ifeq:{{NAMESPACE}}|User
  | {{#ifeq:{{NAMESPACE}}|User
  | <!--not currently used--> (User page)  
  | <!--not currently used--> (User page)  
Line 130: Line 145:
                                         | {{#ifeq:{{NAMESPACE}}|Template
                                         | {{#ifeq:{{NAMESPACE}}|Template
                    | {{Metadata}}
                    | {{Metadata}}
    | (template talk page) }} }} }} }} }} }} }}<noinclude>
    | (template talk page) }} }} }} }} }} }} }}</includeonly><noinclude>
===Usage===
===Usage===
Examples of this templates use can be found at the [[Test article]] cluster (not approved) and the [[Test article2]] cluster (approved).
Examples of this templates use can be found at the [[Test article]] cluster (approved) and the [[Test article not approved]] cluster (not approved).
 
==How to use the {{tl|subpages2}} template==
 
'''1)''' Place  {{tl|subpages2}} at the top of every page in a cluster, including all talk pages and subpages.
 
'''2) ''' For the subpages2 template to function correctly it is important to set up an additonal [[Template:{{BASEPAGENAME}}/Metadata|Metadata template]] for each article. This is easily done by cutting and pasting the following code to a generic template named '''''Template:ARTICLENAME/Metadata'''''.
 
{{metadata_basic}}
 
The checklist parameters should be filled out in the usual way (see instructions below for a description of usage for all the fields in the metadata template.) Converting a current article is easily achived by cutting and pasting the parameters from the current checklist, that already exists on the talk page, to the new Metadata template for the article.
 
'''3)''' In addition to the checklist parameters it is also important to complete the '''pagename''' parameter. A warning note will pop up on the navigation template if this is not done.
 
'''4)''' Two other pages need to be created to complete the new cluster. An [[{{BASEPAGENAME}}/Approval|approval subpage]] and a [[{{BASEPAGENAME}}/Unused|Unused subpages list]]. A {{tl|subpages2}} template should be placed at the top of both these pages. Neither of these pages are as important as the metadata template page and they could be created at a later date.
 
===Parameters===
 
'''General parameters'''
 
:''pagename'' = The exact pagename is used.  It is required for navigation back to the home page on subpages.
 
:''dialect'' = will be used to designate the spelling and grammar, primarily whether the article is written in American or English English.
 
'''Checklist parameters'''
 
:''abc'' = used to categorise based on last names.  For example, the [[Barbara McClintock]] approval template is written as '''abc = McClintock, Barbara''' so she is categorised under M, or List of Biologists would be '''abc = Biologists, List of''' so it is categorised under B.
 
:''cat1'' = must be an existing workgroup
 
:''cat2'' = second workgroup (optional but must use before group3 if only two workgroups)
 
:''cat3'' = third workgroup (optional)
 
:''cat_check'' = put "yes" if you want someone to check over the categories
 
:''status'' = 0 for approved articles; 1 developed, 2 developing, 3 stub, 4 external
 
:''underlinked'' = put "yes" if not enough other articles link to it (click "What links here" at left)
 
:''cleanup'' = put "yes" if basic cleanup has been done.
 
:''by'' = Names of anyone editing the checklist, in reverse chronological order.
 
'''Approved parameters'''
 
:''A editor'' = the username of the person who did the approval (or who nominated the article on behalf of a group of people)
 
:''A editor2'' = second editor  (optional but must use before editor3 if only two editors approved)
 
:''A editor3'' = third editor if a triumvirate of editors is involved in approval
 
'''ToApprove parameters'''
:''Type of approval'':
 
::'''Whole cluster''' use the ''article url'' and the ''cluster'' field. 
::'''Article only''' use the ''article url'' and leave the ''cluster'' field blank. 
::'''Subpage only''' us the ''subpage url'' field and leave the ''cluster'' field blank.
::'''Article and ONE subpage''' use both the ''article and subpage url'' fields but leave the ''cluster'' field blank.
 
:''article url'' = the location in the page history where the version-to-approve lives.
 
:''subpage url'' = the location in the page history where the version-to-approve lives.
 
:''cluster'' = add text here if the whole cluster needs to be approved, otherwise leave blank.
 
:''now'' = the date and time when the template is added. Use <nowiki>~~~~~</nowiki> (five tildes) to let the computer generate it automatically.
 
:''ToA editor'' = the username of the person who did the approval (or who nominated the article on behalf of a group of people)
 
:''ToA editor2'' = second editor  (optional but must use before editor3 if only two editors approved)
 
:''ToA editor3'' = third editor (optional)
 
:''date'' = format yyyymmdd (typically three days after "now", to allow copyedits and suggestions)


</noinclude>
</noinclude>

Latest revision as of 00:09, 18 April 2008

Usage

Examples of this templates use can be found at the Test article cluster (approved) and the Test article not approved cluster (not approved).

How to use the {{subpages2}} template

1) Place {{subpages2}} at the top of every page in a cluster, including all talk pages and subpages.

2) For the subpages2 template to function correctly it is important to set up an additonal Metadata template for each article. This is easily done by cutting and pasting the following code to a generic template named Template:ARTICLENAME/Metadata.

{{#switch: {{{info}}}

<!--general article properties-->
|       pagename = 
|        variant = 

<!--Required for checklist-->

|            abc =  
|      cat_check = 
|         status = currently no status
|    underlinked = 
|        cleanup = 
|             by = 
|           cat1 = 
|           cat2 = 
|           cat3 = 
|           sub1 = 
|           sub2 = 
|           sub3 = 
|           tab1 = 
|           tab2 = 
|           tab3 = 

<!--required for ToApprove template-->
|    article url = 
|    subpage url = 
|        cluster = 
|            now = 
|     ToA editor = 
|    ToA editor2 = 
|    ToA editor3 = 
|           date = 

<!--required for Approved template-->
|       A editor = 
|      A editor2 = 
|      A editor3 = 

}}<noinclude>{{subpages}}</noinclude>

The checklist parameters should be filled out in the usual way (see instructions below for a description of usage for all the fields in the metadata template.) Converting a current article is easily achived by cutting and pasting the parameters from the current checklist, that already exists on the talk page, to the new Metadata template for the article.

3) In addition to the checklist parameters it is also important to complete the pagename parameter. A warning note will pop up on the navigation template if this is not done.

4) Two other pages need to be created to complete the new cluster. An approval subpage and a Unused subpages list. A {{subpages2}} template should be placed at the top of both these pages. Neither of these pages are as important as the metadata template page and they could be created at a later date.

Parameters

General parameters

pagename = The exact pagename is used. It is required for navigation back to the home page on subpages.
dialect = will be used to designate the spelling and grammar, primarily whether the article is written in American or English English.

Checklist parameters

abc = used to categorise based on last names. For example, the Barbara McClintock approval template is written as abc = McClintock, Barbara so she is categorised under M, or List of Biologists would be abc = Biologists, List of so it is categorised under B.
cat1 = must be an existing workgroup
cat2 = second workgroup (optional but must use before group3 if only two workgroups)
cat3 = third workgroup (optional)
cat_check = put "yes" if you want someone to check over the categories
status = 0 for approved articles; 1 developed, 2 developing, 3 stub, 4 external
underlinked = put "yes" if not enough other articles link to it (click "What links here" at left)
cleanup = put "yes" if basic cleanup has been done.
by = Names of anyone editing the checklist, in reverse chronological order.

Approved parameters

A editor = the username of the person who did the approval (or who nominated the article on behalf of a group of people)
A editor2 = second editor (optional but must use before editor3 if only two editors approved)
A editor3 = third editor if a triumvirate of editors is involved in approval

ToApprove parameters

Type of approval:
Whole cluster use the article url and the cluster field.
Article only use the article url and leave the cluster field blank.
Subpage only us the subpage url field and leave the cluster field blank.
Article and ONE subpage use both the article and subpage url fields but leave the cluster field blank.
article url = the location in the page history where the version-to-approve lives.
subpage url = the location in the page history where the version-to-approve lives.
cluster = add text here if the whole cluster needs to be approved, otherwise leave blank.
now = the date and time when the template is added. Use ~~~~~ (five tildes) to let the computer generate it automatically.
ToA editor = the username of the person who did the approval (or who nominated the article on behalf of a group of people)
ToA editor2 = second editor (optional but must use before editor3 if only two editors approved)
ToA editor3 = third editor (optional)
date = format yyyymmdd (typically three days after "now", to allow copyedits and suggestions)