Template:Subpage style: Difference between revisions
Jump to navigation
Jump to search
imported>Chris Day No edit summary |
imported>Chris Day No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;"> | <includeonly><div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;"> | ||
{ | {|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff" | ||
|- | |||
|<!-- | |||
***Code to add the status bar on the article and all subpages.*** | ***Code to add the status bar on the article and all subpages.*** | ||
-->{{#ifeq:{{{status|}}}|0 | -->{{#ifeq:{{{status|}}}|0 | ||
|rowspan=2 width=2px valign=top align=left style="background:#C4DFC4; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:2px solid #dddddd;"{{!}}[[Image:Statusbar0.gif]] | |||
|rowspan=2 width=2px valign=top align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:1px solid #dddddd;"{{!}}[[image:Statusbar{{{status|}}}.png]]}}<nowiki> | |||
</nowiki>{{ #ifeq: {{{current pagename}}} |{{{basepagename}}} | </nowiki>{{ #ifeq: {{{current pagename}}} |{{{basepagename}}} | ||
| {{button on2|status= {{{status|}}}}} | |||
| {{button off2}}}}{{!}}<font size=1>[[{{{basepagename}}}|Main Article]]</font><nowiki> | |||
</nowiki>{{#ifeq: {{{status|}}}|0 | </nowiki>{{#ifeq: {{{status|}}}|0 | ||
|{{#ifeq:{{NAMESPACE}}|Talk | |||
|{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font> | |||
|{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>}} | |||
|{{#ifeq:{{NAMESPACE}}|Talk | |||
|{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font> | |||
|{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font>}} }}<nowiki> | |||
</nowiki>{{ #ifexist: {{{basepagename}}}/Draft| {{ #ifeq: {{{current pagename}}} |{{{basepagename}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{basepagename}}}/Draft|Draft]]</font> }} }} }} }}<nowiki> | </nowiki>{{ #ifexist: {{{basepagename}}}/Draft| {{ #ifeq: {{{current pagename}}} |{{{basepagename}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{basepagename}}}/Draft|Draft]]</font> }} }} }} }}<nowiki> | ||
Line 106: | Line 106: | ||
</nowiki>{{Button_off25}}|{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}} | </nowiki>{{Button_off25}}|{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}} | ||
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"| | |||
|- | |||
|{{Cell_style|pagename= {{{pagename|}}}|status= {{{status|}}}{{ #ifeq: {{{current pagename}}}|{{{full-pagename}}} | |||
| {{ #ifeq: {{{basepagename}}}|{{{full-pagename}}} | |||
|<!--(Article)-->{{#ifeq:{{{status|}}}|0|<!-- | |||
***Next section is the approved template, it is only placed on approved article. *** | ***Next section is the approved template, it is only placed on approved article. *** | ||
Line 116: | Line 116: | ||
-->__NOEDITSECTION__ | -->__NOEDITSECTION__ | ||
'''Article approved''' <small>{{#if:{{{editor}}}|{{#if:{{{editor2|}}}|{{#if:{{{editor3|}}}|by three editors ([[User:{{{editor}}}|first]], [[User:{{{editor2}}}|second]] and [[User:{{{editor3}}}|third]]; see the [[Talk:{{{ current pagename }}}/Draft|talk page]])|by two editors ([[User:{{{editor}}}|first]] and [[User:{{{editor2}}}|second]]; see the [[Talk:{{{ current pagename }}}/Draft|talk page]])}}|by [[User:{{{editor}}}|an editor]] (see the [[Talk:{{{ current pagename }}}/Draft|talk page]])}} |no known editors, please ask a constable to update this template}} of {{#if:{{{group}}}|{{#if:{{{group2|}}}|{{#if:{{{group3|}}}|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]], [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]] and [[CZ:{{{group3}}} Workgroup|{{{group3}}} Workgroup]]|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]] and [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]]}}|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]]}}|an unknown workgroup, please ask a constable to update this template}} ''The Citizendium Foundation and Citizendium participants make no representations about the reliability of this article or its suitability for any purpose.''</small> <br/> <div align=center>'''Help improve this article further on [[{{PAGENAME}}/Draft|the draft page]]!'''</div> |''This is a '''draft article''', under development. These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}} | '''Article approved''' <small>{{#if:{{{editor}}}|{{#if:{{{editor2|}}}|{{#if:{{{editor3|}}}|by three editors ([[User:{{{editor}}}|first]], [[User:{{{editor2}}}|second]] and [[User:{{{editor3}}}|third]]; see the [[Talk:{{{ current pagename }}}/Draft|talk page]])|by two editors ([[User:{{{editor}}}|first]] and [[User:{{{editor2}}}|second]]; see the [[Talk:{{{ current pagename }}}/Draft|talk page]])}}|by [[User:{{{editor}}}|an editor]] (see the [[Talk:{{{ current pagename }}}/Draft|talk page]])}} |no known editors, please ask a constable to update this template}} of {{#if:{{{group}}}|{{#if:{{{group2|}}}|{{#if:{{{group3|}}}|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]], [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]] and [[CZ:{{{group3}}} Workgroup|{{{group3}}} Workgroup]]|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]] and [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]]}}|the [[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]]}}|an unknown workgroup, please ask a constable to update this template}} ''The Citizendium Foundation and Citizendium participants make no representations about the reliability of this article or its suitability for any purpose.''</small> <br/> <div align=center>'''Help improve this article further on [[{{PAGENAME}}/Draft|the draft page]]!'''</div> |''This is a '''draft article''', under development. These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}} | ||
|{{#ifeq:{{SUBPAGENAME}}|Draft | |||
|<!--(Draft)--> <small>''Most recent approved version: [[{{{basepagename}}}]]''</small> | |||
|{{ #ifexist: {{../../Metadata|info=pagename}} | |||
|{{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename}}} | |||
|<!--(signed article)-->''An article by '''{{SUBPAGENAME}}''' relating to the topic of [[{{{pagename|}}}]].'' | |||
[[Category:Signed Articles|{{{abc|}}}]] | [[Category:Signed Articles|{{{abc|}}}]] | ||
[[Category:{{{group}}} Signed Articles|{{{abc|}}}]] | [[Category:{{{group}}} Signed Articles|{{{abc|}}}]] | ||
Line 129: | Line 129: | ||
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Signed Articles|{{{abc|}}}]] |}} | {{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Signed Articles|{{{abc|}}}]] |}} | ||
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Signed Articles|{{{abc|}}}]] |}} }} | {{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Signed Articles|{{{abc|}}}]] |}} }} | ||
| {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename}}} | |||
|<!--(Catalog sub-subpage)-->''A catalog relating to the topic of [[{{{pagename|}}}]].'' | |||
[[Category:Catalogs|{{{abc|}}}]] | [[Category:Catalogs|{{{abc|}}}]] | ||
[[Category:{{{group}}} Catalogs|{{{abc|}}}]] | [[Category:{{{group}}} Catalogs|{{{abc|}}}]] | ||
Line 139: | Line 139: | ||
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Catalogs|{{{abc|}}}]] |}} | {{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Catalogs|{{{abc|}}}]] |}} | ||
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Catalogs|{{{abc|}}}]] |}} }} | {{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Catalogs|{{{abc|}}}]] |}} }} | ||
| {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename}}} | |||
|<!--(timeline sub-subpage)-->''A timeline relating to the topic of [[{{{pagename|}}}]].'' | |||
[[Category:Timelines|{{{abc|}}}]] | [[Category:Timelines|{{{abc|}}}]] | ||
[[Category:{{{group}}} Timelines|{{{abc|}}}]] | [[Category:{{{group}}} Timelines|{{{abc|}}}]] | ||
Line 150: | Line 150: | ||
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Timelines|{{{abc|}}}]] |}} }} | {{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Timelines|{{{abc|}}}]] |}} }} | ||
|}} }} }} | |}} }} }} | ||
|{{#ifeq:{{SUBPAGENAME}}|Unused | |||
| <!--Unused subpages--> | |||
| <!--(All subpage articles)-->{{ {{SUBPAGENAME}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }} }} }} }} }} | |||
| {{#ifeq: {{{basepagename}}}/{{SUBPAGENAME}}|{{{current pagename}}} | |||
| {{#ifeq:{{NAMESPACE}}|Talk | |||
| {{#ifeq:{{SUBPAGENAME}}|Draft | |||
| <!--(Draft Talk page) always place the checklist here if the page exists-->{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{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) -->{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{by|}}} }} }} | |||
| {{#ifeq:{{NAMESPACE}}|User | |||
| <!--not currently used--> (User page) | |||
| {{#ifeq:{{NAMESPACE}}|User talk | |||
|<!--not currently used--> (User talk page) | |||
| {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename}}} | |||
|<!--(metadata page)--> | |||
| {{#ifeq:{{NAMESPACE}}|Template | |||
| | |||
| (template talk page) }} }} }} }} }} }} | |||
|}</div>{{ #ifeq: {{{current pagename}}}|{{{full-pagename}}} | |||
| {{ #ifeq: {{{basepagename}}}|{{{full-pagename}}} | |||
|<!--(Article)-->{{#ifeq:{{{status|}}}|0||{{#if:{{{ToA editor| }}}|<!-- | |||
***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section.*** | ***This To Approve template is only activated in the cluster when an editor adds their name to the metadata ToApprove section.*** |
Revision as of 22:40, 1 October 2007
Usage
See CZ:Using the Subpages template for information on how to use this template. See CZ:Subpages for an introduction to the concept and our use of subpages.
Examples of this templates use can be found at the Test article cluster (unapproved) and the Biology cluster (approved).