Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 1: Line 1:
<includeonly>*<nowiki>{{{basepagename|}}}</nowiki> {{{basepagename}}}
</nowiki>{{ #ifeq: {{{name|}}} |{{{basepagename|}}}
*<nowiki>{{{fullpagename|}}}</nowiki>  {{{fullpagename}}}
*<nowiki>{{{pagename|}}}</nowiki>  {{{pagename}}}
*<nowiki>{{{name|}}}</nowiki>  {{{name}}}
*<nowiki>{{{subpagename|}}}</nowiki>  {{{subpagename}}}
*<nowiki>{{{namespace|}}}</nowiki>  {{{namespace}}} 
*<nowiki>{{{type|}}}</nowiki>  {{{type}}} 
*<nowiki>{{{pagename}}}</nowiki>{{{pagename}}}
*<nowiki>{{{variant}}}</nowiki>{{{variant}}}
*<nowiki>{{{abc}}}</nowiki>{{{abc}}}
*<nowiki>{{{cat_check}}}</nowiki>{{{cat_check}}}
*<nowiki>{{{status}}}</nowiki>{{{status}}}
*<nowiki>{{{underlinked}}}</nowiki>{{{underlinked}}}
*<nowiki>{{{cleanup}}}</nowiki>{{{cleanup}}}
*<nowiki>{{{by}}}</nowiki>{{{by}}}
*<nowiki>{{{group}}}</nowiki>{{{group}}}
 
*<nowiki>{{PAGENAME}}</nowiki> {{PAGENAME}}
*<nowiki>{{FULLPAGENAME}}</nowiki> {{FULLPAGENAME}}
*<nowiki>{{BASEPAGENAME}}</nowiki> {{BASEPAGENAME}}
*<nowiki>{{PAGENAME}}</nowiki> {{PAGENAME}}
*<nowiki>[[/]]</nowiki> [[/]]
*<nowiki>[[../]]</nowiki> [[../]]
*<nowiki>[[../../]]</nowiki> [[../../]]
*<nowiki>{{/}}</nowiki> {{/}}
*<nowiki>{{../}}</nowiki> {{../}}
*<nowiki>{{../../}}</nowiki> {{../../}}
 
<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.***
 
-->{{#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]]
          |{{#ifexist: image:Statusbar{{{status|}}}.png
                |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:#DFA7A7; 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]] }} }}<nowiki>
 
</nowiki>{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}
                             | {{button on2|status= {{{status|}}}}}  
                             | {{button on2|status= {{{status|}}}}}  
                             | {{button off2}}}}{{!}}<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font><nowiki>
                             | {{button off2}}}}{{!}}<font size=1>[[{{{basepagename|}}}|Main Article]]</font><nowiki>


</nowiki>{{#ifeq: {{{status|}}}|0
</nowiki>{{#ifeq: {{{status|}}}|0
                       |{{#ifeq:{{NAMESPACE}}|Talk
                       |{{#ifeq:{{{namespace|}}}|Talk
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>}}
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>}}
                       |{{#ifeq:{{NAMESPACE}}|Talk
                       |{{#ifeq:{{{namespace|}}}|Talk
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font>
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font>
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font>}} }}<nowiki>
                             |{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font>}} }}<nowiki>


</nowiki>{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{PAGENAME}} |{{{pagename|}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{pagename|}}}/Draft|Draft]]</font> }}<nowiki>
</nowiki>{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{{name|}}} |{{{pagename|}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{pagename|}}}/Draft|Draft]]</font> }}<nowiki>


