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 19: | Line 19: | ||
***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= | -->{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|button on2|x0}}|status= {{{status|}}}}}{{{{ #ifeq: {{{name|}}} |{{{basepagename|}}}|x0|button off2}}|}}{{!}}<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 25: | ||
-->{{#ifeq: {{{status|}}}|0 | -->{{#ifeq: {{{status|}}}|0 | ||
|{{#ifeq:{{{namespace|}}}|Talk | |{{#ifeq:{{{namespace|}}}|Talk | ||
|{{button on25|status= {{{status|}}}}} {{!}}<font size= | |{{button on25|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}/Draft|Talk]]</font> | ||
|{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>}} | |{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}/Draft|Talk]]</font>}} | ||
|{{#ifeq:{{{namespace|}}}|Talk | |{{#ifeq:{{{namespace|}}}|Talk | ||
|{{button on25|status= {{{status|}}}}} {{!}}<font size= | |{{button on25|status= {{{status|}}}}} {{!}}<font size=2>[[Talk:{{{pagename|}}}|Talk]]</font> | ||
|{{button off25}}{{!}}<font size=1>[[Talk:{{{pagename|}}}|Talk]]</font>}} }}<!-- | |{{button off25}}{{!}}<font size=1>[[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= | -->{{#ifeq: {{{status|}}}|0|{{ #ifeq: {{{name|}}} |{{{pagename|}}}/Draft| {{button on2|status= {{{status|}}}}} | {{button off2}} }}{{!}}<font size=2>[[{{{pagename|}}}/Draft|Draft]]</font> }}<!-- | ||
***Adds the DEFAULT subpage tabs. *** | ***Adds the DEFAULT subpage tabs. *** |
Revision as of 23:41, 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.