Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
mNo edit summary
(245 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;">
<div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;">
{|class=noprint width="100%" border="0" cellpadding="4" cellspacing="0" style="background:#{{{background|}}}"
{|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"
|-
|-
|<!--
|<!--


***Adds the status bar on the article and all subpages.***
***Adds the status bar on the article and all subpages.***
|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}


-->{{#ifeq:{{{status|}}}|0
-->{{#ifexist: image:Statusbar{{{status|}}}.png
          |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 {{#ifeq:{{{status|}}}|0|style="background:#{{{approved color|}}};|style="background:#{{{not approved color|}}};}} border-left:1px solid #aaaaaa; border-bottom:1px solid #aaaaaa; border-top:1px solid #aaaaaa; border-right:1px solid #aaaaaa;"{{!}} [[Image:Statusbar{{{status|}}}.png|10pxl|{{#ifeq: 0 |{{{status}}}|{{statusmessage|has a Citable Version}}|}}{{#ifeq: 1 |{{{status|}}}|{{statusmessage|is developed but not approved}}|}}{{#ifeq: 2 | {{{status|}}}|{{statusmessage|is developing and not approved}}|}}{{#ifeq: 3 | {{{status|}}}|{{statusmessage|is a stub and thus not approved}}|}}{{#ifeq: 4 | {{{status|}}}|{{statusmessage|is basically copied from an external source and has not been approved}}|}}{{#ifeq: 5 | {{{status|}}}|{{statusmessage|has a Citable Version}}|}}]]
          |{{#ifexist: image:Statusbar{{{status|}}}.png
                 |rowspan=2 align=center width=2px style="background:#{{{not approved color|}}}; border-left:1px solid #aaaaaa; border-bottom:1px solid #aaaaaa; border-top:1px solid #aaaaaa; border-right:1px solid #aaaaaa;"{{!}}Please [[Template:{{BASEPAGENAMEE}}/Metadata|'''update&nbsp;the&nbsp;status&nbsp;field''']] to a value between '''0-4''' [[Category:Articles_with_Ambiguous_Status]] }}<!--
                |{{#ifeq: {{{status|}}}|currently no status
                      |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]] [[Category:Articles_with_Ambiguous_Status]]
                      |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]]}}
                 |rowspan=2 align=center width=2px style="background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb; border-top:2px solid #dddddd; border-right:1px solid #dddddd;"{{!}}Please [http://en.citizendium.org/wiki?title=Template:{{BASEPAGENAMEE}}/Metadata&action=edit '''update&nbsp;the&nbsp;status&nbsp;field'''] to a value between '''0-4''' [[Category:Articles_with_Ambiguous_Status]] }} }}<!--


***Adds the MAIN ARTICLE tab***
***Adds the MAIN ARTICLE tab***


-->{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|button on2|x0}}|status= {{{status|}}}}}{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|x0|button off2}}|}}{{!}}<font size=1>[[{{{pagename|}}}|Main Article]]</font><!--
-->{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|button on2|x0}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}}{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|x0|button off2}}|button off color={{{button off color|}}}}}{{!}}<font size=2>[[{{{pagename|}}}|Main Article]]</font><!--


***Adds the TALK tab and ensures it always links to the correct talk page from all the different cluster pages. Also indicates if on a talk page or not. ***
***Adds the TALK tab and ensures it always links to the correct talk page from all the different cluster pages. Also indicates if on a talk page or not. ***