</nowiki>{{ #ifeq: {{Subpage list 2|button=1B}}|Default| {{Default2|{{Subpage list 2|button=1A}}}}
</nowiki>{{ #ifeq: {{Subpage list 2|button=1B}}|Default| {{Default2|{{Subpage list 2|button=1A}}}}
Line 139: Line 98:
|-  
|-  
|colspan=20 {{#ifeq: {{{status|}}}|0
|colspan=20 {{#ifeq: {{{status|}}}|0
         |align=left style="background:#C4DFC4; {{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|{{#ifeq:{{NAMESPACE}}||border-left:2px solid #aaaaaa|border-left:2px solid #bbbbbb}}|border-left:2px solid #bbbbbb}}
         |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}}
         |align=left style="background:#C4D2DF; {{#ifeq:{{PAGENAME}}|{{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"|
         |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"|
{| height=25px align="right" border="0" cellpadding="2" cellspacing="0"
{| height=25px align="right" border="0" cellpadding="2" cellspacing="0"
{{#ifeq:{{SUBPAGENAME}}|Unused
{{#ifeq:{{{subpagename|}}}|Unused
     |
     |
     |{{#ifeq:{{NAMESPACE}}|Talk
     |{{#ifeq:{{{namespace|}}}|Talk
           |
           |
           |{{#ifeq:{{{status|}}}|0
           |{{#ifeq:{{{status|}}}|0
               |{{#ifeq:{{{pagename|}}}|{{PAGENAME}}
               |{{#ifeq:{{{pagename|}}}|{{{name|}}}
                     | {{!}}{{clickurl|image=Compare.png|link=http://en.citizendium.org/wiki?title={{PAGENAMEE}}/Draft&diff=current&oldid={{REVISIONID}} | width=17px | height=17px}}
                     | {{!}}{{clickurl|image=Compare.png|link=http://en.citizendium.org/wiki?title={{PAGENAMEE}}/Draft&diff=current&oldid={{REVISIONID}} | width=17px | height=17px}}
                     |{{#ifeq:{{{pagename|}}}/Draft|{{PAGENAME}}
                     |{{#ifeq:{{{pagename|}}}/Draft|{{{name|}}}
                         |{{!}}{{clickurl|image=Compare.png|link=http://en.citizendium.org/wiki?title={{BASEPAGENAMEE}}&diff=current&oldid={{REVISIONID}} |width=17px|height=17px}}
                         |{{!}}{{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}} }}
{{#ifeq:{{{namespace|}}}|Talk||{{!}}{{clickurl|image=Print button.png|link=http://en.citizendium.org/wiki?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
|{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|width=17px|height=17px}}
|{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|width=17px|height=17px}}
|{{click|image=Approval button.png|link={{{pagename|}}}/Approval |width=17px|height=17px}}
|{{click|image=Approval button.png|link={{{pagename|}}}/Approval |width=17px|height=17px}}
Line 176: Line 135:
                                               |<!--(approval subpage)-->  (approval subpage)           
                                               |<!--(approval subpage)-->  (approval subpage)           
                                               |<!--(All other subpage articles but not approval, unused or draft)--> (All Subpage articles except draft, approval and unused pages) }} }} }} }} }}
                                               |<!--(All other subpage articles but not approval, unused or draft)--> (All Subpage articles except draft, approval and unused pages) }} }} }} }} }}
       | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
       | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
               | {{#ifeq:{{NAMESPACE}}|Talk
               | {{#ifeq:{{{namespace|}}}|Talk
                   | {{#ifeq:{{SUBPAGENAME}}|Draft
                   | {{#ifeq:{{{subpagename|}}}|Draft
                   | <!--(Draft Talk page) --> (Draft Talk page)
                   | <!--(Draft Talk page) --> (Draft Talk page)
                   | <!--not currently used--> (All subpage and subsubpage Talk) }}
                   | <!--not currently used--> (All subpage and subsubpage Talk) }}
           | {{#ifeq:{{NAMESPACE}}|User
           | {{#ifeq:{{{namespace|}}}|User
                   | <!--not currently used--> (User subpage)  
                   | <!--not currently used--> (User subpage)  
                   | <!--not currently used--> (User subpage talk) }} }}  
                   | <!--not currently used--> (User subpage talk) }} }}  
               | {{#ifeq:{{NAMESPACE}}|Talk
               | {{#ifeq:{{{namespace|}}}|Talk
                   | <!--(Article Talk page)--> (Article Talk page)
                   | <!--(Article Talk page)--> (Article Talk page)
           | {{#ifeq:{{NAMESPACE}}|User
           | {{#ifeq:{{{namespace|}}}|User
            | <!--not currently used--> (User page)  
            | <!--not currently used--> (User page)  
            | {{#ifeq:{{NAMESPACE}}|User talk
            | {{#ifeq:{{{namespace|}}}|User talk
          |<!--not currently used--> (User talk page)
          |<!--not currently used--> (User talk page)
            |  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
            |  {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename|}}}
                                |<!--not currently used-->(the metadata template)
                                |<!--not currently used-->(the metadata template)
                                                 |  {{#ifeq:{{NAMESPACE}}|Template
                                                 |  {{#ifeq:{{{namespace|}}}|Template
              | <!--not currently used--> (template main page)
              | <!--not currently used--> (template main page)
            | <!--not currently used--> (template talk page) }} }} }} }} }} }} }}
            | <!--not currently used--> (template talk page) }} }} }} }} }} }} }}
