Template:Subpages: 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:
<!--added back the auto header code to determine if can be used with the subpage list-->
<!--The following code is to place the correct header template above each article subpage
{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{ {{Subpage list|button=1A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}  
 
-->{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=1A}}|{{ {{Subpage list|button=1A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}  


}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=2A}}|{{ {{Subpage list|button=2A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}  
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=2A}}|{{ {{Subpage list|button=2A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}  
Line 30: Line 31:
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=15A}}|{{ {{Subpage list|button=15A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}  
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=15A}}|{{ {{Subpage list|button=15A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }}  


}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{ {{Subpage list|button=16A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }} }}
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{ {{Subpage list|button=16A}} header|group= {{{group|}}}|group2= {{{group2|}}}|group3={{{group3|}}}|abc={{{abc|}}}|approved= {{{approved|}}} }} }}<!--
<!--commenting out problematic bits, pending discussion
 
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|{{#ifeq:{{{approved}}}|yes|{{approved|editor={{{editor}}}|group={{{group}}}}}|{{Construction}}}}}}{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}/Draft|{{Draft header2}}|}}{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related|{{related header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Bibliography|{{biblio header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Links|{{links header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tables|{{tables header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Gallery|{{Gallery header|group={{{group}}}|group2={{{group2}}}|approved={{{approved}}}}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Timelines|{{timelines header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tutorials|{{Tutorials header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Debate guide|{{Debate guide header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/News guide|{{News guide header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Signed articles|{{Signed articles header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Discography|{{Discography header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other1|{{Other1}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other2|{{Other2 header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other3|{{Other3 header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other4|{{Other4 header}}}}
The following code is the subpages template that includes the subroutines to choose the default and optional buttons
--><!--encompassing table, for padding around the table-->
 
{|align=right width="110px" cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
-->{|align=right width="110px" cellpadding="1" cellspacing="0" border="0" style="background-color: #ffffff"
|align="top" align="right"|
|align="top" align="right"|
{|width="100px" border="0" cellpadding="1" cellspacing="3" style="background:#B8DAE5"
{|width="100px" border="0" cellpadding="1" cellspacing="3" style="background:#B8DAE5"

Revision as of 10:03, 21 July 2007

Cluster

Subpages

About Clusters
Unused subpages

Here's a test page -- see the upper right

For discussion about Subpages, and other versions of subpages templates with examples, also see http://forum.citizendium.org/index.php/topic,1059.0.html



Placement

Use on the top of pages as an index mechanism for subpages.

Usage





{{Subpages}}
Cluster

Subpages

About Clusters
Unused subpages
Cluster

Subpages

About Clusters
Unused subpages
Wikitext Appearance Anatomical

Parameters

None

Credits