Template:Subpage style: Difference between revisions
Jump to navigation
Jump to search
imported>Chris Day No edit summary |
imported>Chris Day No edit summary |
||
Line 5: | Line 5: | ||
***Adds the status bar on the article and all subpages.*** | ***Adds the status bar on the article and all subpages.*** | ||
|approved color={{{approved color|}}} | |approved color={{{approved color|}}}|not approved color={{{not approved color|}}} | ||
|not approved color={{{not approved color|}}} | |||
|button off color={{{button off color|}}} | |button off color={{{button off color|}}} | ||
Line 19: | Line 18: | ||
***Adds the MAIN ARTICLE tab*** | ***Adds the MAIN ARTICLE tab*** | ||
-->{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|button on2|x0}}|status= {{{status|}}}}}{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|x0|button off2}}|}}{{!}}<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 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 25: | Line 24: | ||
-->{{#ifeq: {{{status|}}}|0 | -->{{#ifeq: {{{status|}}}|0 | ||
|{{#ifeq:{{{namespace|}}}|Talk | |{{#ifeq:{{{namespace|}}}|Talk | ||
|{{button on25|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}/Draft|Talk]]</font> | |{{button on25|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}/Draft|Talk]]</font> | ||
|{{button off25}}{{!}}<font size= | |{{button off25|button off color={{{button off color|}}}}}{{!}}<font size=2>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>}} | ||
|{{#ifeq:{{{namespace|}}}|Talk | |{{#ifeq:{{{namespace|}}}|Talk | ||
|{{button on25|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font> | |{{button on25|approved color={{{approved color|}}}|not approved color={{{not approved color|}}}|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font> | ||
|{{button off25}}{{!}}<font size= | |{{button off25|button off color={{{button off color|}}}}}{{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font>}} }}<!-- | ||
***Adds the DRAFT tab but only if the article is approved. *** | ***Adds the DRAFT tab but only if the article is approved. *** | ||
-->{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{{name|}}} |{{{pagename|}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=2>[[{{{pagename|}}}/Draft|Draft]]</font> }}<!-- | -->{{#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. *** | ||
Line 79: | Line 78: | ||
</nowiki>{{Optional3|{{Subpage list|button=20A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki> | </nowiki>{{Optional3|{{Subpage list|button=20A}} |status = {{{status|}}}|pagename={{{pagename|}}}|name={{{name|}}}}}<nowiki> | ||
</nowiki>{{Button_off25}}|{{click|image=Subpages.png|link=CZ:Subpages |width=17px|height=17px}} | </nowiki>{{Button_off25|button off color={{{button off color|}}}}}|{{click|image=Subpages.png|link=CZ:Subpages |width=17px|height=17px}} | ||
|style="background-color: #{{{background|}}}; border-bottom:2px solid #eeeeee"| | |style="background-color: #{{{background|}}}; border-bottom:2px solid #eeeeee"| | ||
|- | |- |
Revision as of 23:47, 26 March 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.