Template talk:Subpage list: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
imported>Chris Day
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Subpage ID's==
Don't you think we should be using numerical IDs?  Surely we'll have more than 26 subpage types in the long run.  I anticipate hundreds... --[[User:Larry Sanger|Larry Sanger]] 14:39, 19 July 2007 (CDT)
Don't you think we should be using numerical IDs?  Surely we'll have more than 26 subpage types in the long run.  I anticipate hundreds... --[[User:Larry Sanger|Larry Sanger]] 14:39, 19 July 2007 (CDT)


In that case number would be good.  i was using letter for now to get the A, AA, and AAA.  However, 1A, 1B and 1C works equally well. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 16:25, 19 July 2007 (CDT)
: In that case number would be good.  i was using letter for now to get the A, AA, and AAA.  However, 1A, 1B and 1C works equally well. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 16:25, 19 July 2007 (CDT)


:''Hundreds?''  Wow. Can you elaborate?  —[[User:Stephen Ewen|Stephen Ewen]] [[User talk:Stephen Ewen|(Talk)]] 18:37, 19 July 2007 (CDT)
:''Hundreds?''  Wow. Can you elaborate?  —[[User:Stephen Ewen|Stephen Ewen]] [[User talk:Stephen Ewen|(Talk)]] 18:37, 19 July 2007 (CDT)
Line 23: Line 25:


In the forum it was also mentioned that it would be good for the optional buttons to sort alphabetically. The current code is not set up to do that.  And i'm not sure if it is even possible (my ignorance at work here). This could be solved by doing it manually in this subpages list template but would lead to a logistical nightmare when adding new pages.  A possible solution is for someone to write a simple script to regenrate the list each time a new button is added.  [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 00:39, 20 July 2007 (CDT)
In the forum it was also mentioned that it would be good for the optional buttons to sort alphabetically. The current code is not set up to do that.  And i'm not sure if it is even possible (my ignorance at work here). This could be solved by doing it manually in this subpages list template but would lead to a logistical nightmare when adding new pages.  A possible solution is for someone to write a simple script to regenrate the list each time a new button is added.  [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 00:39, 20 July 2007 (CDT)


:I just set up the code in the {{[[Template:Subpages|Subpages]]}} template to function in the way described above in option2.  Parameter #C must now be in one of three states.
:I just set up the code in the {{[[Template:Subpages|Subpages]]}} template to function in the way described above in option2.  Parameter #C must now be in one of three states.
Line 30: Line 31:
:*Set as "Optional": will only be added to the subpages template if the subpage exists.  These buttons will always be after the default buttons.
:*Set as "Optional": will only be added to the subpages template if the subpage exists.  These buttons will always be after the default buttons.
:I have set up this subpage list to demonstrate the functionality of this template.  Timelines is now a default button'''<big>*</big>''' but is listed near the bottom.  There are also two "free buttons" that have no text in their #C parameter, thus, they are not included in the unused subpage list. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 12:18, 20 July 2007 (CDT)
:I have set up this subpage list to demonstrate the functionality of this template.  Timelines is now a default button'''<big>*</big>''' but is listed near the bottom.  There are also two "free buttons" that have no text in their #C parameter, thus, they are not included in the unused subpage list. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 12:18, 20 July 2007 (CDT)
::'''<big>*</big>''' I just set timeline back to an optional status. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 10:23, 21 July 2007 (CDT)
::'''<big>*</big>''' I just set timeline back to an optional status. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 10:23, 21 July 2007 (CDT)


Line 35: Line 37:


We might want another subpage type for lists and catalogs. For example, on a genus page, there could be a list of species, the [[philosophy]] page has a [[Catalog of famous philosophers]], etc. I think these are different from related articles. I am working off and on on a "Catalog of commercial wood species" which should be linked from the [[Wood]] page. [[User:Luigi Zanasi|Luigi Zanasi]] 13:38, 28 July 2007 (CDT)
We might want another subpage type for lists and catalogs. For example, on a genus page, there could be a list of species, the [[philosophy]] page has a [[Catalog of famous philosophers]], etc. I think these are different from related articles. I am working off and on on a "Catalog of commercial wood species" which should be linked from the [[Wood]] page. [[User:Luigi Zanasi|Luigi Zanasi]] 13:38, 28 July 2007 (CDT)
:At present this comes under tables but we could change the names to be more descriptive of the table content. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 13:51, 28 July 2007 (CDT)
:At present this comes under tables but we could change the names to be more descriptive of the table content. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 13:51, 28 July 2007 (CDT)


