Template:Subpages4: Difference between revisions
imported>Chris Day |
imported>Chris Day No edit summary |
||
(42 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
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*** | ||
-->{|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" {{# | {|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|background:#C4DFC4| background:#C4D2DF}}" | |||
{{!}}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:{{../../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> | |||
{{{!}} 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 | |||
|'''[[{{{{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> | |||
{{{!}} 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|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 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 29: | Line 53: | ||
-->{{Optional_button 2}} | -->{{Optional_button 2}} | ||
|- | |- | ||
| | | | ||
| | {| align="right" border="0" cellpadding="1" cellspacing="0" | ||
| | {{#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}} | |||
|{{!}}{{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=Approval button.png|link={{../../Metadata|info=pagename}}/Approval |width=17px|height=17px}} | |||
|{{ #ifexist: {{{{BASEPAGENAME}}|info=pagename}} | |||
|{{!}}{{click|image=Unused button.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=Approval button.png|link={{{{BASEPAGENAME}}|info=pagename}}/Approval |width=17px|height=17px}} | |||
|{{!}}{{click|image=Unused button.png|link={{BASEPAGENAME}}/Unused|width=17px|height=17px}} | |||
{{!}}{{click|image=Metadata.png|link=Template:{{BASEPAGENAME}}/Metadata|width=17px|height=17px}} | |||
{{!}} {{click|image=Approval button.png|link={{BASEPAGENAME}}/Approval |width=17px|height=17px}}}}}} | |||
|} | |||
|} | |} | ||
|}<!-- | |}<!-- | ||
Line 39: | Line 94: | ||
-->{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}} | -->{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}} | ||
| {{ #ifeq: {{BASEPAGENAME}}|{{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}} }}| | | <!--(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 | | {{#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}} }} }} | | <!--(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}} }} }} | ||
| {{ #ifeq: {{../../Info|info=pagename}}/Signed | | {{ #ifexist: {{../../Info|info=pagename}} | ||
| {{#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 61: | Line 122: | ||
| {{#ifeq:{{NAMESPACE}}|User talk | | {{#ifeq:{{NAMESPACE}}|User talk | ||
|<!--not currently used--> (User talk page) | |<!--not currently used--> (User talk page) | ||
| {{#ifeq:{{ | | {{#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). | |||
=== | |||
</noinclude> | </noinclude> |
Latest revision as of 14:18, 18 August 2007
This is a central location for all information relating to the
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 =
Template loop detected: Template:Metadata
- variant =
Template loop detected: Template:Metadata
Required for checklist
- abc =
Template loop detected: Template:Metadata
- cat_check =
Template loop detected: Template:Metadata
- status =
Template loop detected: Template:Metadata
- underlinked =
Template loop detected: Template:Metadata
- cleanup =
Template loop detected: Template:Metadata
- by =
Template loop detected: Template:Metadata
- cat1 =
Template loop detected: Template:Metadata
- cat2 =
Template loop detected: Template:Metadata
- cat3 =
Template loop detected: Template:Metadata
Required for the {{ToApprove}} template
- article url =
Template loop detected: Template:Metadata
- subpage url =
Template loop detected: Template:Metadata
- cluster =
Template loop detected: Template:Metadata
- now =
Template loop detected: Template:Metadata
- ToA editor =
Template loop detected: Template:Metadata
- ToA editor2 =
Template loop detected: Template:Metadata
- ToA editor3 =
Template loop detected: Template:Metadata
- ToA editor4 =
Template loop detected: Template:Metadata
- date =
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 =
Template loop detected: Template:Metadata
- A editor2 =
Template loop detected: Template:Metadata
- A editor3 =
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).