Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>John Stephenson
(probably better to remove /Draft)
imported>John Stephenson
(Making way for Citable Versions)
Line 8: Line 8:


-->{{#ifexist: image:Statusbar{{{status|}}}.png
-->{{#ifexist: image:Statusbar{{{status|}}}.png
                 |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|Approved}}|}}{{#ifeq: 1 |{{{status|}}}|{{statusmessage|developed but not approved}}|}}{{#ifeq: 2 | {{{status|}}}|{{statusmessage|developing and not approved}}|}}{{#ifeq: 3 | {{{status|}}}|{{statusmessage|a stub and thus not approved}}|}}{{#ifeq: 4 | {{{status|}}}|{{statusmessage|basically copied from an external source and has not been approved}}|}}]]
                 |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|developed but not approved}}|}}{{#ifeq: 2 | {{{status|}}}|{{statusmessage|developing and not approved}}|}}{{#ifeq: 3 | {{{status|}}}|{{statusmessage|a stub and thus not approved}}|}}{{#ifeq: 4 | {{{status|}}}|{{statusmessage|basically copied from an external source and has not been approved}}|}}{{#ifeq: 5 | {{{status|}}}|{{statusmessage|has a Citable Version.}}|}}]]
                 |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 [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:#{{{not approved color|}}}; border-left:1px solid #aaaaaa; border-bottom:1px solid #aaaaaa; border-top:1px solid #aaaaaa; border-right:1px solid #aaaaaa;"{{!}}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]] }}<!--


Line 40: Line 40:
</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|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|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>{{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|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: {{{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=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>
Line 77: Line 89:


</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|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|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=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|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>

Revision as of 05:56, 3 September 2013

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.