Template:Subpage style test: Difference between revisions
Jump to navigation
Jump to search
imported>Chris Day No edit summary |
Pat Palmer (talk | contribs) mNo edit summary |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;"> | ||
<div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;"> | |||
{|class=noprint width="100%" border="0" cellpadding="4" cellspacing="0" style="background:#{{{background|}}}" | {|class=noprint width="100%" border="0" cellpadding="4" cellspacing="0" style="background:#{{{background|}}}" | ||
|- | |- | ||
|<!-- | |<!-- | ||
***Adds 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|}}} | |approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|button off color={{{button off color|}}} | ||
-->{{#ifexist: image: | -->{{#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: | |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 the status 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 the status field'''] to a value between '''0-4''' [[Category:Articles_with_Ambiguous_Status]] }}<!-- | ||
***Adds the MAIN ARTICLE tab*** | ***Adds the MAIN ARTICLE tab*** | ||
Line 33: | 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> [[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> [[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 126: | 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 09: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.