Template:Subpages4: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
imported>Chris Day
(test remove header code)
Line 33: Line 33:
|<center><font color="#333333" size=1>{{ #ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}}|[[{{../../Info|info=pagename}}/Unused|Unused subpages]]|[[{{BASEPAGENAME}}/Unused|Unused subpages]]}}</font></center>
|<center><font color="#333333" size=1>{{ #ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}}|[[{{../../Info|info=pagename}}/Unused|Unused subpages]]|[[{{BASEPAGENAME}}/Unused|Unused subpages]]}}</font></center>
|}
|}
|}<!--
<noinclude>
 
***The following code is to place the correct header template above each article subpage***
 
-->{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Talk||{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{{{BASEPAGENAME}}/Info|info=approved}}|yes|{{approved2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}}|editor= {{{{BASEPAGENAME}}/Info|info=A editor}}|editor2= {{{{BASEPAGENAME}}/Info|info=A editor2}}|editor3= {{{{BASEPAGENAME}}/Info|info=A editor3}}}}|{{Construction2}} }} }} }}
 
}}{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}/Draft|{{#ifeq:{{NAMESPACE}}|Talk||{{Draft header2}}{{Checklist3|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }} }}
 
}}{{ #ifeq: {{NAMESPACE}}:{{BASEPAGENAME}}|Talk:{{BASEPAGENAME}}|{{Checklist2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}}|cat_check = {{{{BASEPAGENAME}}/Info|info=cat_check}}|status = {{{{BASEPAGENAME}}/Info|info=status}}|underlinked = {{{{BASEPAGENAME}}/Info|info=underlinked}}|cleanup = {{{{BASEPAGENAME}}/Info|info=cleanup}}|by = {{{{BASEPAGENAME}}/Info|info=by}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/Unused|{{Unused subpages}}
 
}}{{ #ifeq: {{../../Info|info=pagename}}/Signed articles|{{BASEPAGENAME}}|{{Signed Article Header}}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{ {{Subpage list|button=1A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=2A}}|{{ {{Subpage list|button=2A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=3A}}|{{ {{Subpage list|button=3A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=4A}}|{{ {{Subpage list|button=4A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=5A}}|{{ {{Subpage list|button=5A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=6A}}|{{ {{Subpage list|button=6A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=7A}}|{{ {{Subpage list|button=7A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=8A}}|{{ {{Subpage list|button=8A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=9A}}|{{ {{Subpage list|button=9A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=10A}}|{{ {{Subpage list|button=10A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=11A}}|{{ {{Subpage list|button=11A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=12A}}|{{ {{Subpage list|button=12A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=13A}}|{{ {{Subpage list|button=13A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=14A}}|{{ {{Subpage list|button=14A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=15A}}|{{ {{Subpage list|button=15A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }}
 
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{ {{Subpage list|button=16A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }} }}<noinclude>


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

Revision as of 00:00, 25 July 2007

Cluster

Subpages4
InformationTemplate:Default button

About Clusters
Unused subpages


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

Templates associated with the subpages4 template:

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.

Navigation box

Defines the button names and whether they are Default or Optional
Definition of the ON button colour and style.
Definition of the OFF button colour and style.
Adds the Default buttons to the navigation box whether they exist or not (so expect so red links, the idea is to encourage people to create those missing subpages)
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).
Toggles button to on ON or OFF. ON if the subpage is being viewed. (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.)

Header and categories

  • {{Anthropology/Info}} each article will have its own info template if this subpage idea is adopted.
    This is critical to the whole function of the subpages4 template (Anthropology shown as an example). It is a central depository for all the information related to the article. This includes the checklist template information, the approved template information and the ToApprove template info. All the header tempaltes below access data from this info template.
    • {{Approved2}} or {{Construction2}} will be placed on the article page depending on whether the article is approved or not. Much of their usage depends on we use the Draft pages in the future. At present the example for Anthropology assumes that all writing will be done on the draft page where as the article will only have an article 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.)
    • {{Draft header2}} My idea for how this template will work has morphed into {{Checklist3}} This template places the categories designated from the checklist data on the Draft page (currently they go to the Talk:Draft page). This is advatageous since at present every entry in the categories starts with Talk:. This is not a huge problem but having the page name first is an improvement, despite the fact that every name has /Draft after it. One solution would be place these categories onto the articles main page, however, under this format (Draft page is edited for all articles) it is better having the category links go directly to the version being edited.
    • {{Related header2}}, {{Bibliography header2}}, {{Gallery header2}} and {{Links header2}} represent preliminary ideas for adding 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.
    • {{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.
    • {{Draft header2}} To be decided but might be good to advertise the fact there is an aproved version when that is the case.
    • {{Unused subpages}} This is used to identify any unused subpages ina particular cluster.
    • {{Yes-or-no}} This is used in both checklists