Template:Subpages4: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 6: Line 6:
|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: {{../../Info|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; {{ #ifexist: {{../../Info|info=pagename}}
    |   {{#ifeq:{{../../Info|info=status}}|0
  |{{#ifeq:{{../../Info|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
              |background:#C4DFC4
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
              | background:#C4D2DF}}"
{{{!}} align="right" border="0" cellpadding="0" cellspacing="0"
        {{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{!}}{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
        {{ #ifeq: {{#expr: {{#len:{{../../Info|info=pagename}}}} > 20 }} | 1  
{{!}}}
               | '''[[{{../../Info|info=pagename}}|Main Article]]'''  
{{ #ifeq: {{#expr: {{#len:{{../../Info|info=pagename}}}} > 20 }} | 1  
               | '''[[{{../../Info|info=pagename}}]]''' }}
               |'''[[{{../../Info|info=pagename}}|Main Article]]'''  
        {{#ifexist:{{../../Info|info=pagename}}/Draft
               |'''[[{{../../Info|info=pagename}}]]''' }}
{{#ifexist:{{../../Info|info=pagename}}/Draft
                   |<br><font size=1>''[[{{../../Info|info=pagename}}/Draft|Draft Page]]''</font>
                   |<br><font size=1>''[[{{../../Info|info=pagename}}/Draft|Draft Page]]''</font>
                   | }}
                   | }}
    |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
  |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
          |   {{#ifeq:{{{{BASEPAGENAME}}|info=status}}|0
          | {{#ifeq:{{{{BASEPAGENAME}}|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
                    |background:#C4DFC4
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
                    | background:#C4D2DF}}"
{{{!}} align="right" border="0" cellpadding="0" cellspacing="0"
              {{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{!}}{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
              {{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}|info=pagename}}}} > 20 }} | 1  
{{!}}}
                    | '''[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]'''  
{{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}|info=pagename}}}} > 20 }} | 1  
                    | '''[[{{{{BASEPAGENAME}}|info=pagename}}]]''' }}
                  |'''[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]'''  
              {{#ifexist:{{{{BASEPAGENAME}}|info=pagename}}/Draft
                  |'''[[{{{{BASEPAGENAME}}|info=pagename}}]]''' }}
                    |<br><font size=1>''[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft Page]]''</font>
{{#ifexist:{{{{BASEPAGENAME}}|info=pagename}}/Draft
                    | }}
                  |<br><font size=1>''[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft Page]]''</font>
          |   {{#ifeq:{{{{BASEPAGENAME}}/Info|info=status}}|0
                  | }}
                  |background:#C4DFC4
          | {{#ifeq:{{{{BASEPAGENAME}}/Info|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
                  | background:#C4D2DF}}"
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
              {{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{{!}} align="right" border="0" cellpadding="0" cellspacing="0"
              {{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}/Info|info=pagename}}}} > 20 }} | 1  
{{!}}{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
                  | '''[[{{{{BASEPAGENAME}}/Info|info=pagename}}|Main Article]]'''  
{{!}}}
                  | '''[[{{{{BASEPAGENAME}}/Info|info=pagename}}]]''' }}
{{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}/Info|info=pagename}}}} > 20 }} | 1  
              {{#ifexist:{{{{BASEPAGENAME}}/Info|info=pagename}}/Draft
                  |'''[[{{{{BASEPAGENAME}}/Info|info=pagename}}|Main Article]]'''  
                  |<br><font size=1>''[[{{{{BASEPAGENAME}}/Info|info=pagename}}/Draft|Draft Page]]''</font>
                  |'''[[{{{{BASEPAGENAME}}/Info|info=pagename}}]]''' }}
                  | }} }} }}<!--
{{#ifexist:{{{{BASEPAGENAME}}/Info|info=pagename}}/Draft
                  |<br><font size=1>''[[{{{{BASEPAGENAME}}/Info|info=pagename}}/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 51: Line 54:
|-
|-
|
|
{| 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
{{ #ifexist: {{../../Info|info=pagename}}
    |
           | {{!}} {{click|image=Compare icon.png|link=Talk:{{../../Info|info=pagename}}/Approval |width=17px|height=17px}}
    |{{#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}}
           |{{!}}{{click|image=Unused button.png|link={{../../Metadata|info=pagename}}/Unused|width=17px|height=17px}}


            {{!}}{{click|image=Attention_niels_epting.png|link={{../../Info|info=pagename}}/Unused|width=17px|height=17px}}
{{!}}{{click|image=Metadata.png|link=Template:{{../../Metadata|info=pagename}}/Metadata|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:{{../../Info|info=pagename}}/Info|width=17px|height=17px}}
           |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
           |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
                 | {{!}} {{click|image=Compare icon.png|link=Talk:{{{{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}}/Info|width=17px|height=17px}}}}
{{!}} {{click|image=Approval button.png|link={{{{BASEPAGENAME}}|info=pagename}}/Approval |width=17px|height=17px}}


                 | {{!}} {{click|image=Compare icon.png|link=Talk:{{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}}/Info|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 84: Line 98:
  | <!--(Draft)-->{{Draft header2|status = {{{{BASEPAGENAME}}/Info|info=status}} }} {{#ifeq: {{{{BASEPAGENAME}}/Info|info=status}}|0||{{Checklist3|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|status= {{{{BASEPAGENAME}}/Info|info=status}} }} }}
  | <!--(Draft)-->{{Draft header2|status = {{{{BASEPAGENAME}}/Info|info=status}} }} {{#ifeq: {{{{BASEPAGENAME}}/Info|info=status}}|0||{{Checklist3|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|status= {{{{BASEPAGENAME}}/Info|info=status}} }} }}
  | {{ #ifexist: {{../../Info|info=pagename}}
  | {{ #ifexist: {{../../Info|info=pagename}}
  | <!--(signed article)-->{{Signed Article Header}}  
  | {{#ifeq: {{../../Info|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                      |<!--(signed article)-->{{Signed Article Header||group= {{../../Info|info=cat1}}|group2= {{../../Info|info=cat2}}|group3={{../../Info|info=cat3}}|abc={{../../Info|info=abc}}|status= {{../../Info|info=status}} }}
      | {{#ifeq: {{../../Info|info=pagename}}/Tables|{{BASEPAGENAME}}
                |<!--(table sub-subpage)-->{{Table Header||group= {{../../Info|info=cat1}}|group2= {{../../Info|info=cat2}}|group3={{../../Info|info=cat3}}|abc={{../../Info|info=abc}}|status= {{../../Info|info=status}} }}
                | {{#ifeq: {{../../Info|info=pagename}}/Timelines|{{BASEPAGENAME}}
                        |<!--(timeline sub-subpage)-->{{Timeline Header||group= {{../../Info|info=cat1}}|group2= {{../../Info|info=cat2}}|group3={{../../Info|info=cat3}}|abc={{../../Info|info=abc}}|status= {{../../Info|info=status}} }}
                                      |}} }} }}
    | {{#ifeq:{{SUBPAGENAME}}|Unused
    | {{#ifeq:{{SUBPAGENAME}}|Unused
   | <!--Unused subpages--> {{Unused subpages}}  
   | <!--Unused subpages--> {{Unused subpages}}  
Line 102: Line 122:
  | {{#ifeq:{{NAMESPACE}}|User talk
  | {{#ifeq:{{NAMESPACE}}|User talk
  |<!--not currently used--> (User talk page)
  |<!--not currently used--> (User talk page)
  | {{#ifeq:{{NAMESPACE}}|Template
  | {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Info|{{BASEPAGENAME}}
| <!--not currently used--> (template main page)
                        |<!--(metadata page)-->{{Metadata}}
| <!--not currently used--> (template talk page) }} }} }} }} }} }}<noinclude>
                                        | {{#ifeq:{{NAMESPACE}}|Template
 
                    | {{Metadata}}
 
    | (template talk page) }} }} }} }} }} }} }}<noinclude>
==Usage==
===Usage===
Examples of this templates use can be found at the [[Anthropology]] cluster (not approved) and the [[Life]] cluster (approved).
Examples of this templates use can be found at the [[Anthropology]] cluster (not approved) and the [[Life]] cluster (approved).
 
 
==Function==
Two functions are associated with this template.  First to place a subpage navigation box with the appropriate buttons on each page.  Second, to define the header and categories for each subpage.Templates associated with the {{tl|subpages4}} template are described below:
 
 
===Navigation box===
* {{tl|Subpage list 2}}
::Defines the button names and whether they are ''Default'' or ''Optional''
* {{tl|Default button 2}}
::Adds the ''Default'' buttons to the navigation box whether they exist or not (so expect to see some red links, the idea is to encourage people to create those missing subpages)
* {{tl|Optional button 2}}
::Adds the ''Optional'' buttons to the navigation box if they exist in the cluster. (these are added to the navigation box after the default buttons have been set).
* {{tl|Optional}} and {{tl|Default}}  
::Toggles button to on ON or OFF.  ON if the subpage is being viewed.  (also distinguish between a signed article (sub-subpage) and a regular subpage). (''I am sure there is a more economic way to do this.  If you're watching, and know how, feel free to step in and fix it'' :) Actually, I'm sure many parts of the whole set can be improved.  Please go ahead and tinker if you have some ideas.)
* {{tl|Button on}} and {{tl|Button off}}
::Define the ON and OFF button colour and style respectively.
For additional subpage ideas a new button can be added to the navigation box by replacing the '''''Button available''''' place holders in the {{tl|Subpage list 2}} template.  If there are no free buttons in the existing template then additional button code must be added to the following four templates:  {{tl|Subpage list 2}}, {{tl|Default button 2}}, {{tl|Optional button 2}} and {{tl|Unused subpages}}.
 
===Header and categories===
* {{tl|Anthropology/Info}} 
If the subpage4 concept is adopted each article will have its own ''info template''  (Anthropology linked above as an example). The ''info template'' is critical to the functionality of the subpages4 template since it is the central depository for all the information related to the article.  This includes the ''checklist'' template information, the ''approved'' template information and the ''ToApprove'' template information.
 
All the header templates discussed below access data from the ''info template''. This is a huge advantage since all the subpages are coordinated with the articles changing status, as recorded in the ''info template''.
:* {{tl|Approved2}} or {{tl|Construction2}}
:::One of these will be placed on the article page depending on whether the article is approved or not. Much of their usage depends on how we use the ''Draft pages'' in the future. At present, the example of subpages4 at the Anthropology cluster assumes that all writing will be done on the draft page, whereas the article will only have text once it is approved (NOTE:  this is not current practice but is an option that has been discussed in the forums. I have set it up this way to visualise how such a solution might look in practice.)
:* {{tl|Draft header2}} and  {{tl|Checklist3}}
:::The draft header will place either a short advert for the approved version (if exists) or an appeal to improve the article to a state where it can be approved.
:::The checklist3 template places the categories designated from the checklist data onto the Draft page (currently they go to the Talk:Draft page) or on the article in the case of an approved article. This is advantageous since at present every entry in the different categories starts with "Talk:". This is not a huge problem but having the page name first is an improvement, despite the fact that many names will have "/Draft" after them (exceptions are the approved articles).
:* {{tl|Related header2}}, {{tl|Bibliography header2}}, {{tl|Gallery header2}} and {{tl|Links header2}}
:::These represent preliminary ideas for adding a simple descriptive banner and categories to the subpages. They uses the information from the ''info template'' to add specific categories dependent on workgroups and whether the article is approved or not. Below are others that will probably function in a similar way.
:::* {{tl|Tables header2}}
:::* {{tl|Tutorials header2}}
:::* {{tl|Debate guide header2}}
:::* {{tl|News guide header2}}
:::* {{tl|Signed articles header2}}
:::* {{tl|Discography header2}}
:::* {{tl|Timelines header2}}
:::* {{tl|Signed Article Header}}
:* {{tl|Checklist2}}
:::This variant of the checklist is placed on the Talk:Draft page and adds the checklist to the top of the page.  Visually this is similar to the current checklist except the categories are not placed on this page and the data is cribbed from the articles ''info template''.
:* {{tl|Unused subpages}} 
:::This is used to identify any unused subpages in a particular cluster.
:* {{tl|Yes-or-no}}
:::This is used in both checklists
 
==Random thoughts==
Feel free to add new additions or suggest changes. Discussion of these points can continue of the talk page [[Template_talk:Subpages4]].


Ideas not yet incorporated into this tempalte:
#The placement of the ToApprove template will be controlled by this template when an editor adds their name to the ''ToA Editor'' field and completes all the other ToApprove fields in the "info template".
#: <s>The navigation box will be a different colour for approved articles (Green?).  This allows a reader to quickly note if the content has been approved, even when browsing the subpages.  Could also have a colour that designates when the cluster has a ToApprove template placed since it is often a time to mention problems with the articles and subpages on the talk page. These types of visual signals should aid the readers as well as authors.</s>
#::I just implemented this change.  The green colour is not the best choice the concept is now working.
#: <s>With the navigation box on the Talk:Draft page the archive box is semi-redundant.  The archive links can be incorporated into the {{Tl|checklist2}} table on the Talk:Draft page to free up space at the top of the page.</s> This is done now too although i note that the archive names chosen for chiropractic don't allow it to function.
#Need to have categories added automatically to the main article when not approved.  This is necessary, if we decide to only use the draft page after approval.
</noinclude>
</noinclude>

Latest revision as of 14:18, 18 August 2007

Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

This is a central location for all information relating to the

Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata cluster. It is critical to keep this page updated since the {{subpages}} and related templates use this information for the placement of categories and header templates in the cluster.

General article properties

pagename =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

variant =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

Required for checklist

abc =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat_check =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

status =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

underlinked =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cleanup =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

by =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat1 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat2 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat3 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

Required for the {{ToApprove}} template

article url =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

subpage url =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cluster =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

now =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor2 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor3 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor4 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

date =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

Required for the {{Approved}} template

The status parameter in the checklist (see above) of approved versions must be set to 0 (zero).
A editor =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

A editor2 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

A editor3 =
Cluster

[[Template:Subpages4/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

Usage

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