Yes, I'm thinking that "Catalog" was more apt than "Table" after all.  "Table" just doesn't convey any clear notions, it just says what the format is.  Well, a timeline might be in a tabular format.  Hmm.  I think I've convinced myself again..."Catalog" is a little better.  Thoughts? --[[User:Larry Sanger|Larry Sanger]] 13:56, 28 July 2007 (CDT)
Yes, I'm thinking that "Catalog" was more apt than "Table" after all.  "Table" just doesn't convey any clear notions, it just says what the format is.  Well, a timeline might be in a tabular format.  Hmm.  I think I've convinced myself again..."Catalog" is a little better.  Thoughts? --[[User:Larry Sanger|Larry Sanger]] 13:56, 28 July 2007 (CDT)
:Agree. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 14:43, 28 July 2007 (CDT)
:Agree. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 14:43, 28 July 2007 (CDT)
::I don't think catalog is that obvious to someone who is not familiar with Citizewndium terminology. How about "Tables, catalogues & lists"? [[User:Luigi Zanasi|Luigi Zanasi]] 23:31, 28 July 2007 (CDT)
::I don't think catalog is that obvious to someone who is not familiar with Citizewndium terminology. How about "Tables, catalogues & lists"? [[User:Luigi Zanasi|Luigi Zanasi]] 23:31, 28 July 2007 (CDT)
:::It's a bit long, too long for one of the buttons in the navigation box, for example. ''Catalogs and lists'' might be about as long as you can go. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 23:41, 28 July 2007 (CDT)
:::It's a bit long, too long for one of the buttons in the navigation box, for example. ''Catalogs and lists'' might be about as long as you can go. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 23:41, 28 July 2007 (CDT)


==Noinclude text from template body==
==Noinclude text from template body==
Pasted here for storage until figure out bug. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 14:41, 30 July 2007 (CDT)
Pasted here for storage until figure out bug. It appears that there is a size limit for text in the body of the template.  Even just adding more random plain text will cause the def templates on Biology/Related not to function corrrectly.  I have no idea why this would be the case. This may become an issue again as we add more buttons in the future, and hence more text. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 14:41, 30 July 2007 (CDT)
 
<!--
<noinclude>
<noinclude>
{{subpages}}
{{subpages}}
Line 52: Line 60:


In the future, it will be possible to control the colours and styles of the button/tab's.
In the future, it will be possible to control the colours and styles of the button/tab's.
===Master list of buttons===
This master list of buttons is used to define the buttons on the {{[[Template:Subpages4|subpages4]]}} navigation box template.
*'''#A'''= name of subpage
*'''#B'''= name seen on the button
*'''#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.
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: [[CZ:Subpage_Pilot#How_to_add_subpage_types|How to add subpage types]]
{{col-begin}}
{{col-break}}
:1A = '''[[CZ:{{Subpage list|button=1A}}|{{Subpage list|button=1A}}]]'''
:1B = {{Subpage list|button=1B}}
:1C = {{Subpage list|button=1C}}
: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}}
:18A = '''[[CZ:{{Subpage list|button=18A}}|{{Subpage list|button=18A}}]]'''
:18B = {{Subpage list|button=18B}}
:18C = {{Subpage list|button=18C}}
:19A = '''[[CZ:{{Subpage list|button=19A}}|{{Subpage list|button=19A}}]]'''
:19B = {{Subpage list|button=19B}}
:19C = {{Subpage list|button=19C}}
:20A = '''[[CZ:{{Subpage list|button=20A}}|{{Subpage list|button=20A}}]]'''
:20B = {{Subpage list|button=20B}}
:20C = {{Subpage list|button=20C}}
{{col-end}}


===Button colours===
===Button colours===
Line 179: Line 93:
====Column based====
====Column based====
</noinclude>
</noinclude>
-->
==Recycling more codes==
Are there any other types we can turn into [[CZ:Article-specific subpage types]]? I'd nominate 'Recipes', which seem like a fairly rare subpage, but I'm scared the cooking mafia will tear my lungs out and, well, cook them... :-) [[User:J. Noel Chiappa|J. Noel Chiappa]] 22:23, 22 April 2008 (CDT)
:One argument against this might be that recipes will probably use subsubpages too. As such tehy are hardwired into the subpages template and so might as well be here. I could go either way. [[User:Chris Day|Chris Day]] 23:05, 22 April 2008 (CDT)

Latest revision as of 23:05, 22 April 2008

Subpage ID's

Don't you think we should be using numerical IDs? Surely we'll have more than 26 subpage types in the long run. I anticipate hundreds... --Larry Sanger 14:39, 19 July 2007 (CDT)

In that case number would be good. i was using letter for now to get the A, AA, and AAA. However, 1A, 1B and 1C works equally well. Chris Day (talk) 16:25, 19 July 2007 (CDT)
Hundreds? Wow. Can you elaborate?  —Stephen Ewen (Talk) 18:37, 19 July 2007 (CDT)

Think of specializations and the special types of information they deal with. Music: collections of abcs or other files. Anthropology and archaeology: 3D models of the human body and of archaeological sites. Geography and history: maps (distinguished from images).

But I think what I had in mind, which made me say "hundreds," were special applications of existing subpage types. So, for example, for articles about countries and demographic topics we might have Statistics pages that are essentially types (applications) of Table/Catalog pages. For articles about artists, our galleries might be renamed in some distinctive way (but "gallery" is perfect in this case...).

On the other hand, there might be value in keeping the list of types of subpages to something only a little more expanded than what we have now.

I would like to have some advice on this, actually, from an LIS person. --Larry Sanger 00:08, 29 July 2007 (CDT)

Default button option

Thinking a bit more about the default vs optional subpages, there seem to be two formats to consider.  

  1. Subpage buttons always appear in the same relative order (although some may be missing if optional).  Conseqently if there are two default subpages A page and D page, all CZ pages using the template will have buttons for A and D.  But if B and C pages are present for a particular article then the buttons will appear in the order A,B,C and D.
  2. Subpages buttons will cluster, default one first, followed by tthe optional buttons. Conseqently if there are two defaults A page and D page, all CZ pages using the template will have buttons for A and D.  But if B and C pages are present for a particular article then the buttons will appear in the order A, D, B and C.

The current subpages template is coded to give the first solution. One advantage is that only values have to be attributed to the designated Default pages others will be optional automatically.  

For the second option to work all subpages in the "subages list" template must be given an attribute, either "Default" or "Optional". Larry, from what you wrote in the forum it sounds like you would prefer the second option.

In the forum it was also mentioned that it would be good for the optional buttons to sort alphabetically. The current code is not set up to do that.  And i'm not sure if it is even possible (my ignorance at work here). This could be solved by doing it manually in this subpages list template but would lead to a logistical nightmare when adding new pages.  A possible solution is for someone to write a simple script to regenrate the list each time a new button is added. Chris Day (talk) 00:39, 20 July 2007 (CDT)

I just set up the code in the {{Subpages}} template to function in the way described above in option2. Parameter #C must now be in one of three states.
  • Left blank: will be ignored as a button, even by the {{unused subpages}} template.
  • Set as "Default": will be added to the top of the subpages template even if the subpage does not exist. Will also be included in the unused subpages template.
  • Set as "Optional": will only be added to the subpages template if the subpage exists. These buttons will always be after the default buttons.
I have set up this subpage list to demonstrate the functionality of this template. Timelines is now a default button* but is listed near the bottom. There are also two "free buttons" that have no text in their #C parameter, thus, they are not included in the unused subpage list. Chris Day (talk) 12:18, 20 July 2007 (CDT)
* I just set timeline back to an optional status. Chris Day (talk) 10:23, 21 July 2007 (CDT)

Lists and catalogs?

We might want another subpage type for lists and catalogs. For example, on a genus page, there could be a list of species, the philosophy page has a Catalog of famous philosophers, etc. I think these are different from related articles. I am working off and on on a "Catalog of commercial wood species" which should be linked from the Wood page. Luigi Zanasi 13:38, 28 July 2007 (CDT)

At present this comes under tables but we could change the names to be more descriptive of the table content. Chris Day (talk) 13:51, 28 July 2007 (CDT)

Yes, I'm thinking that "Catalog" was more apt than "Table" after all. "Table" just doesn't convey any clear notions, it just says what the format is. Well, a timeline might be in a tabular format. Hmm. I think I've convinced myself again..."Catalog" is a little better. Thoughts? --Larry Sanger 13:56, 28 July 2007 (CDT)

Agree. Chris Day (talk) 14:43, 28 July 2007 (CDT)
I don't think catalog is that obvious to someone who is not familiar with Citizewndium terminology. How about "Tables, catalogues & lists"? Luigi Zanasi 23:31, 28 July 2007 (CDT)
It's a bit long, too long for one of the buttons in the navigation box, for example. Catalogs and lists might be about as long as you can go. Chris Day (talk) 23:41, 28 July 2007 (CDT)

Noinclude text from template body

Pasted here for storage until figure out bug. It appears that there is a size limit for text in the body of the template. Even just adding more random plain text will cause the def templates on Biology/Related not to function corrrectly. I have no idea why this would be the case. This may become an issue again as we add more buttons in the future, and hence more text. Chris Day (talk) 14:41, 30 July 2007 (CDT)


Recycling more codes

Are there any other types we can turn into CZ:Article-specific subpage types? I'd nominate 'Recipes', which seem like a fairly rare subpage, but I'm scared the cooking mafia will tear my lungs out and, well, cook them... :-) J. Noel Chiappa 22:23, 22 April 2008 (CDT)

One argument against this might be that recipes will probably use subsubpages too. As such tehy are hardwired into the subpages template and so might as well be here. I could go either way. Chris Day 23:05, 22 April 2008 (CDT)