Template:Subpages2: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
imported>Chris Day
(now use for transition for the switch to metadata pages)
Line 1: Line 1:
<!--encompassing table, for padding around the table-->
<!--
{|align=right width="110px" cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
 
***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***
 
-->{|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="100px" border="0" cellpadding="1" cellspacing="3" style="background:#B8DAE5"
{|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}}
|align=center|<font size=1>'''Infoset'''</font>
  |{{#ifeq:{{../../Info|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
{{ #ifeq: {{#expr: {{#len:{{{pagename}}}}} > 20 }} | 1 | '''[[{{NAMESPACE}}:{{{pagename}}}|Main Article]]''' | '''[[{{NAMESPACE}}:{{{pagename}}}|{{{pagename}}}]]''' }}
{{!}}align=center {{!}}<font size=1>'''Cluster'''</font>
{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Draft|<br><font size=1>''[[{{{pagename}}}/Draft|Draft Page]]''</font>}}
{{ #ifeq: {{#expr: {{#len:{{../../Info|info=pagename}}}} > 20 }} | 1  
              |'''[[{{../../Info|info=pagename}}|Main Article]]'''
              |'''[[{{../../Info|info=pagename}}]]''' }}
{{#ifexist:{{../../Info|info=pagename}}/Draft
                  |<br><font size=1>''[[{{../../Info|info=pagename}}/Draft|Draft Page]]''</font>
                  | }}
  |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
          |  {{#ifeq:{{{{BASEPAGENAME}}|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}|info=pagename}}}} > 20 }} | 1
                  |'''[[{{{{BASEPAGENAME}}|info=pagename}}|Main Article]]'''  
                  |'''[[{{{{BASEPAGENAME}}|info=pagename}}]]''' }}
{{#ifexist:{{{{BASEPAGENAME}}|info=pagename}}/Draft
                  |<br><font size=1>''[[{{{{BASEPAGENAME}}|info=pagename}}/Draft|Draft Page]]''</font>
                  | }}
          |  {{#ifeq:{{{{BASEPAGENAME}}/Info|info=status}}|0|background:#C4DFC4| background:#C4D2DF}}"
{{!}}align=center  {{!}}<font size=1>'''Cluster'''</font>
{{ #ifeq: {{#expr: {{#len:{{{{BASEPAGENAME}}/Info|info=pagename}}}} > 20 }} | 1
                  |'''[[{{{{BASEPAGENAME}}/Info|info=pagename}}|Main Article]]'''
                  |'''[[{{{{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 subpage list row template is used to create the table cell for each specific button. Also, if the current page is the subpage, it uses the "button on" style template, otherwise the "button off" style template is used. ***
 
-->{{Default button 2}}<!--
 
***The following template identifies the subpages in the Template:Subpage list that are tagged as Optional. If the subpage exists it adds the button after the default buttons in the numerical sequence defined in the subpage list template.
 
Again, the subpage list row template is used to create the table cell for each specific button. Also, if the current page is the subpage, it uses the "button on" style template, otherwise the "button off" style template is used.***
 
-->{{Optional_button 2}}
|-
|-
|align=center bgcolor="#dddddd" style="border-bottom:2px solid #aaaaaa; border-top:2px solid #eeeeee; border-left:2px solid #bbbbbb; border-right:2px solid #ffffff"|<font size=1>[[{{NAMESPACE}}:{{{pagename}}}/Related|Related&nbsp;Articles]]</font>
|
|-
{| align="right" border="0" cellpadding="2" cellspacing="0"
|align=center bgcolor="#dddddd" style="border-bottom:2px solid #aaaaaa; border-top:2px solid #eeeeee; border-left:2px solid #bbbbbb; border-right:2px solid #ffffff"|<font size=1>[[{{NAMESPACE}}:{{{pagename}}}/Bibliography|Bibliography]]</font>
{{#ifeq:{{NAMESPACE}}|Talk||{{!}}{{clickurl|image=Print icon.png|link=http://en.citizendium.org/wiki?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
|-
{{ #ifexist: {{../../Info|info=pagename}}
|align=center bgcolor="#dddddd" style="border-bottom:2px solid #aaaaaa; border-top:2px solid #eeeeee; border-left:2px solid #bbbbbb; border-right:2px solid #ffffff"|<font size=1>[[{{NAMESPACE}}:{{{pagename}}}/Links|External&nbsp;Links]]</font><nowiki>
          |{{!}} {{click|image=Compare icon.png|link=Talk:{{../../Info|info=pagename}}/Approval |width=17px|height=17px}}
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Tables|{{subpage_list_row2|Tables|Tables|pagename={{{pagename}}}}}}}<nowiki>
 
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Gallery|{{subpage_list_row2|Gallery|Gallery|pagename={{{pagename}}}}}}}<nowiki>
{{!}}{{click|image=Attention_niels_epting.png|link={{../../Info|info=pagename}}/Unused|width=17px|height=17px}}
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Timelines|{{subpage_list_row2|Timelines|Timelines|pagename={{{pagename}}}}}}}<nowiki>
 
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Tutorials|{{subpage_list_row2|Tutorials|Tutorials|pagename={{{pagename}}}}}}}<nowiki>
{{!}}{{click|image=Information_icon.svg.png|link=Template:{{../../Info|info=pagename}}/Info|width=17px|height=17px}}
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Debate guide|{{subpage_list_row2|Debate guide|Debate Guide|pagename={{{pagename}}}}}}}<nowiki>
          |{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}}
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/News guide|{{subpage_list_row2|News guide|News Guide|pagename={{{pagename}}}}}}}<nowiki>
                |{{!}} {{click|image=Compare icon.png|link=Talk:{{{{BASEPAGENAME}}|info=pagename}}/Approval |width=17px|height=17px}}
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Signed articles|{{subpage_list_row2|Signed articles|Signed Articles|pagename={{{pagename}}}}}}}<nowiki>
 
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Other1|{{subpage_list_row2|Other1|Other1|pagename={{{pagename}}}}}}}<nowiki>
{{!}}{{click|image=Attention_niels_epting.png|link={{{{BASEPAGENAME}}|info=pagename}}/Unused|width=17px|height=17px}}
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Other2|{{subpage_list_row2|Other2|Other2|pagename={{{pagename}}}}}}}<nowiki>
 
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Other3|{{subpage_list_row2|Other3|Other3|pagename={{{pagename}}}}}}}<nowiki>
{{!}}{{click|image=Information_icon.svg.png|link=Template:{{{{BASEPAGENAME}}|info=pagename}}/Info|width=17px|height=17px}}
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Other4|{{subpage_list_row2|Other3|Other4|pagename={{{pagename}}}}}}}<nowiki>
 
</nowiki>{{#ifexist:{{NAMESPACE}}:{{{pagename}}}/Discography|{{subpage_list_row2|Discography|Discography|pagename={{{pagename}}}}}}}
                |{{!}} {{click|image=Compare icon.png|link=Talk:{{BASEPAGENAME}}/Approval |width=17px|height=17px}}
|-
 
|<center><font size=1>''[[CZ:Subpage Pilot|About Infosets]]''</font></center>
{{!}}{{click|image=Attention_niels_epting.png|link={{BASEPAGENAME}}/Unused|width=17px|height=17px}}
|}
|}<noinclude>


== Placement ==
{{!}}{{click|image=Information_icon.svg.png|link=Template:{{BASEPAGENAME}}/Info|width=17px|height=17px}}}}}}
Use on the top of pages as an index mechanism. This is only used on the signed article pages in an articles infoset


== Usage ==
|{{click|image=Pictogram_voting_question.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
For an example of the usage see the signed article by [[Biology/Signed_articles/Fundamental_Questions_in_Biology_—_A_2006_PLoS_Editorial_by_Simon_A._Levin|Simon Levin]].
<br><br><br><br>
{|border="0" colspan="3" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff; class="wikitable";"
|<pre>{{Subpages2|pagename=Subpages2}}</pre>
|{{Subpages}}
|
{|class="wikitable"
|{{Subpages2|pagename=Subpages2}}
|}
|}
|-
!Wikitext!!Appearance!!Anatomical
|}
|}
|}<!--


==Parameters==
***The following code is to place the correct header template above each article subpage***
<pre>
{{subpages2
|pagename=
}}
</pre>
 
'''NOTE:''' this template requires the BASEPAGENAME to be designated with the pagename field in the template.  For example, at the top of a signed article that is part of the [[Biology]] infoset the template usage is a follows '''<nowiki>{{subpages2|pagename=Biology}}</nowiki>'''.


==Credits==
-->{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
| <!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Info|info=status}}|0|{{approved2|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}}|editor= {{{{BASEPAGENAME}}/Info|info=A editor}}|editor2= {{{{BASEPAGENAME}}/Info|info=A editor2}}|editor3= {{{{BASEPAGENAME}}/Info|info=A editor3}}}}{{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}} }}|}}
|   {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(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}}
| <!--(signed article)-->{{Signed Article Header}}
  | {{#ifeq:{{SUBPAGENAME}}|Unused
  | <!--Unused subpages--> {{Unused subpages}}
  | <!--(All subpage articles)-->{{ {{SUBPAGENAME}} header2|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}} }}    }} }} }} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq:{{NAMESPACE}}|Talk
| {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(Draft Talk page) always place the checklist here if the page exists-->{{Checklist2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|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}} }}
| <!--not currently used--> (All subpage articles Talk) }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User subpage)
| <!--not currently used--> (User subpage 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}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|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:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
|  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Info|{{BASEPAGENAME}}
                        |<!--(metadata page)-->{{Metadata}}
                                        | {{#ifeq:{{NAMESPACE}}|Template
                    | {{Metadata}}
    | (template talk page) }} }} }} }} }} }} }}<noinclude>
===Usage===
Examples of this templates use can be found at the [[Anthropology]] cluster (not approved) and the [[Life]] cluster (approved).


* [[User:Chris Day|Chris Day]]
* [[User:Stephen Ewen|Stephen Ewen]]
* [[User:Larry Sanger|Larry Sanger]]
</noinclude>
</noinclude>

Revision as of 11:42, 5 August 2007

Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

This is a central location for all information relating to the

Cluster

[[Template:Subpages2/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:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

variant =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

Required for checklist

abc =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat_check =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

status =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

underlinked =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cleanup =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

by =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat1 =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat2 =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cat3 =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

Required for the {{ToApprove}} template

article url =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

subpage url =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

cluster =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

now =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor2 =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor3 =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

ToA editor4 =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

date =
Cluster

[[Template:Subpages2/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:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

A editor2 =
Cluster

[[Template:Subpages2/Info]]

Related Articles  #
Bibliography  #
External Links  #

Template loop detected: Template:Metadata

A editor3 =
Cluster

[[Template:Subpages2/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).