Template:Subpages9: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(rv no need to define status can be done in button)
imported>Chris Day
(remove notes)
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}} }} }} }}<noinclude>
  |<!--(Unused pages)-->{{#ifeq:{{SUBPAGENAME}}|Unused|{{Unused subpages}} }} }} }}
== 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:30, 16 August 2007