Template:Subpage style: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 14: Line 14:


-->{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|button on2|x0}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}}{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|x0|button off2}}|button off color={{{button off color|}}}}}{{!}}<font size=2>[[{{{pagename|}}}|Main Article]]</font><!--
-->{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|button on2|x0}}|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}}{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|x0|button off2}}|button off color={{{button off color|}}}}}{{!}}<font size=2>[[{{{pagename|}}}|Main Article]]</font><!--
***Adds the Definition tab***
-->{{#ifexist:{{{basepagename}}}/Definition
|<!--{{{{ #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>[[{{{pagename|}}}/Definition|Def]]</font>-->
|{{#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>[[Template:Def {{{basepagename|}}}|Def]]</font>-->
|{{{{ #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=#CA3D10>Def</font>]</font>&nbsp;[[CZ:Definitions|<span style="font-size:0.9em;"><sup>[?]</sup></span>]]}} }}<!--


***Adds the TALK tab and ensures it always links to the correct talk page from all the different cluster pages. Also indicates if on a talk page or not. ***
***Adds the TALK tab and ensures it always links to the correct talk page from all the different cluster pages. Also indicates if on a talk page or not. ***
Line 32: Line 24:
                             |{{button on2|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font>
                             |{{button on2|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font>
                             |{{button off2|button off color={{{button off color|}}}}}{{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font>}} }}<!--
                             |{{button off2|button off color={{{button off color|}}}}}{{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font>}} }}<!--
***Adds the Definition tab***
-->{{#ifexist:{{{basepagename}}}/Definition
|
|{{#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=#CA3D10>Def</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. ***

Revision as of 00:59, 9 May 2008


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.