Template:Subpage list: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(add button 18 to field)
imported>John Stephenson
m (Protected "Template:Subpage list": important template ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(59 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#switch: {{{button}}}
{{#switch: {{{button}}}
|1A = Related
|1A = Related Articles
|1B = Related Articles
|1B = Related Articles
|    1C = Default
|2A = Bibliography
|2A = Bibliography
|2B = Bibliography
|2B = Bibliography
|    2C = Default
|3A = External Links
|3A = Links
|3B = External Links
|3B = External Links
|    3C = Default
|4A = Works
|4A = Works
|4B = Works
|4B = Works
|    4C = Optional
|5A = Discography
|5A = Discography
|5B = Discography
|5B = Discography
|    5C = Optional
|6A = Filmography
|6A = Filmography
|6B = Filmography
|6B = Filmography
|    6C = Optional
|7A = Catalogs
|7A = Tables
|7B = Catalogs
|7B = Tables
|    7C = Optional
|8A = Timelines
|8A = Timelines
|8B = Timelines
|8B = Timelines
|    8C = Optional
|9A = Gallery
|9A = Gallery
|9B = Gallery
|9B = Gallery
|    9C = Optional
|10A = Audio
|10A = Audio
|10B = Audio
|10B = Audio
|    10C = Optional
|11A = Video
|11A = Video
|11B = Video
|11B = Video
|    11C = Optional
|12A = Code
|12A = Code
|12B = Code
|12B = Code
|    12C = Optional
|13A = Tutorials
|13A = Tutorials
|13B =  Tutorials
|13B =  Tutorials
|    13C = Optional
|14A =  Student Level
|14A =  Student
|14B =  Student Level
|14B =  Student
|15A = Signed Articles
|    14C = Optional
|15B = Signed Articles
|15A = Debate guide
|16A = Function
|15B = Debate Guide
|16B = Function
|    15C = Optional
|17A = Addendum
|16A = News guide
|17B = Addendum
|16B = News Guide
|18A = Debate Guide
|    16C = Optional
|18B = Debate Guide
|17A = Signed articles
|19A = Advanced
|17B = Signed Articles
|19B = Advanced
|    17C = Optional
|20A = Recipes
|18A = Button available
|20B = Recipes
|18B =  
|21A = Citable Version
|    18C =
|21B = Citable Version
}}<noinclude>
|22A = Button available
{{subpages}}
|22B =
The page contains all the variable parameters for the subpage navigation template.
|23A = Button available
 
|23B =
==Usage==
|24A = Button available
Currently, this template has a master list button and their variables, including the actual subpage name that is targeted by the button and the text seen on the button; these two are not always the same. Any button can also be set to either a ''default'' or an ''optional'' status. Default buttons will always appear in the navigation box even if there is that subpage does not exist in the article cluster.
|24B =
 
|25A = Button available
In the future, it will be possible to control the colours and styles of the button/tab's.
|25B =
 
|26A = Button available
==Master list of buttons==
|26B =
 
|27A = Button available
This master list of buttons is used to define the buttons on the {{[[Template:Subpages4|subpages4]]}} navigation box template.
|27B =
*'''#A'''= name of subpage
|28A = Button available
*'''#B'''= name seen on the button
|28B =
*'''#C''' = Indicates if the button represents a "Default" or "Optional" subpage, or a non functional button. Any subpage labelled "Default" will be placed at the top of the {{[[Template:Subpages4|subpages4]]}} template whether the subpage exists or not (''i.e.'' could be a red link button).  Those labelled as "Optional" will only appear in the {{[[Template:Subpages|subpages]]}} template if they exist (''i.e.'' will only show blue links). If the #C parameter is left blank it will be ignored as a button, even by the {{[[Template:Unused subpages|unused subpages]]}} template.
|29A = Button available
 
|29B =
Buttons labelled FREE can be utlised for new subpages names after they have been approved by either the Editor-in-Chief or the Editorial Council.  For a description of the full process see the following guide: [[CZ:Subpage_Pilot#How_to_add_subpage_types|How to add subpage types]]
|30A = Button available
{{col-begin}}
|30B =
{{col-break}}
|button on A =C4DFC4
:1A = '''[[CZ:{{Subpage list|button=1A}}|{{Subpage list|button=1A}}]]'''
|button on NA =C4D2DF
:1B = {{Subpage list|button=1B}}
|button off =CCCCCC
:1C = {{Subpage list|button=1C}}
|background= f3f3f3
 
}}<noinclude>{{TlDoc}}</noinclude>
:2A = '''[[CZ:{{Subpage list|button=2A}}|{{Subpage list|button=2A}}]]'''
:2B = {{Subpage list|button=2B}}
:2C = {{Subpage list|button=2C}}
 
:3A = '''[[CZ:{{Subpage list|button=3A}}|{{Subpage list|button=3A}}]]'''
:3B = {{Subpage list|button=3B}}
:3C = {{Subpage list|button=3C}}
 
:4A = '''[[CZ:{{Subpage list|button=4A}}|{{Subpage list|button=4A}}]]'''
:4B = {{Subpage list|button=4B}}
:4C = {{Subpage list|button=4C}}
 
:5A = '''[[CZ:{{Subpage list|button=5A}}|{{Subpage list|button=5A}}]]'''
:5B = {{Subpage list|button=5B}}
:5C = {{Subpage list|button=5C}}
 
{{col-break}}
:6A = '''[[CZ:{{Subpage list|button=6A}}|{{Subpage list|button=6A}}]]'''
:6B = {{Subpage list|button=6B}}
:6C = {{Subpage list|button=6C}}
 
:7A = '''[[CZ:{{Subpage list|button=7A}}|{{Subpage list|button=7A}}]]'''
:7B = {{Subpage list|button=7B}}
:7C = {{Subpage list|button=7C}}
 
:8A = '''[[CZ:{{Subpage list|button=8A}}|{{Subpage list|button=8A}}]]'''
:8B = {{Subpage list|button=8B}}
:8C = {{Subpage list|button=8C}}
 
:9A = '''[[CZ:{{Subpage list|button=9A}}|{{Subpage list|button=9A}}]]'''
:9B = {{Subpage list|button=9B}}
:9C = {{Subpage list|button=9C}}
 
:10A = '''[[CZ:{{Subpage list|button=10A}}|{{Subpage list|button=10A}}]]'''
:10B = {{Subpage list|button=10B}}
:10C = {{Subpage list|button=10C}}
 
{{col-break}}
:11A = '''[[CZ:{{Subpage list|button=11A}}|{{Subpage list|button=11A}}]]'''
:11B = {{Subpage list|button=11B}}
:11C = {{Subpage list|button=11C}}
 
:12A = '''[[CZ:{{Subpage list|button=12A}}|{{Subpage list|button=12A}}]]'''
:12B = {{Subpage list|button=12B}}
:12C = {{Subpage list|button=12C}}
 
:13A = '''[[CZ:{{Subpage list|button=13A}}|{{Subpage list|button=13A}}]]'''
:13B = {{Subpage list|button=13B}}
:13C = {{Subpage list|button=13C}}
 
:14A = '''[[CZ:{{Subpage list|button=14A}}|{{Subpage list|button=14A}}]]'''
:14B = {{Subpage list|button=14B}}
:14C = {{Subpage list|button=14C}}
 
:15A = '''[[CZ:{{Subpage list|button=15A}}|{{Subpage list|button=15A}}]]'''
:15B = {{Subpage list|button=15B}}
:15C = {{Subpage list|button=15C}}
 
{{col-break}}
:16A = '''[[CZ:{{Subpage list|button=16A}}|{{Subpage list|button=16A}}]]'''
:16B = {{Subpage list|button=16B}}
:16C = {{Subpage list|button=16C}}
 
:17A = '''[[CZ:{{Subpage list|button=17A}}|{{Subpage list|button=17A}}]]'''
:17B = {{Subpage list|button=17B}}
:17C = {{Subpage list|button=17C}}
{{col-end}}
 
==Button colours==
===Tab based===
To be continued, currently an experimental idea.
*Button ON
:Body
::body on A =
::body on NA =
:Lines
::top on =
::left on =
::right on =
::bottom on = (same as ''body on'' with A and NA variable)
*Button OFF
:Body
::body off =
:Lines
::top off =
::left off =
::right off =
::bottom off =
*Table
:Body
::body A = (same as ''body on'' for Button ON)
::body NA = (same as ''body on'' for Button ON)
:Lines
::top =
::left =
::right =
::bottom =
 
===Column based===
</noinclude>

Latest revision as of 06:43, 13 August 2013

This documentation is transcluded from Template:Subpage list/doc (edit | history)

This master list of buttons is used to define the buttons on the {{subpages}} navigation box template.

In edit mode two fields are required:

  • #A= name of subpage
  • #B= same name but using non breaking spaces. Used in the subpages tab.
If the #B parameter is left blank it will not be included in the unused subpage list on the talk page.

The first three buttons are hardwired as default by the subpages template, the others are optional. Any subpagedefined as "Default" will be placed at the top of the {{subpages}} template whether the subpage exists in the cluster or not (i.e. could be a red link button). Those labelled as "Optional" will only appear in the {{subpages}} template if they exist in the cluster (i.e. will only show blue links).

Buttons labelled "Button available" can be utlised for new subpages names after they have been approved by either the Editor-in-Chief or the Editorial Council. For a description of the full process see the following guide: How to add subpage types

1 = Related Articles
2 = Bibliography
3 = External Links
4 = Works
5 = Discography

6 = Filmography
7 = Catalogs
8 = Timelines
9 = Gallery
10 = Audio

11 = Video
12 = Code
13 = Tutorials
14 = Student Level
15 = Signed Articles

16 = Function
17 = Addendum
18 = Debate Guide
19 = Advanced
20 = Recipes

21 = Citable Version
22 = Button available
23 = Button available

24 = Button available
25 = Button available

26 = Button available
27 = Button available
28 = Button available

29 = Button available
30 = Button available

Colors used in the subpages template:

Button type field name designated color example of the color selected
For approved article button on A C4DFC4
For unapproved article button on NA C4D2DF
For a button that is not selected button off CCCCCC
For template background background f3f3f3