|}</div>{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
|}</div>{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
       | {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
       | {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
         | <!--(Article)--> (Article)
         | <!--(Article)--> (Article)
             | {{ #ifexist: {{../../Metadata|info=pagename}}
             | {{ #ifexist: {{{ pagename|}}}
                                 | {{#ifeq:{{NAMESPACE}}|Talk
                                 | {{#ifeq:{{{namespace|}}}|Talk
                         | <!--(Talk: Sub subpage)--> (Talk: Sub subpage)
                         | <!--(Talk: Sub subpage)--> (Talk: Sub subpage)
                         |(ALL subsubpages) {{#ifeq: {{../../Metadata|info=pagename}}/Signed Articles|{{BASEPAGENAME}}
                         |(ALL subsubpages) {{#ifeq: {{{pagename|}}}/Signed Articles|{{{basepagename|}}}
                                               |<!--(signed article)-->(signed article)
                                               |<!--(signed article)-->(signed article)
                                | {{#ifeq: {{../../Metadata|info=pagename}}/Catalogs|{{BASEPAGENAME}}
                                | {{#ifeq: {{{pagename|}}}/Catalogs|{{{basepagename|}}}
                                        |<!--(Catalog sub-subpage)-->(Catalog sub-subpage)                                         | {{#ifeq: {{../../Metadata|info=pagename}}/Timelines|{{BASEPAGENAME}}
                                        |<!--(Catalog sub-subpage)-->(Catalog sub-subpage)                                         | {{#ifeq: {{{pagename|}}}/Timelines|{{{basepagename|}}}
                                                |<!--(timeline sub-subpage)-->(timeline sub-subpage)
                                                |<!--(timeline sub-subpage)-->(timeline sub-subpage)
                                                             |(other sub-subpage) }} }} }} }}
                                                             |(other sub-subpage) }} }} }} }}
                  |(All Subpage articles)  {{#ifeq:{{SUBPAGENAME}}|Draft
                  |(All Subpage articles)  {{#ifeq:{{{subpagename|}}}|Draft
                        | <!--(Draft)--> (Draft)
                        | <!--(Draft)--> (Draft)
                                       |{{#ifeq:{{SUBPAGENAME}}|Unused
                                       |{{#ifeq:{{{subpagename|}}}|Unused
                     | <!--Unused subpages--> (Unused subpages)
                     | <!--Unused subpages--> (Unused subpages)
                     | {{#ifeq:{{SUBPAGENAME}}|Approval
                     | {{#ifeq:{{{subpagename|}}}|Approval
                                               |<!--(approval subpage)-->  (approval subpage)           
                                               |<!--(approval subpage)-->  (approval subpage)           
                                               |<!--(All other subpage articles but not approval, unused or draft)--> (All Subpage articles except draft, approval and unused pages) }} }} }} }} }}
                                               |<!--(All other subpage articles but not approval, unused or draft)--> (All Subpage articles except draft, approval and unused pages) }} }} }} }} }}
       | {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
       | {{#ifeq: {{{basepagename|}}}/{{{subpagename|}}}|{{{name|}}}
               | {{#ifeq:{{NAMESPACE}}|Talk
               | {{#ifeq:{{{namespace|}}}|Talk
                   | {{#ifeq:{{SUBPAGENAME}}|Draft
                   | {{#ifeq:{{{subpagename|}}}|Draft
                   | <!--(Draft Talk page) --> (Draft Talk page)
                   | <!--(Draft Talk page) --> (Draft Talk page)
                   | <!--not currently used--> (All subpage and subsubpage Talk) }}
                   | <!--not currently used--> (All subpage and subsubpage Talk) }}
           | {{#ifeq:{{NAMESPACE}}|User
           | {{#ifeq:{{{namespace|}}}|User
                   | <!--not currently used--> (User subpage)  
                   | <!--not currently used--> (User subpage)  
                   | <!--not currently used--> (User subpage talk) }} }}  
                   | <!--not currently used--> (User subpage talk) }} }}  
               | {{#ifeq:{{NAMESPACE}}|Talk
               | {{#ifeq:{{{namespace|}}}|Talk
                   | <!--(Article Talk page)--> (Article Talk page)
                   | <!--(Article Talk page)--> (Article Talk page)
           | {{#ifeq:{{NAMESPACE}}|User
           | {{#ifeq:{{{namespace|}}}|User
            | <!--not currently used--> (User page)  
            | <!--not currently used--> (User page)  
            | {{#ifeq:{{NAMESPACE}}|User talk
            | {{#ifeq:{{{namespace|}}}|User talk
          |<!--not currently used--> (User talk page)
          |<!--not currently used--> (User talk page)
            |  {{#ifeq:{{{{BASEPAGENAME}}|info=pagename}}/Metadata|{{BASEPAGENAME}}
            |  {{#ifeq:{{{pagename|}}}/Metadata|{{{basepagename|}}}
                                |<!--not currently used-->(the metadata template)
                                |<!--not currently used-->(the metadata template)
                                                 |  {{#ifeq:{{NAMESPACE}}|Template
                                                 |  {{#ifeq:{{{namespace|}}}|Template
              | <!--not currently used--> (template main page)
              | <!--not currently used--> (template main page)
            | <!--not currently used--> (template talk page) }} }} }} }} }} }} }}</includeonly>
            | <!--not currently used--> (template talk page) }} }} }} }} }} }} }}</includeonly>
<noinclude>
==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).
</noinclude>

Revision as of 14:08, 5 October 2007

</nowiki>
|align=center bgcolor="#" style="border-bottom:1px solid #; white-space: nowrap; border-top:1px solid #aaaaaa; border-right:1px solid #aaaaaa; font-size:0.9em;"|[[|Main Article]]
|width=25px align=center bgcolor="#" style="white-space: nowrap; border-bottom:1px solid #aaaaaa; border-top:1px solid #aaaaaa; border-right:1px solid #aaaaaa;font-size:0.9em"|[[Talk:|Talk]] Template:Default2Template:Default2Template:Default2

|width=25px align=center bgcolor="#" style="white-space: nowrap; border-bottom:1px solid #aaaaaa; border-top:1px solid #aaaaaa; border-right:1px solid #aaaaaa;font-size:0.9em"|

CZ:Subpage Pilot

|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|  |- |colspan=20 align=left style="background:#C4D2DF; border-left:2px solid #aaaaaa; padding: 2px 2px 2px 2px; border-bottom:2px solid #bbbbbb"|

(Article) |}(Article)</includeonly>