Template:Subpage style test: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
(mouseover messages)
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 6: Line 6:
|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}
|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}}


-->{{#ifexist: image:Statusbar{{{status|}}}.png
-->{{#ifexist: image:Level{{{status|}}}.jpg
                 |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:Level{{{status|}}}.jpg|{{#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|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:Level{{{status|}}}.jpg|{{#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 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/index.php?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***
Line 31: Line 31:
|{{#ifexist:Template:Def {{{basepagename}}}
|{{#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>[http://en.citizendium.org/wiki?action=edit&preload=Template%3ADef_preload&title={{{basepagenamee|}}}/Definition <font color=#810541>Definition</font>]</font>&nbsp;[[CZ:Definitions|<span style="font-size:0.9em;"><sup>[?]</sup></span>]]}} }} }}<!--
|{{{{ #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>[http://en.citizendium.org/wiki/index.php?action=edit&preload=Template%3ADef_preload&title={{{basepagenamee|}}}/Definition <font color=#810541>Definition</font>]</font>&nbsp;[[CZ:Definitions|<span style="font-size:0.9em;"><sup>[?]</sup></span>]]}} }} }}<!--


***Adds the DRAFT tab but only if the article is approved. ***
***Adds the DRAFT tab but only if the article is approved. ***
Line 124: Line 124:
                             |{{!}}{{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=http://en.citizendium.org/wiki/index.php?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
       |{{ {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
       |{{ {{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}

Latest revision as of 10:10, 21 January 2023

Full documentation for this template can be found at Subpages test/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.