Template:Subpages9: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(remove notes)
imported>Chris Day
(define status in button on)
Line 1: Line 1:
<div align="left" border="0" style="background-color: #cccccc; margin:0.5em;">
<div align="left" border="0" style="background-color: #cccccc; margin:0.5em;">
{|class=noprint width="100%" border="0" cellpadding="1" cellspacing="0" style="background:#ffffff"{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}| {{button on2}} | {{button off2}} }}|<font size=1>[[{{BASEPAGENAME}}|Main Article]]</font>{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Draft| {{button on2}} | {{button off2}} }}|<font size=1>[[{{BASEPAGENAME}}/Draft|Draft]]</font>{{Default button 3}}{{Optional button 3}}
{|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}}
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
|style="background-color: #FFFFff; border-bottom:2px solid #eeeeee"|&nbsp;
|-
|-
Line 34: Line 34:
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
| {{ #ifeq: {{BASEPAGENAME}}|{{FULLPAGENAME}}
  |<!--(Article)-->{{#ifeq:{{:{{BASEPAGENAME}}/Metadata|info=status}}|0|{{approved3|group= {{:{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{:{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{:{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{:{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{:{{BASEPAGENAME}}/Metadata|info=status}}|editor= {{:{{BASEPAGENAME}}/Metadata|info=A editor}}|editor2= {{:{{BASEPAGENAME}}/Metadata|info=A editor2}}|editor3= {{:{{BASEPAGENAME}}/Metadata|info=A editor3}}}} {{Checklist3|group= {{:{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{:{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{:{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{:{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{:{{BASEPAGENAME}}/Metadata|info=status}}}}| {{Construction2}} }}  
  |<!--(Article)-->{{#ifeq:{{:{{BASEPAGENAME}}/Metadata|info=status}}|0|{{approved3|group= {{:{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{:{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{:{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{:{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{:{{BASEPAGENAME}}/Metadata|info=status}}|editor= {{:{{BASEPAGENAME}}/Metadata|info=A editor}}|editor2= {{:{{BASEPAGENAME}}/Metadata|info=A editor2}}|editor3= {{:{{BASEPAGENAME}}/Metadata|info=A editor3}}}} {{Checklist3|group= {{:{{BASEPAGENAME}}/Metadata|info=cat1}}|group2= {{:{{BASEPAGENAME}}/Metadata|info=cat2}}|group3={{:{{BASEPAGENAME}}/Metadata|info=cat3}}|abc={{:{{BASEPAGENAME}}/Metadata|info=abc}}|status= {{:{{BASEPAGENAME}}/Metadata|info=status}}}}| {{Construction2}} }}  
  |<!--(Unused pages)-->{{#ifeq:{{SUBPAGENAME}}|Unused|{{Unused subpages}} }} }} }}
  |<!--(Unused pages)-->{{#ifeq:{{SUBPAGENAME}}|Unused|{{Unused subpages}} }} }} }}<noinclude>
== 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.
 
{|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>

Revision as of 09:41, 16 August 2007

Main Article
DraftTemplate:Default button 3  

(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