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 1: Line 1:
<includeonly>{{#ifexist:{{{basepagename|}}}/Approval|
<includeonly>
|'''Create "approval" page.'''
<inputbox>
type=create
default=ARTICLE_NAME/Approval
preload=Template:Subpages_name3
editintro='''Just hit save!'''
buttonlabel=Create "approval" page
</inputbox>
<center>(1) Replace ARTICLE_NAME with the name you used in Step 1, and press the button.<br>(2) Save (you'll see <nowiki>{{subpages}}</nowiki> in the box--leave it there).</center>}}
{{#ifexist:Talk:{{{basepagename|}}}|
|'''Create "Talk" page.'''
<inputbox>
type=create
default=Talk:ARTICLE_NAME
preload=Template:Subpages_name3
editintro='''Just hit save!'''
buttonlabel=Create "Talk" page
</inputbox>
<center>(1) Replace ARTICLE_NAME with the name you used in Step 1, and press the button.<br>(2) Save (you'll see <nowiki>{{subpages}}</nowiki> in the box--leave it there).</center>}}
<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="1" cellspacing="0" style="background:#ffffff"
{|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"
Line 99: Line 80:
               |}} }}
               |}} }}
{{#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?title={{FULLPAGENAMEE}}&printable=yes|width=17px|height=17px}} }}
|{{click|image=Metadata.png|link=Template:{{{pagename|}}}/Metadata|width=17px|height=17px}}
{{ #ifeq: {{{type|}}}|template
|{{click|image=Approval button.png|link={{{pagename|}}}/Approval |width=17px|height=17px}}
                |{{!}} {{click|image=Approval button.png|link={{{basepagename|}}}/Approval |width=17px|height=17px}}
|{{click|image=Unused button.png|link={{{pagename|}}}/Unused|width=17px|height=17px}}  
 
                |{{#ifeq:{{{namespace|}}}|Talk
                      |{{!}}{{click|image=Metadata.png|link=Template:{{{basepagename|}}}/Metadata|width=17px|height=17px}}
 
{{!}} {{click|image=Approval button.png|link={{{basepagename|}}}/Approval |width=17px|height=17px}}  
                      |{{#ifeq:{{{subpagename|}}}|Approval
                            |{{!}}{{click|image=Metadata.png|link=Template:{{{basepagename|}}}/Metadata|width=17px|height=17px}}
                            |}} }} }}
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
|}{{ #ifeq: {{{name|}}}|{{{fullpagename|}}}
       |{{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}
       |{{ #ifeq: {{{basepagename|}}}|{{{fullpagename|}}}

Revision as of 17:41, 13 October 2007

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 (unapproved) and the Biology cluster (approved).