Template:Subpages9: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(add parameters)
imported>Chris Day
(remove name space so will work on talk page)
Line 1: Line 1:
<div align="left" style="background-color: #dddddd; border:1px solid #silver; margin:0.5em;">
<div align="left" style="background-color: #dddddd; border:1px solid #silver; margin:0.5em;">
{|width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"
{|width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}|Main&nbsp;Article]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}|Main&nbsp;Article]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Draft| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Draft|Draft]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Draft| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/Draft|Draft]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Related|Related&nbsp;articles]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/Related|Related&nbsp;articles]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Bibliography| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Bibliography|Bibliography]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Bibliography| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/Bibliography|Bibliography]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Links| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Links|External&nbsp;links]]</font><nowiki>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Links| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/Links|External&nbsp;links]]</font><nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Tables| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tables|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Tables|Tables]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Tables| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tables|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Tables|Tables]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Gallery| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Gallery|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Gallery|Gallery]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Gallery| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Gallery|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Gallery|Gallery]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Timelines| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Timelines|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Timelines|Timelines]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Timelines| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Timelines|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Timelines|Timelines]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Tutorials| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tutorials|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Tutorials|Tutorials]] </font>|}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Tutorials| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tutorials|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Tutorials|Tutorials]] </font>|}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Debate guide|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Debate guide|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Debate guide|Debate&nbsp;Guide]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Debate guide|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Debate guide|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Debate guide|Debate&nbsp;Guide]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/News guide| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/News guide|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/News guide|News&nbsp;Guide]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/News guide| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/News guide|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/News guide|News&nbsp;Guide]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Signed articles|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Signed articles|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Signed articles|Signed&nbsp;Articles]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Signed articles|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Signed articles|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Signed articles|Signed&nbsp;Articles]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Discography|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Discography|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Discography|Discography]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Discography|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Discography|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Discography|Discography]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Other1|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other1|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Other1|Other1]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Other1|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other1|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Other1|Other1]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Other2|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other2|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Other2|Other2]]</font> |}}<nowiki>
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Other2|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other2|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Other2|Other2]]</font> |}}<nowiki>


</nowiki>{{#ifexist:{{BASEPAGENAME}}/Other3|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other3|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{NAMESPACE}}:{{BASEPAGENAME}}/Other3|Other3]]</font> |}}
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Other3|{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other3|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Other3|Other3]]</font> |}}
|style="background-color: #dddddd; border-bottom:2px solid #aaaaaa"|&nbsp;
|style="background-color: #dddddd; border-bottom:2px solid #aaaaaa"|&nbsp;
|-  
|-  

Revision as of 15:32, 26 July 2007

Main Article Draft Related articles Bibliography External links  

Placement

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

Usage

See example on Chiropractic.

Wikitext
{{Subpages9}}
Appearance


Anatomical

Parameters

When used on the main article the template will transclude the {{Approved}} template if the article has been approved or transclude the {{Construction}} template if the article is still a developing. Consequently the subpages9 templates uses the same parameters.

Consequently when the subpages9 template is used on the main article, it may need one or more of the following parameters. See {{Approved}} fo9r a more detailed explanation of their usage.

{{Subpages9
|editor=
|editor2=
|editor3=
|group=
|group2=
|group3=
|abc=
|status=
}}

Templates via transclusion are used on all the subpages, although not all of these templates use variable parameters. The following templates are transcluded for each subpage. (this is still a work in progress, any parameters important for each subpage will be added pending this template moving beyond a testing phase.

Style templates

The folowing templates are used to control the style elements of the tab buttons.

  • {{Subpagetab}} - designates the variables for the selected tab.
  • {{Subpagetab2}} - designates the variables for the unselected tab.

Credits