Template:Subpages9: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
(rv back to 3 aug)
Line 1: Line 1:
:<nowiki>{{:{{BASEPAGENAME}}/Metadata|info=status}}</nowiki>{{:{{BASEPAGENAME}}/Metadata|info=status}}
<div align="left" border="0" style="background-color: #cccccc; margin:0.5em;">
:<nowiki>{{{{BASEPAGENAME}}/Metadata|info=status}}</nowiki>{{{{BASEPAGENAME}}/Metadata|info=status}}
{|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"
:<nowiki>{{:{{BASEPAGENAME}}|info=status}}</nowiki>{{:{{BASEPAGENAME}}|info=status}}
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font>
:<nowiki>{{{{BASEPAGENAME}}|info=status}}</nowiki>{{{{BASEPAGENAME}}|info=status}}
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Draft| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/Draft|Draft]]</font>
:<nowiki>{{:../../Metadata|info=status}}</nowiki>{{:../../Metadata|info=status}}
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related Articles| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/Related Articles|Related Articles]]</font>
:<nowiki>{{../../Metadata|info=status}}</nowiki>{{../../Metadata|info=status}}
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Bibliography| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/Bibliography|Bibliography]]</font>
{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/External Links| {{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} | {{Subpagetab2}} }}|<font size=1>[[{{BASEPAGENAME}}/External Links|External links]]</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>[[{{BASEPAGENAME}}/Gallery|Gallery]]</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>


<div align="left" border="0" style="background-color: #cccccc; margin:0.5em;">
</nowiki>{{#ifexist:{{BASEPAGENAME}}/Tutorials| {{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tutorials|{{!}}{{subpagetab|status= {{{{BASEPAGENAME}}/Info|info=status}}}} |{{!}}{{Subpagetab2}} }} {{!}} <font size=1>[[{{BASEPAGENAME}}/Tutorials|Tutorials]] </font>|}}<nowiki>
{|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}| {{button on2|status={{:{{BASEPAGENAME}}/Metadata|info=status}}}} | {{button off2}} }}|<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font>{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Draft| {{button on2|status={{:{{BASEPAGENAME}}/Metadata|info=status}}}} | {{button off2}} }}|<font size=1>[[{{BASEPAGENAME}}/Draft|Draft]]</font>{{Default button 3}}{{Optional button 3}}
 
