Template:Subpages7: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(this should fade out the tab when the page does not exist and work as normal when the page does exist)
imported>Chris Day
 
(11 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}|  
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}|  
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}}colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} |[[{{NAMESPACE}}:{{BASEPAGENAME}}|Main Article]]
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}}colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} |[[{{NAMESPACE}}:{{BASEPAGENAME}}|Main Article]]
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/ Definition|  
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Definition|  
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}}colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} |[[{{NAMESPACE}}:{{BASEPAGENAME}}/Definition|Definition]]{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Defintion||&nbsp;<font color="#00ff00" size=1>[[Template:Def {{BASEPAGENAME}}|e]]</font>}}
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}}colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} |[[{{NAMESPACE}}:{{BASEPAGENAME}}/Definition|Definition]]{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Defintion||&nbsp;<font color="#00ff00" size=1>[[Template:Def {{BASEPAGENAME}}|e]]</font>}}
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related|  
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related|  
Line 16: Line 16:
|}
|}
{|border="0" width=700px align=center frame=box rules=none cellpadding="1" cellspacing="1" style="margin: 0 0 0 0; border-bottom:2px solid #a9a9a9; background:#ffffff; wrap:no"
{|border="0" width=700px align=center frame=box rules=none cellpadding="1" cellspacing="1" style="margin: 0 0 0 0; border-bottom:2px solid #a9a9a9; background:#ffffff; wrap:no"
|colspan=2 width=100px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"|Tables
 
|colspan=2 width=100px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"|Gallery
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Tables| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tables|
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Tables|Tables]] |
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Tables {{!}} <font color="#cccccc">Tables</font>]] }}
 
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Gallery| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Gallery|
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Gallery|Gallery]] |  
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Gallery {{!}} <font color="#cccccc">Gallery</font>]] }}
 
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Timelines| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Timelines|  
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Timelines| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Timelines|  
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Timelines|Timelines]] |  
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Timelines|Timelines]] |  
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/ Timelines {{!}} <font color="#cccccc">Timelines</font>]] }}
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Timelines {{!}} <font color="#cccccc">Timelines</font>]] }}
|colspan=2 width=100px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"|Tutorials
 
|colspan=2 width=100px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"|Debate&nbsp;Guide
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Tutorials| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tutorials|
|colspan=2 width=100px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"|News&nbsp;Guide
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Tutorials|Tutorials]] |  
|colspan=2 width=100px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"|Invited&nbsp;Articles
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Tutorials {{!}} <font color="#cccccc">Tutorials</font>]] }}
 
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Debate guide| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Debate guide|
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Debate guide|Debate&nbsp;Guide]] |  
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Debate guide {{!}} <font color="#cccccc">Debate&nbsp;Guide</font>]] }}
 
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/News guide| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/News guide|
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/News guide|News&nbsp;Guide]] |  
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/News guide {{!}} <font color="#cccccc">News&nbsp;Guide</font>]] }}
 
{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/Invited articles| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Invited articles|
{{!}} colspan=2 width=110px align=center bgcolor="#dddddd" style="border-bottom:2px solid #dddddd; border-top:2px solid #bbbbbb; border-left:2px solid #cccccc; border-right:2px solid #999999"| {{!}} colspan=2 width=110px align=center bgcolor="#eeeeee" style="border-top:2px solid #dddddd; border-left:2px solid #ffffff; border-right:2px solid #cccccc"}} {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Invited articles|Invited&nbsp;Articles]] |
{{!}} colspan=2 width=110px align=center bgcolor="#f9f9f9" style="border-top:2px solid #eeeeee; border-left:2px solid #ffffff; border-right:2px solid #dddddd" {{!}} [[{{NAMESPACE}}:{{BASEPAGENAME}}/Invited articles {{!}} <font color="#cccccc">Invited&nbsp;Articles</font>]] }}
|}</div>
|}</div>
<noinclude>
== Placement ==
Use on the top of pages as an index mechanism for subpages.
== Usage ==
See example on ...no current example.
{|border="0" colspan="1" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
!Wikitext
|-
|<pre>{{Subpages7}}
</pre>
|-
!Appearance
|-
|{{Subpages7}}
|}
<br/>
{| class="wikitable"
!Anatomical
|-
|{{Subpages7}}
|}
==Parameters==
None
==Credits==
* [[User:Chris Day|Chris Day]], scripting/tab design/Concept
* [[User:Robert W King|Robert King]], Concept/Original Layout
* [[User:Stephen Ewen|Stephen Ewen]], Testing/scripting
* [[User:Larry Sanger|Larry Sanger]], CZ/Establishment of Subpages
</noinclude>

Latest revision as of 16:54, 16 July 2007