Template:Subpages9: Difference between revisions
imported>Chris Day |
imported>Chris Day No edit summary |
||
Line 30: | Line 30: | ||
|style="background-color: #dddddd; border-bottom:2px solid #aaaaaa"| | |style="background-color: #dddddd; border-bottom:2px solid #aaaaaa"| | ||
|- | |- | ||
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|{{#ifeq:{{{approved}}}|yes|{{!}}colspan=20 style="background:#dddddd"{{!}}{{approved|editor={{{editor}}}|group={{{group}}}}}|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Construction}}}}}}{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}/Draft|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Draft header}}|}}{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related|{{!}}colspan=20 style="background:#dddddd"{{!}}{{related header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Bibliography|{{!}}colspan=20 style="background:#dddddd"{{!}}{{biblio header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Links|{{!}}colspan=20 style="background:#dddddd"{{!}}{{links header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tables|{{!}}colspan=20 style="background:#dddddd"{{!}}{{tables header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Gallery|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Gallery header|group={{{group}}}|group2={{{group2}}}|approved={{{approved}}}}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Timelines|{{!}}colspan=20 style="background:#dddddd"{{!}}{{timelines header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tutorials|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Tutorials header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Debate guide|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Debate guide header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/News guide|{{!}}colspan=20 style="background:#dddddd"{{!}}{{News guide header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Signed articles|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Signed articles header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Discography|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Discography header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other1|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Other1}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other2|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Other2 header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other3|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Other3 header}}}} | {{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|{{#ifeq:{{{approved}}}|yes|{{!}}colspan=20 style="background:#dddddd"{{!}}{{approved|editor={{{editor}}}|group={{{group}}}}}|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Construction}}}}}}{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}/Draft|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Draft header}}|}}{{#ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Related|{{!}}colspan=20 style="background:#dddddd"{{!}}{{related header|group={{{group}}}}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Bibliography|{{!}}colspan=20 style="background:#dddddd"{{!}}{{biblio header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Links|{{!}}colspan=20 style="background:#dddddd"{{!}}{{links header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tables|{{!}}colspan=20 style="background:#dddddd"{{!}}{{tables header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Gallery|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Gallery header|group={{{group}}}|group2={{{group2}}}|approved={{{approved}}}}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Timelines|{{!}}colspan=20 style="background:#dddddd"{{!}}{{timelines header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Tutorials|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Tutorials header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Debate guide|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Debate guide header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/News guide|{{!}}colspan=20 style="background:#dddddd"{{!}}{{News guide header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Signed articles|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Signed articles header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Discography|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Discography header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other1|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Other1}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other2|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Other2 header}}}}{{ #ifeq: {{PAGENAME}} |{{BASEPAGENAME}}/Other3|{{!}}colspan=20 style="background:#dddddd"{{!}}{{Other3 header}}}} | ||
|}</div><noinclude> | |}</div><noinclude> | ||
== Placement == | == Placement == |
Revision as of 08:17, 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 Anthropology.
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= }}
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.
- {{Draft header}}
- {{Related header}}
- {{Biblio header}}
- {{Links header}}
- {{Tables header}}
- {{Timelines header}}
- {{Tutorials header}}
- {{Debate guide header}}
- {{Discography header}}
- {{Gallery header}}
- {{Signed articles header}}
- {{News guide header}}
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
- Chris Day, scripting/tab design/Concept
- Robert King, Concept/Original Layout
- Stephen Ewen, Testing/scripting
- Larry Sanger, CZ/Establishment of Subpages