Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>John Stephenson
(error)
imported>John Stephenson
(probably better to remove /Draft)
Line 33: Line 33:
|
|
|{{{{ #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?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. ***
-->{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{{name|}}} |{{{pagename|}}}/Draft| {{button on2|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}} | {{button off2|button off color={{{button off color|}}}}} }}{{!}}<font size=2>[[{{{pagename|}}}/Draft|Draft]]</font> }}<!--


***Adds the DEFAULT subpage tabs. ***
***Adds the DEFAULT subpage tabs. ***

Revision as of 07:38, 13 August 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.