-->{{#ifeq: {{{status|}}}|0
-->{{#ifeq:{{{namespace|}}}|Talk
                      |{{#ifeq:{{{namespace|}}}|Talk
                             |{{button on2|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}|Discussion]]</font>
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>
                             |{{button off2|button off color={{{button off color|}}}}}{{!}}<font size=2>[[Talk:{{{pagename|}}}|Discussion]]</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>}} }}<!--


***Adds the DRAFT tab but only if the article is approved. ***
***Adds the Definition tab***


-->{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{{name|}}} |{{{pagename|}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{pagename|}}}/Draft|Draft]]</font> }}<!--
-->{{#ifexist:{{{pagename}}}/Definition
|
|{{#ifeq:{{{pagename}}}|{{{name}}}
|{{#ifexist:Template:Def {{{basepagename}}}
|
|{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}/Definition|button on2|x0}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}}{{{{ #ifeq: {{{name|}}}|{{{basepagename|}}}/Definition|x0|button off2}}|button off color={{{button off color|}}}}}{{!}}<font size=2>[https://en.citizendium.org/wiki/index.php?action=edit&title={{{basepagenamee|}}}/Definition <font color=#810541>Definition</font>]</font>&nbsp;[[CZ:Definitions|<span style="font-size:0.9em;"><sup>[?]</sup></span>]]}} }} }}<!--


***Adds the DEFAULT subpage tabs. ***
***Adds the DEFAULT subpage tabs. ***


-->{{Default3|{{Subpage list 2|button=1A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
-->{{Default3|{{Subpage list|button=1A}}|{{Subpage list|button=1B}} |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Default3|{{Subpage list 2|button=2A}}  |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Default3|{{Subpage list|button=2A}}|{{Subpage list|button=2B}}  |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Default3|{{Subpage list 2|button=3A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<!--
</nowiki>{{Default3|{{Subpage list|button=3A}}|{{Subpage list|button=3B}} |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{#ifeq: {{{status|}}}|4|{{Default4|{{Subpage list|button=21A}}|{{Subpage list|button=21B}} |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}}}<nowiki>
 
</nowiki>{{#ifeq: {{{status|}}}|3|{{Default4|{{Subpage list|button=21A}}|{{Subpage list|button=21B}} |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}}}<nowiki>
 
</nowiki>{{#ifeq: {{{status|}}}|2|{{Default4|{{Subpage list|button=21A}}|{{Subpage list|button=21B}} |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}}}<nowiki>
 
</nowiki>{{#ifeq: {{{status|}}}|1|{{Default4|{{Subpage list|button=21A}}|{{Subpage list|button=21B}} |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}}}<nowiki>
 
</nowiki>{{#ifeq: {{{status|}}}|0|{{Default4|{{Subpage list|button=21A}}|{{Subpage list|button=21B}} |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}}}}}}<!--


***Adds the OPTIONAL subpage tabs if the page exists. ***
***Adds the OPTIONAL subpage tabs if the page exists. ***


-->{{Optional3|{{Subpage list 2|button=4A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}} }}<nowiki>
-->{{#ifeq: {{{status|}}}|5|{{Optional4|{{Subpage list|button=21A}}|{{Subpage list|button=21B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}} }}}}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=4A}}|{{Subpage list|button=4B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}} }}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=5A}}|{{Subpage list|button=5B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=6A}}|{{Subpage list|button=6B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=7A}}|{{Subpage list|button=7B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=8A}}|{{Subpage list|button=8B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=5A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=9A}}|{{Subpage list|button=9B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=6A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=10A}}|{{Subpage list|button=10B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=7A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=11A}}|{{Subpage list|button=11B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=8A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=12A}}|{{Subpage list|button=12B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=9A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=13A}}|{{Subpage list|button=13B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=10A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=14A}}|{{Subpage list|button=14B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=11A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=15A}}|{{Subpage list|button=15B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=12A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=16A}}|{{Subpage list|button=16B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=13A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=17A}}|{{Subpage list|button=17B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=14A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=18A}}|{{Subpage list|button=18B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=15A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=19A}}|{{Subpage list|button=19B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=16A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=20A}}|{{Subpage list|button=20B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=17A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=22A}}|{{Subpage list|button=22B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=18A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=23A}}|{{Subpage list|button=23B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=19A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=24A}}|{{Subpage list|button=24B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Optional3|{{Subpage list 2|button=20A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
</nowiki>{{Optional3|{{Subpage list|button=25A}}|{{Subpage list|button=25B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>


</nowiki>{{Button_off25}}|{{click|image=Subpages.png|link=CZ:Subpages |width=17px|height=17px}}
</nowiki>{{Optional3|{{Subpage list|button=26A}}|{{Subpage list|button=26B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
 
</nowiki>{{Optional3|{{Subpage list|button=27A}}|{{Subpage list|button=27B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=28A}}|{{Subpage list|button=28B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=29A}}|{{Subpage list|button=29B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{Optional3|{{Subpage list|button=30A}}|{{Subpage list|button=30B}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}|status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki>
 
</nowiki>{{#ifeq:{{{tab1|}}} |
      |
      | {{Default3 |{{{tab1|}}}|{{{tab1|}}}| approved color={{{approved color|}}}| not approved color={{{not approved color|}}}| button off color={{{button off color|}}}| status = {{{status|}}}| pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}} }} }}{{#ifeq:{{{tab2|}}} |
            |
            | {{Default3 |{{{tab2|}}}|{{{tab2|}}}| approved color={{{approved color|}}}| not approved color={{{not approved color|}}}| button off color={{{button off color|}}}| status = {{{status|}}}| pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}} }} }}{{#ifeq:{{{tab3|}}} |
                  |
                  | {{Default3 |{{{tab3|}}}|{{{tab3|}}}| approved color={{{approved color|}}}| not approved color={{{not approved color|}}}| button off color={{{button off color|}}}| status = {{{status|}}}| pagename={{{pagename|}}}|basepagenamee={{{basepagenamee|}}}|name={{{name|}}} }} }}<nowiki>
 
</nowiki>{{Button_off2|button off color={{{button off color|}}}}}|{{click|image=Subpages.png|link=CZ:Subpages |width=14px|height=14px}}{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|width=14px|height=14px}}
|width=100% style="background-color: #{{{background|}}}; border-bottom:1px solid #aaaaaa"|&nbsp;
|-  
|-  
|colspan=20 {{#ifeq: {{{status|}}}|0
|height=40px colspan=20 {{#ifeq: {{{status|}}}|0
         |align=left style="background:#C4DFC4; {{#ifeq:{{{name|}}}|{{{basepagename|}}}|{{#ifeq:{{{namespace|}}}||border-left:2px solid #aaaaaa|border-left:2px solid #bbbbbb}}|border-left:2px solid #bbbbbb}}
         |style="background:#{{{approved color|}}}
         |align=left style="background:#C4D2DF; {{#ifeq:{{{name|}}}|{{{basepagename|}}}|{{#ifeq:{{{namespace|}}}||border-left:2px solid #aaaaaa|border-left:2px solid #bbbbbb}}|border-left:2px solid #bbbbbb}} }}; padding: 2px 2px 2px 2px; border-bottom:2px solid #bbbbbb"|
         |style="background:#{{{not approved color|}}} }}; padding: 2px 2px 2px 2px; border-right:1px solid #aaaaaa; border-bottom:1px solid #aaaaaa"|
{| height=25px align="right" border="0" cellpadding="2" cellspacing="0"
{| height=25px align="right" border="0" cellpadding="2" cellspacing="0"
{{ #ifeq:{{{namespace|}}}|Template
{{ #ifeq:{{{namespace|}}}|Template
Line 92: Line 127:
                             |{{!}}{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|width=17px|height=17px}}
                             |{{!}}{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|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}} }}
{{#ifeq:{{{namespace|}}}|Talk||{{!}}{{clickurl|image=Print button.png|link=https://en.citizendium.org/wiki/index.php?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
      |{{ {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
        |<!--(Article)-->To Approve Inner
            |{{ #ifeq: {{{type}}}|subsubpage
                  |<!--ALL subsubpages-->Subsubpages IN
                  |<!--(All Subpage articles)-->To Approve Inner }} }}|status={{{status|}}}|pagename={{{pagename|}}}|fullpagename={{{fullpagename|}}} |basepagename={{{basepagename|}}}| namespace={{{namespace|}}} |subpagename={{{subpagename|}}} |group={{{group|}}} |group2={{{group2|}}} |group3={{{group3|}}} |abc={{{abc|}}} |cluster= {{{cluster|}}} |article url= {{{article url|}}} |subpage url= {{{subpage url|}}} |now= {{{ now|}}} |date={{{date|}}} |ToA editor={{{ToA editor|}}} |ToA editor2={{{ToA editor2|}}} |ToA editor3={{{ToA editor3|}}} |subgroup={{{subgroup|}}} |subgroup2={{{subgroup2|}}} |subgroup3={{{subgroup3|}}} |variant= {{{variant|}}} |cat_check= {{{cat_check|}}} |underlinked= {{{underlinked|}}} |cleanup= {{{cleanup|}}} |by= {{{by|}}} |A editor= {{{A editor|}}}|A editor2= {{{A editor2|}}}|A editor3= {{{A editor3|}}}| basepagenamee={{{basepagenamee|}}}| tab1={{{tab1|}}}| tab2={{{tab2|}}}| tab3={{{tab3|}}} }}
      |{{ {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
              | {{#ifeq:{{{namespace|}}}|Template
                    |<!--(the metadata template)-->Metadata header
                    |<!--All subpage Talk pages-->{{#ifeq:{{{subpagename|}}}|Draft
                            | <!--(Draft Talk page) -->To Approve Inner
                      | <!--(All subpage Talk pages other than draft)-->All Subpage Talk In }} }}
              |<!--(Article Talk page)-->To Approve Inner}}|status={{{status|}}}|pagename={{{pagename|}}}|fullpagename={{{fullpagename|}}} |basepagename={{{basepagename|}}}| namespace={{{namespace|}}} |subpagename={{{subpagename|}}} |group={{{group|}}} |group2={{{group2|}}} |group3={{{group3|}}} |abc={{{abc|}}} |cluster= {{{cluster|}}} |article url= {{{article url|}}} |subpage url= {{{subpage url|}}} |now= {{{ now|}}} |date={{{date|}}} |ToA editor={{{ToA editor|}}} |ToA editor2={{{ToA editor2|}}} |ToA editor3={{{ToA editor3|}}} |subgroup={{{subgroup|}}} |subgroup2={{{subgroup2|}}} |subgroup3={{{subgroup3|}}} |variant= {{{variant|}}} |cat_check= {{{cat_check|}}} |underlinked= {{{underlinked|}}} |cleanup= {{{cleanup|}}} |by= {{{by|}}} |A editor= {{{A editor|}}}|A editor2= {{{A editor2|}}}|A editor3= {{{A editor3|}}}|basepagenamee={{{basepagenamee|}}} }} }}
|}</div>{{ {{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
       |{{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
       |{{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
         |<!--(Article)-->A{{#ifeq:{{{status|}}}|0
         |<!--(Article)-->To Approve Info
                        |<!--Approved Article-->B
                        |<!--UnApproved version-->C''This is a '''draft article''', under development.  These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}}
             |{{ #ifeq: {{{type}}}|subsubpage
             |{{ #ifeq: {{{type}}}|subsubpage
                  |<!--ALL subsubpages-->D{{ {{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                        |Subsubpages
                                              |<!--(signed article)-->Signed Article|x0}}Header|group={{{group|}}}|group2={{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status={{{status|}}}}} {{ {{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}|x0| {{ {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
          |<!--(All Subpage articles)-->To Approve Info}} }}
                                      |<!--(Catalog sub-subpage)-->Catalog|x0}}Header|group={{{group|}}}|group2={{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status={{{status|}}}}} {{ {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}x0|{{ {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename|}}}
      |{{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
                                              |<!--(timeline sub-subpage)-->Timeline|x0}} Header|group={{{group|}}}|group2={{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status={{{status|}}}}} }}|}} }} |}}
              |{{#ifeq:{{{namespace|}}}|Template
                  |<!--(All Subpage articles)-->E{{ {{{subpagename|}}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }}{{#ifeq:{{{subpagename|}}}|Draft
                    |<!--(the metadata template)-->metadata2
                      |<!--(Draft)-->F
                    |<!--All subpage Talk pages-->{{#ifeq:{{{subpagename|}}}|Draft
                        |{{#ifeq:{{{subpagename|}}}|Approval
                  |<!--(Draft Talk Page) -->To Approve Info
                                              |<!--approval subpage-->G
                  |All Subpage Talk}} }}
                                              |<!--All other subpage articles but not approval, unused or draft-->H}} }} }} }}
              |<!--(Article Talk page)-->To Approve Info}} }} |status={{{status|}}}|pagename={{{pagename|}}}|fullpagename={{{fullpagename|}}} |basepagename={{{basepagename|}}}| namespace={{{namespace|}}} |subpagename={{{subpagename|}}} |group={{{group|}}} |group2={{{group2|}}} |group3={{{group3|}}} |abc={{{abc|}}} |cluster= {{{cluster|}}} |article url= {{{article url|}}} |subpage url= {{{subpage url|}}} |now= {{{ now|}}} |date={{{date|}}} |ToA editor={{{ToA editor|}}} |ToA editor2={{{ToA editor2|}}} |ToA editor3={{{ToA editor3|}}} |subgroup={{{subgroup|}}} |subgroup2={{{subgroup2|}}} |subgroup3={{{subgroup3|}}} |variant= {{{variant|}}} |cat_check= {{{cat_check|}}} |underlinked= {{{underlinked|}}} |cleanup= {{{cleanup|}}} |by= {{{by|}}} |A editor= {{{A editor|}}}|A editor2= {{{A editor2|}}}|A editor3= {{{A editor3|}}}|basepagenamee={{{basepagenamee|}}}| tab1={{{tab1|}}}| tab2={{{tab2|}}}| tab3={{{tab3|}}} }}<!--
      | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
 
              | {{#ifeq:{{{namespace|}}}|Template
***These final categories add the All Content and Workgroup Content categories as well as the Workgroup and subgroup tags categories.***
                    |<!--(the metadata template)-->M
 
                    |<!--All subpage Talk pages-->I {{#ifeq:{{{subpagename|}}}|Draft
-->{{#ifeq:{{{subpagename|}}}|Approval||{{#ifeq:{{NAMESPACE}}|Talk||{{#ifeq:{{NAMESPACE}}|Template||[[Category:All Content|{{{abc|}}} {{{subpagename|}}}]][[Category:{{{group}}} Content|{{{abc|}}} {{{subpagename|}}}]]{{#if:{{{group2|}}}|[[Category:{{{group2}}} Content|{{{abc|}}} {{{subpagename|}}}]] |}}{{#if:{{{group3|}}}|[[Category:{{{group3}}} Content|{{{abc|}}} {{{subpagename|}}}]] |}} }}}}}}{{#if:{{{group|}}}|[[Category:{{{group}}} tag]] |}}{{#if:{{{group2|}}}|[[Category:{{{group2}}} tag]] |}}{{#if:{{{group3|}}}|[[Category:{{{group3}}} tag]] |}}{{#if:{{{subgroup|}}}|[[Category:{{{subgroup}}} tag]] |}}{{#if:{{{subgroup2|}}}|[[Category:{{{subgroup2}}} tag]] |}}{{#if:{{{subgroup3|}}}|[[Category:{{{subgroup3}}} tag]] |}}</includeonly><noinclude>
                            | <!--(Draft Talk page) -->J{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{by|}}} }}
Full documentation for this template can be found at [[Template:Subpages/doc|Subpages/doc]].
                      | <!--(All subpage Talk pages other than draft)-->K }} }}
 
              | {{#ifeq:{{{namespace|}}}|Talk
              | <!--(Article Talk page)-->L{{Checklist22|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|cat_check = {{{cat_check|}}}|status = {{{status|}}}|underlinked = {{{underlinked|}}}|cleanup = {{{cleanup|}}}|by = {{{by|}}} }}
                    | N }} }} }}
|}</div>{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
      | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
        |<!--(Article)-->{{article specific}}{{article subset}}{{#ifeq:{{{status|}}}|0
                        |<!--Approved Article-->{{APPROVE stuff}}
                        |<!--UnApproved version-->{{TOAPPROVE stuff}}}}
            | {{ #ifeq: {{{type}}}|subsubpage
                  |<!--ALL subsubpages-->{{All subsubpages}}{{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                                              |<!--(signed article)-->
                              | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
                                      |<!--(Catalog sub-subpage)-->                                         | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename|}}}
                                              |<!--(timeline sub-subpage)-->
                                                            |<!--Sub-subpages other than the three above-->}} }} }}
                  |<!--(All Subpage articles)-->{{TOAPPROVE stuff}}{{ {{{subpagename|}}} footer|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|status= {{{status|}}} }} {{#ifeq:{{{subpagename|}}}|Draft
                      | <!--(Draft)-->{{draft article subset}}
                        | {{#ifeq:{{{subpagename|}}}|Approval
                                              |<!--approval subpage-->
                                              |<!--All other subpage articles but not approval, unused or draft-->{{All subpage content}}}} }} }} }}
      | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
              | {{#ifeq:{{{namespace|}}}|Template
                    |<!--(the metadata template)-->{{metadata2|basepagename={{{basepagename|}}} |pagename={{{pagename|}}} |subpagename={{{subpagename|}}} |fullpagename={{{fullpagename|}}}}}
                    |<!--All subpage Talk pages--> {{#ifeq:{{{subpagename|}}}|Draft
                  | <!--(Draft Talk page) -->{{#ifeq:{{{status|}}}|0
                                        |{{Talk Checklist}}{{draft article subset}}{{#if:{{{ToA editor| }}}
                                                |<!--(ToApprove information here if approval is being updated)-->{{TOAPPROVE stuff}}
                                                |<!--(Draft talk page info when approved but not reapproving)-->}}
                                        |<!--(Article not approved: in theory the draft page will not exist unless the article has been approved)-->}}
                  | <!--(All subpage Talk pages other than draft)-->}}
              | {{#ifeq:{{{namespace|}}}|Talk
                | <!--(Article Talk page)-->{{#ifeq:{{{status|}}}|0
                                  |<!--(not used: a redirect to the draft page talk is here after approval)-->
                                  |{{article subset}}{{Talk Checklist}}{{#if:{{{ToA editor| }}}
                                                |<!--(ToApprove information here if being approved for the first time)-->{{TOAPPROVE stuff}}
                                                |}}}}
                      | }} }} }} }}</includeonly><noinclude>
==Usage==
==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.
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).
Examples of this templates use can be found at the [[Test article]] cluster.
</noinclude>
</noinclude>

Revision as of 10:45, 19 January 2023

Full documentation for this template can be found at Subpages/doc.

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.