</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>[[{{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>[[{{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>[[{{BASEPAGENAME}}/Discography|Discography]]</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>[[{{BASEPAGENAME}}/Other2|Other2]]</font> |}}<nowiki>
 
</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: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
|-
|-  
{{#ifeq: {{:{{BASEPAGENAME}}/Metadata|info=status}}|0|{{!}}colspan=20 style="padding: 5px 5px 5px 5px; background:#C4DFC4; border-left:2px solid #bbbbbb; border-bottom:2px solid #cccccc"|{{!}}colspan=20 style="padding: 5px 5px 5px 5px; background:#C4D2DF; border-left:2px solid #aaaaaa; border-bottom:2px solid #bbbbbb"}}|{{Subpage_print2}}
|{{Cell_style|pagename= {{{{BASEPAGENAME}}/Info|info=pagename}}|status= {{{{BASEPAGENAME}}/Info|info=status}}
|}</div><noinclude>
 
}}{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
|<!--(Article)-->
|   {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(Draft)-->{{Draft header2|status = {{{{BASEPAGENAME}}/Info|info=status}} }} {{#ifeq: {{{{BASEPAGENAME}}/Info|info=status}}|0||{{Checklist3|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|status= {{{{BASEPAGENAME}}/Info|info=status}} }} }}
| {{ #ifexist: {{../../Info|info=pagename}}
| <!--(signed article)-->{{Signed Article Header}}
  | {{#ifeq:{{SUBPAGENAME}}|Unused
  |<!--Unused subpages-->
  | <!--(All subpage articles)-->{{ {{SUBPAGENAME}} header3|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|status= {{{{BASEPAGENAME}}/Info|info=status}} }}    }} }} }} }}
| {{#ifeq: {{BASEPAGENAME}}/{{SUBPAGENAME}}|{{PAGENAME}}
| {{#ifeq:{{NAMESPACE}}|Talk
| {{#ifeq:{{SUBPAGENAME}}|Draft
| <!--(Draft Talk page) always place the checklist here if the page exists-->{{Checklist2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|cat_check = {{{{BASEPAGENAME}}/Info|info=cat_check}}|status = {{{{BASEPAGENAME}}/Info|info=status}}|underlinked = {{{{BASEPAGENAME}}/Info|info=underlinked}}|cleanup = {{{{BASEPAGENAME}}/Info|info=cleanup}}|by = {{{{BASEPAGENAME}}/Info|info=by}} }}
| <!--not currently used--> (All subpage articles Talk) }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User subpage)
| <!--not currently used--> (User subpage talk) }} }}
| {{#ifeq:{{NAMESPACE}}|Talk
| <!--(Article Talk page) always place the checklist here if the page exists.  Basically the same as the draft talk page.-->{{Checklist2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|cat_check = {{{{BASEPAGENAME}}/Info|info=cat_check}}|status = {{{{BASEPAGENAME}}/Info|info=status}}|underlinked = {{{{BASEPAGENAME}}/Info|info=underlinked}}|cleanup = {{{{BASEPAGENAME}}/Info|info=cleanup}}|by = {{{{BASEPAGENAME}}/Info|info=by}} }}
| {{#ifeq:{{NAMESPACE}}|User
| <!--not currently used--> (User page)
| {{#ifeq:{{NAMESPACE}}|User talk
|<!--not currently used--> (User talk page)
| {{#ifeq:{{NAMESPACE}}|Template
| <!--not currently used--> (template main page)
| <!--not currently used--> (template talk page) }} }} }} }} }} }}
|}</div>{{ #ifeq: {{PAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
|<!--(Article)-->{{#ifeq:{{{{BASEPAGENAME}}/Info|info=status}}|0|{{approved3|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|status= {{{{BASEPAGENAME}}/Info|info=status}}|editor= {{{{BASEPAGENAME}}/Info|info=A editor}}|editor2= {{{{BASEPAGENAME}}/Info|info=A editor2}}|editor3= {{{{BASEPAGENAME}}/Info|info=A editor3}}}} {{Checklist3|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|status= {{{{BASEPAGENAME}}/Info|info=status}}}}| {{Construction2}} }}
|<!--(Unused pages)-->{{#ifeq:{{SUBPAGENAME}}|Unused|{{Unused subpages}} }} }} }}<noinclude>
== Placement ==
== Placement ==
Use on the top of pages as an index mechanism for subpages.
Use on the top of pages as an index mechanism for subpages.
Line 18: Line 68:
== Usage ==
== Usage ==
See example on [[Chiropractic]] an approved article.  See [[New York City]] an article that is not currently approved.
See example on [[Chiropractic]] an approved article.  See [[New York City]] an article that is not currently approved.
{|border="0" colspan="1" cellpadding="1" cellspacing="3" style="margin: 0 0 0 0; background:#ffffff;"
!Wikitext
|-
|<pre>{{Subpages9}}
</pre>
|-
!Appearance
|-
|{{Subpages9}}
|}
<br/>
{| class="wikitable"
!Anatomical
|-
|{{Subpages9}}
|}
==Parameters==
When used on the ''main article'' the template will transclude the {{[[Template:Approved|Approved]]}} template if the article has been approved or transclude the {{[[Template:Construction|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 {{[[Template:Approved|Approved]]}} fo9r a more detailed explanation of their usage.
<pre>{{Subpages9
|editor=
|editor2=
|editor3=
|group=
|group2=
|group3=
|abc=
|status=
}}</pre>
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.
*{{[[Template:Draft header|Draft header]]}}
*{{[[Template:Related header|Related header]]}}
*{{[[Template:Biblio header|Biblio header]]}}
*{{[[Template:Links header|Links header]]}}
*{{[[Template:Tables header|Tables header]]}}
*{{[[Template:Timelines header|Timelines header]]}}
*{{[[Template:Tutorials header|Tutorials header]]}}
*{{[[Template:Debate guide header|Debate guide header]]}}
*{{[[Template:Discography header|Discography header]]}}
*{{[[Template:Gallery header|Gallery header]]}}
*{{[[Template:Signed articles header|Signed articles header]]}}
*{{[[Template:News guide header|News guide header]]}}
==Style templates==
The folowing templates are used to control the style elements of the tab buttons.
*{{[[Template:Subpagetab|Subpagetab]]}} - designates the variables for the selected tab.
*{{[[Template:Subpagetab2|Subpagetab2]]}} - designates the variables for the unselected tab.
==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>
</noinclude>

Revision as of 13:13, 16 August 2007

Main Article Draft Related Articles Bibliography External links  
Template:Cell style(template main page)

Placement

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

Usage

See example on Chiropractic an approved article. See New York City an article that is not currently approved.

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