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 15: Line 15:
                 |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]] }} }}<!--
                 |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]] }} }}<!--


***Adds the main article tab***
***Adds the MAIN ARTICLE tab***


-->{{ #ifeq: {{{name|}}} |{{{basepagename|}}}
-->{{ #ifeq: {{{name|}}} |{{{basepagename|}}}
                             | {{button on2|status= {{{status|}}}}}  
                             | {{button on2|status= {{{status|}}}}}  
                             | {{button off2}}}}{{!}}<font size=1>[[{{{pagename|}}}|Main Article]]</font><nowiki>
                             | {{button off2}}}}{{!}}<font size=1>[[{{{pagename|}}}|Main Article]]</font><!--


</nowiki>{{#ifeq: {{{status|}}}|0
***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 on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>
                             |{{button on25|status= {{{status|}}}}} {{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>
Line 27: Line 29:
                       |{{#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>}} }}<!--
 
***Adds the DRAFT tab but only if the article is approved. ***
 
-->{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{{name|}}} |{{{pagename|}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{pagename|}}}/Draft|Draft]]</font> }}<!--
 
***Adds the DEFAULT subpage tabs. ***


</nowiki>{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{{name|}}} |{{{pagename|}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=1>[[{{{pagename|}}}/Draft|Draft]]</font> }}<nowiki>
-->{{Default2|{{Subpage list 2|button=1A}}}}{{Default2|{{Subpage list 2|button=2A}}}}{{Default2|{{Subpage list 2|button=3A}}}}<!--


</nowiki>{{Default2|{{Subpage list 2|button=1A}}}}{{Default2|{{Subpage list 2|button=2A}}}}{{Default2|{{Subpage list 2|button=3A}}}}<nowiki>
***Adds the OPTIONAL subpage tabs if the page exists. ***


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


}}{{ #ifeq: {{Subpage list 2|button=5B}}|Optional| {{Optional2|{{Subpage list 2|button=5A}}}}
}}{{ #ifeq: {{Subpage list 2|button=5B}}|Optional| {{Optional2|{{Subpage list 2|button=5A}}}}

Revision as of 21:58, 13 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).