Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
m (Undo revision 987720 by Pat Palmer (talk))
Tag: Undo
 
(449 intermediate revisions by 7 users not shown)
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"
{|class=noprint width="100%" border="0" cellpadding="4" cellspacing="0" style="background:#{{{background|}}}"
|-
|-
|<!--
|<!--


***Code to add 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:{{{{BASEPAGENAME}}/Metadata|info=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}}|}}]]
          |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{{{{BASEPAGENAME}}/Metadata|info=status}}.png]]}}<nowiki>
                |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]] }}<!--


</nowiki>{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}
***Adds the MAIN ARTICLE tab***
                            | {{button on2|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}}
                            | {{button off2}}}}{{!}}<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font><nowiki>


</nowiki>{{#ifeq: {{{{BASEPAGENAME}}/Metadata|info=status}}|0
-->{{{{ #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><!--
                      |{{#ifeq:{{NAMESPACE}}|Talk
                            |{{button on25|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} {{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|Talk]]</font>
                            |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}/Draft|Talk]]</font>}}
                      |{{#ifeq:{{NAMESPACE}}|Talk
                            |{{button on25|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} {{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|Talk]]</font>
                            |{{button off25}}{{!}}<font size=1>[[Talk:{{{{BASEPAGENAME}}/Metadata|info=pagename}}|Talk]]</font>}} }}<nowiki>


</nowiki>{{ #ifexist: {{BASEPAGENAME}}/Draft| {{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Draft| {{button on2|status= {{{{BASEPAGENAME}}/Metadata|info=status}}}} | {{button off2}} }}{{!}}<font size=1>[[{{BASEPAGENAME}}/Draft|Draft]]</font> }} }} }} }}<nowiki>
***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. ***


</nowiki>{{ #ifeq: {{Subpage list 2|button=1B}}|Default| {{Default2|{{Subpage list 2|button=1A}}}}
-->{{#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 off2|button off color={{{button off color|}}}}}{{!}}<font size=2>[[Talk:{{{pagename|}}}|Discussion]]</font>}} <!--


}}{{ #ifeq: {{Subpage list 2|button=2B}}|Default| {{Default2|{{Subpage list 2|button=2A}}}}
***Adds the Definition tab***


}}{{ #ifeq: {{Subpage list 2|button=3B}}|Default| {{Default2|{{Subpage list 2|button=3A}}}}
-->{{#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>]]}} }} }}<!--


}}{{ #ifeq: {{Subpage list 2|button=4B}}|Default| {{Default2|{{Subpage list 2|button=4A}}}}
***Adds the DEFAULT subpage tabs. ***


}}{{ #ifeq: {{Subpage list 2|button=5B}}|Default| {{Default2|{{Subpage list 2|button=5A}}}}
-->{{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>


}}{{ #ifeq: {{Subpage list 2|button=6B}}|Default| {{Default2|{{Subpage list 2|button=6A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=7B}}|Default| {{Default2|{{Subpage list 2|button=7A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=8B}}|Default| {{Default2|{{Subpage list 2|button=8A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=9B}}|Default| {{Default2|{{Subpage list 2|button=9A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=10B}}|Default| {{Default2|{{Subpage list 2|button=10A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=11B}}|Default| {{Default2|{{Subpage list 2|button=11A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=12B}}|Default| {{Default2|{{Subpage list 2|button=12A}}}}
</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|}}}}}}}<!--


}}{{ #ifeq: {{Subpage list 2|button=13B}}|Default| {{Default2|{{Subpage list 2|button=13A}}}}
***Adds the OPTIONAL subpage tabs if the page exists. ***


}}{{ #ifeq: {{Subpage list 2|button=14B}}|Default| {{Default2|{{Subpage list 2|button=14A}}}}
-->{{#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>


}}{{ #ifeq: {{Subpage list 2|button=15B}}|Default| {{Default2|{{Subpage list 2|button=15A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=16B}}|Default| {{Default2|{{Subpage list 2|button=16A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=17B}}|Default| {{Default2|{{Subpage list 2|button=17A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=18B}}|Default| {{Default2|{{Subpage list 2|button=18A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=19B}}|Default| {{Default2|{{Subpage list 2|button=19A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=20B}}|Default| {{Default2|{{Subpage list 2|button=20A}}}}
</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>


</nowiki>{{ #ifeq: {{Subpage list 2|button=1B}}|Optional
</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>
    | {{Optional2|{{Subpage list 2|button=1A}}}}
    |<!--Exist here if a default status subpage--> }}{{ #ifeq: {{Subpage list 2|button=2B}}|Optional| {{Optional2|{{Subpage list 2|button=2A}}}}


}}{{ #ifeq: {{Subpage list 2|button=3B}}|Optional| {{Optional2|{{Subpage list 2|button=3A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=4B}}|Optional| {{Optional2|{{Subpage list 2|button=4A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=5B}}|Optional| {{Optional2|{{Subpage list 2|button=5A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=6B}}|Optional| {{Optional2|{{Subpage list 2|button=6A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=7B}}|Optional| {{Optional2|{{Subpage list 2|button=7A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=8B}}|Optional| {{Optional2|{{Subpage list 2|button=8A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=9B}}|Optional| {{Optional2|{{Subpage list 2|button=9A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=10B}}|Optional| {{Optional2|{{Subpage list 2|button=10A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=11B}}|Optional| {{Optional2|{{Subpage list 2|button=11A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=12B}}|Optional| {{Optional2|{{Subpage list 2|button=12A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=13B}}|Optional| {{Optional2|{{Subpage list 2|button=13A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=14B}}|Optional| {{Optional2|{{Subpage list 2|button=14A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=15B}}|Optional| {{Optional2|{{Subpage list 2|button=15A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=16B}}|Optional| {{Optional2|{{Subpage list 2|button=16A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=17B}}|Optional| {{Optional2|{{Subpage list 2|button=17A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=18B}}|Optional| {{Optional2|{{Subpage list 2|button=18A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=19B}}|Optional| {{Optional2|{{Subpage list 2|button=19A}}}}
</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>


}}{{ #ifeq: {{Subpage list 2|button=20B}}|Optional| {{Optional2|{{Subpage list 2|button=20A}}}} }}<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>{{Button_off25}}|{{click|image=Subpages.png|link=CZ:Subpage Pilot |width=17px|height=17px}}
</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>
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
 
</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;
|-  
|-  
|{{Cell_style|pagename= {{{{BASEPAGENAME}}/Metadata|info=pagename}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
|height=40px colspan=20 {{#ifeq: {{{status|}}}|0
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
        |style="background:#{{{approved color|}}}
|<!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{approved3|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}}|editor= {{{{BASEPAGENAME}}/Metadata|info=A editor}}|editor2= {{{{BASEPAGENAME}}/Metadata|info=A editor2}}|editor3= {{{{BASEPAGENAME}}/Metadata|info=A editor3}}}}|''This is a '''draft article''', under development.  These '''unapproved''' articles are subject to [[CZ:Disclaimer|'''a disclaimer]]'''''.}}
        |style="background:#{{{not approved color|}}} }}; padding: 2px 2px 2px 2px; border-right:1px solid #aaaaaa; border-bottom:1px solid #aaaaaa"|
|{{#ifeq:{{SUBPAGENAME}}|Draft
{| height=25px align="right" border="0" cellpadding="2" cellspacing="0"
|<!--(Draft)-->{{Draft header}}
{{ #ifeq:{{{namespace|}}}|Template
        |{{ #ifexist: {{../../Metadata|info=pagename}}
                |{{!}} {{click|image=Approval button.png|link={{{pagename|}}}/Approval |width=17px|height=17px}}
        |{{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                |{{#ifeq:{{{namespace|}}}|Talk
                                    |<!--(signed article)-->{{Signed Article Header||group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3={{../../Metadata|info=cat3}}|abc={{../../Metadata|info=abc}}|status= {{../../Metadata|info=status}} }}
                      |{{!}}{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|width=17px|height=17px}}
                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
{{!}} {{click|image=Approval button.png|link={{{basepagename|}}}/Approval |width=17px|height=17px}}  
                              |<!--(Catalog sub-subpage)-->{{Catalog Header||group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3={{../../Metadata|info=cat3}}|abc={{../../Metadata|info=abc}}|status= {{../../Metadata|info=status}} }}                                   | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                      |{{#ifeq:{{{subpagename|}}}|Approval
                                              |<!--(timeline sub-subpage)-->{{Timeline Header||group= {{../../Metadata|info=cat1}}|group2= {{../../Metadata|info=cat2}}|group3={{../../Metadata|info=cat3}}|abc={{../../Metadata|info=abc}}|status= {{../../Metadata|info=status}} }}
                            |{{!}}{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|width=17px|height=17px}}
                                                            |}} }} }}
                            |}} }} }}
          |{{#ifeq:{{SUBPAGENAME}}|Unused
{{#ifeq:{{{namespace|}}}|Talk||{{!}}{{clickurl|image=Print button.png|link=https://en.citizendium.org/wiki/index.php?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
              | <!--Unused subpages-->
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
                  | <!--(All subpage articles)-->{{ {{SUBPAGENAME}} header|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{{{BASEPAGENAME}}/Metadata|info=status}} }}      }} }} }} }}
      |{{ {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
        |<!--(Article)-->To Approve Inner
| {{#ifeq:{{NAMESPACE}}|Talk
            |{{ #ifeq: {{{type}}}|subsubpage
| {{#ifeq:{{SUBPAGENAME}}|Draft
                  |<!--ALL subsubpages-->Subsubpages IN
| <!--(Draft Talk page) always place the checklist here if the page exists-->{{Checklist2|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cat_check = {{{{BASEPAGENAME}}/Metadata|info=cat_check}}|status = {{{{BASEPAGENAME}}/Metadata|info=status}}|underlinked = {{{{BASEPAGENAME}}/Metadata|info=underlinked}}|cleanup = {{{{BASEPAGENAME}}/Metadata|info=cleanup}}|by = {{{{BASEPAGENAME}}/Metadata|info=by}} }}
                  |<!--(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|}}} }}
| <!--not currently used--> (All subpage articles Talk) }}
      |{{ {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
| {{#ifeq:{{NAMESPACE}}|User
              | {{#ifeq:{{{namespace|}}}|Template
| <!--not currently used--> (User subpage)
                    |<!--(the metadata template)-->Metadata header
| <!--not currently used--> (User subpage talk) }} }}  
                    |<!--All subpage Talk pages-->{{#ifeq:{{{subpagename|}}}|Draft
| {{#ifeq:{{NAMESPACE}}|Talk
                            | <!--(Draft Talk page) -->To Approve Inner
| <!--(Article Talk page) -->{{Checklist2|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cat_check = {{{{BASEPAGENAME}}/Metadata|info=cat_check}}|status = {{{{BASEPAGENAME}}/Metadata|info=status}}|underlinked = {{{{BASEPAGENAME}}/Metadata|info=underlinked}}|cleanup = {{{{BASEPAGENAME}}/Metadata|info=cleanup}}|by = {{{{BASEPAGENAME}}/Metadata|info=by}} }} }}
                      | <!--(All subpage Talk pages other than draft)-->All Subpage Talk In }} }}
| {{#ifeq:{{NAMESPACE}}|User
              |<!--(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|}}} }} }}
| <!--not currently used--> (User page)
|}</div>{{ {{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
| {{#ifeq:{{NAMESPACE}}|User talk
      |{{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
|<!--not currently used--> (User talk page)
        |<!--(Article)-->To Approve Info
{{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
            |{{ #ifeq: {{{type}}}|subsubpage
                        |<!--(metadata page)-->
                        |Subsubpages
                                        | {{#ifeq:{{NAMESPACE}}|Template
          |<!--(All Subpage articles)-->To Approve Info}} }}
                    |  
      |{{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
    | (template talk page) }} }} }} }} }} }}
              |{{#ifeq:{{{namespace|}}}|Template
|}</div>{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
                    |<!--(the metadata template)-->metadata2
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
                    |<!--All subpage Talk pages-->{{#ifeq:{{{subpagename|}}}|Draft
|<!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0||{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }} }}{{Checklist4|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cat_check = {{{{BASEPAGENAME}}/Metadata|info=cat_check}}|status = {{{{BASEPAGENAME}}/Metadata|info=status}}|underlinked = {{{{BASEPAGENAME}}/Metadata|info=underlinked}}|cleanup = {{{{BASEPAGENAME}}/Metadata|info=cleanup}}|by = {{{{BASEPAGENAME}}/Metadata|info=by}} }}  
                  |<!--(Draft Talk Page) -->To Approve Info
|{{#ifeq:{{SUBPAGENAME}}|Draft
                  |All Subpage Talk}} }}
|<!--(Draft)-->{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}}}}
              |<!--(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|}}} }}<!--
        |{{ #ifexist: {{../../Metadata|info=pagename}}
        |[[Category:Sub-subpages|{{../../Metadata|info=abc}}]] {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                                    |<!--(signed article)-->
                    | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                              |<!--(Catalog sub-subpage)-->                                   | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                                              |<!--(timeline sub-subpage)-->
                                                            |}} }} }}
          |{{#ifeq:{{SUBPAGENAME}}|Unused
              | <!--Unused subpages-->{{Unused subpages}}
                  | <!--(All subpage articles)-->{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }}      {{#ifeq:{{SUBPAGENAME}}|Approval|<!--(approval subpage)-->|[[Category:Subpages|{{{{BASEPAGENAME}}/Metadata|info=abc}}]]}} }} }} }} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq:{{NAMESPACE}}|Talk
| {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(Draft Talk page) -->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0|{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }} }}
| <!--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) -->{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=status}}|0| |{{Checklist6|group= {{{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{{{BASEPAGENAME}}/Metadata|info=abc}}|cluster= {{{{BASEPAGENAME}}/Metadata|info =cluster}}|article url= {{{{BASEPAGENAME}}/Metadata|info =article url}}|subpage url= {{{{BASEPAGENAME}}/Metadata|info =subpage url}}|now= {{{{BASEPAGENAME}}/Metadata|info = now}}|date= {{{{BASEPAGENAME}}/Metadata|info = date}}|ToA editor= {{{{BASEPAGENAME}}/Metadata|info =ToA editor}}|ToA editor2= {{{{BASEPAGENAME}}/Metadata|info =ToA editor2}}|ToA editor3= {{{{BASEPAGENAME}}/Metadata|info =ToA editor3}} }} }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
|  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
                        |<!--(metadata page)-->{{Metadata}}
                                        | {{#ifeq:{{NAMESPACE}}|Template
                    | {{Metadata}}
    | (template talk page) }} }} }} }} }} }} }}</includeonly><noinclude>


===Usage===
***These final categories add the All Content and Workgroup Content categories as well as the Workgroup and subgroup tags categories.***
 
-->{{#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>
Full documentation for this template can be found at [[Template:Subpages/doc|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.
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>

Latest revision as of 07:40, 15 October 2024

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.