Template:Subpage style test: Difference between revisions
Jump to navigation
Jump to search
imported>Chris Day (New page: <includeonly>{{#if:{{{speedydelete|}}}|{{{speedydelete}}} }} <div align="left" border="0" style="background-color: #cccccc; margin:0.5em;position:relative;"> {|class=noprint width="100%" b...) |
Pat Palmer (talk | contribs) mNo edit summary |
||
(19 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|}}} | ||
Line 157: | Line 155: | ||
-->{{#ifeq:{{{subpagename|}}}|Approval||{{#ifeq:{{NAMESPACE}}|Talk||{{#ifeq:{{NAMESPACE}}|Template||[[Category:All Content|{{{abc|}}} {{{subpagename|}}}]][[Category:{{{group}}} Content|{{{abc|}}} {{{subpagename|}}}]]{{#if:{{{group2|}}}|[[Category:{{{group2}}} Content|{{{abc|}}} {{{subpagename|}}}]] |}}{{#if:{{{group3|}}}|[[Category:{{{group3}}} Content|{{{abc|}}} {{{subpagename|}}}]] |}} }}}}}}{{#if:{{{group|}}}|[[Category:{{{group}}} tag]] |}}{{#if:{{{group2|}}}|[[Category:{{{group2}}} tag]] |}}{{#if:{{{group3|}}}|[[Category:{{{group3}}} tag]] |}}{{#if:{{{subgroup|}}}|[[Category:{{{subgroup}}} tag]] |}}{{#if:{{{subgroup2|}}}|[[Category:{{{subgroup2}}} tag]] |}}{{#if:{{{subgroup3|}}}|[[Category:{{{subgroup3}}} tag]] |}}</includeonly><noinclude> | -->{{#ifeq:{{{subpagename|}}}|Approval||{{#ifeq:{{NAMESPACE}}|Talk||{{#ifeq:{{NAMESPACE}}|Template||[[Category:All Content|{{{abc|}}} {{{subpagename|}}}]][[Category:{{{group}}} Content|{{{abc|}}} {{{subpagename|}}}]]{{#if:{{{group2|}}}|[[Category:{{{group2}}} Content|{{{abc|}}} {{{subpagename|}}}]] |}}{{#if:{{{group3|}}}|[[Category:{{{group3}}} Content|{{{abc|}}} {{{subpagename|}}}]] |}} }}}}}}{{#if:{{{group|}}}|[[Category:{{{group}}} tag]] |}}{{#if:{{{group2|}}}|[[Category:{{{group2}}} tag]] |}}{{#if:{{{group3|}}}|[[Category:{{{group3}}} tag]] |}}{{#if:{{{subgroup|}}}|[[Category:{{{subgroup}}} tag]] |}}{{#if:{{{subgroup2|}}}|[[Category:{{{subgroup2}}} tag]] |}}{{#if:{{{subgroup3|}}}|[[Category:{{{subgroup3}}} tag]] |}}</includeonly><noinclude> | ||
Full documentation for this template can be found at [[Template:Subpages/doc|Subpages/doc]]. | Full documentation for this template can be found at [[Template:Subpages test/doc|Subpages test/doc]]. | ||
==Usage== | ==Usage== |
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.