CZ Talk:Extensions/Treeview extension: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Patrice Gross
imported>Chris Day
 
(31 intermediate revisions by 5 users not shown)
Line 53: Line 53:
}}
}}
*testtwo
*testtwo
*{{subpages}}
*<!-- {{subpages}} -->
}}
}}


Line 112: Line 112:
}}
}}
|}
|}
Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken
Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken {{modern constellations}} Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken
<br/>
<br/>
<br/>
<br/>
Line 134: Line 134:
:Robert, Larry, what I am thinking is two main trees, "for readers" and "for contributors".  Any drafts with this or another scheme? [[User:Stephen Ewen|Stephen Ewen]] 15:34, 17 December 2007 (CST)
:Robert, Larry, what I am thinking is two main trees, "for readers" and "for contributors".  Any drafts with this or another scheme? [[User:Stephen Ewen|Stephen Ewen]] 15:34, 17 December 2007 (CST)
::Just do something like, if loggedin then this tree, elseif this other tree.  I think you might enlist Chris if he's not too busy. --[[User:Robert W King|Robert W King]] 16:37, 17 December 2007 (CST)
::Just do something like, if loggedin then this tree, elseif this other tree.  I think you might enlist Chris if he's not too busy. --[[User:Robert W King|Robert W King]] 16:37, 17 December 2007 (CST)
:::I can't tell whether it will be useful until I see what will go in the two categories.  There might be significant overlap, and contributors will need a lot more info than readers in any case.  I'd like to see a draft of the scheme that I described in e-mail (the [[CZ:Home]] hierarchy anyway). --[[User:Larry Sanger|Larry Sanger]] 11:43, 18 December 2007 (CST)
::::E-mail?  Scheme?  Draft? --[[User:Robert W King|Robert W King]] 11:53, 18 December 2007 (CST)
:::::I'll leave it to Steve to follow up...if he wants... --[[User:Larry Sanger|Larry Sanger]] 15:37, 18 December 2007 (CST)
::::I'd like to let it be wide open and see what folks come up with on their own.  So let's redisign the sidebar, folks!  Ideas? Drafts?  Go for it! [[User:Stephen Ewen|Stephen Ewen]] 17:14, 18 December 2007 (CST)


==Robust==
==Robust==
Line 145: Line 153:


:An ‘expand all’ command is needed (that is a command which expand the current category and any subcategory in the substructure). --[[User:Patrice Gross|Patrice Gross]] 06:35, 18 December 2007 (CST)
:An ‘expand all’ command is needed (that is a command which expand the current category and any subcategory in the substructure). --[[User:Patrice Gross|Patrice Gross]] 06:35, 18 December 2007 (CST)
:What ''is'' the problem? I'm assuming you're thinking about the presentation of phylogenetic trees?  it will be useful for family and genus articles. Is there any way to change the graphics? Those folders look a bit old fashioned. [[User:Chris Day|Chris Day]] [[User talk:Chris Day|(talk)]] 11:24, 18 December 2007 (CST)
::There is a way, but I'm not sure of it yet.  I would prefer triangles that rotated. --[[User:Robert W King|Robert W King]] 11:31, 18 December 2007 (CST)
:::There is a way, the graphics have to be added to the MediaWiki install.  Please, please, do feel free to redesign the graphics!  We'll install them to the software once we have something we like. [[User:Stephen Ewen|Stephen Ewen]] 15:14, 18 December 2007 (CST)
::::What size should they be?  Dimensions?  Image type? --[[User:Robert W King|Robert W King]] 16:14, 18 December 2007 (CST)
:::::See http://semeb.com/dpldemo/index.php?title=Treeview_extension for how one wiki replaced the images.  I'd say just follow the format and size there. But I think gif will do for all. [[User:Stephen Ewen|Stephen Ewen]] 17:06, 18 December 2007 (CST)
::::::[[Image:Open.gif]] <- Open    [[Image:Closed.gif]] <- Closed  [[Image:Item.gif|75px]] <- Item --[[User:Robert W King|Robert W King]] 17:57, 18 December 2007 (CST)
::::I already prefer this direction.  Nice! [[User:Stephen Ewen|Stephen Ewen]] 18:04, 18 December 2007 (CST)
:::::Basically, just replace the folder icons with the arrows, and the document with the item icon. --[[User:Robert W King|Robert W King]] 18:07, 18 December 2007 (CST)
::::::I don't think the proposal above (equilateral triangles and circle) would be an improvement. In my opinion, it's handy to differentiate between categories and items with colors. I don't like these drawings neither, because the orientation of the triangle is hard to discern, and the circle is not adapted when the text of the item has several lines (see examples above). --[[User:Patrice Gross|Patrice Gross]] 08:04, 19 December 2007 (CST)
:::::::The problem isn't with the circle, it's how you set up the template.  You put too many items off of one branch.  You need to put a * after every single entry object.  I'll modify your example so you can see the difference.  Check "Northern Constellations" for the difference.--[[User:Robert W King|Robert W King]] 09:01, 19 December 2007 (CST)
::::::::I didn't use the ‘'''*'''’ deliberately. I prefer to have less lines when I expand the category. --[[User:Patrice Gross|Patrice Gross]] 09:22, 19 December 2007 (CST)
:::::::::I can understand preferences, but that's not the way the extension works =[. Try subdividing your categories further into sub-categories. --[[User:Robert W King|Robert W King]] 09:24, 19 December 2007 (CST)
:::::::::Try this:
:::::::::*Winter
:::::::::**North
:::::::::**South
:::::::::**East
:::::::::**West
:::::::::*Summer
:::::::::**North
:::::::::**South
:::::::::**East
:::::::::**West
:::::::::*Spring
:::::::::**North
:::::::::**South
:::::::::**East
:::::::::**West
:::::::::*Fall
:::::::::**North
:::::::::**South
:::::::::**East
:::::::::**West
::::::::This extension works in different ways. Too much subdivisions would make the constellations tedious to find. In the first example, several items are also displayed in more than a line: the only problem is the position of the item icon, which is vertically centered, while it would be on the first line. Then, I don't understand the principle of your classification in your proposal above.  --[[User:Patrice Gross|Patrice Gross]] 10:42, 19 December 2007 (CST)
:::::::::In order to use the template effectively you have to better organize your data.  You simply can't just lump everything into one section.  For one, it looks messy and unorganized.  Two, it's simply not how the template works.  It operates in a very specific way and does not allow for much operational flexibility outside of data subdivision. --[[User:Robert W King|Robert W King]] 10:47, 19 December 2007 (CST)
::::::::We have different opinions about this design, so comments from other users would be welcomed. --[[User:Patrice Gross|Patrice Gross]] 11:50, 19 December 2007 (CST)
:::::::::I think you are both right because whether to bullet each item or aggregate them is an issue of personal preference.  I'd say don't sweat it, either way, and let some variation of usages be.  We got bigger fish to fry...like redesigning that sidebar!  [[User:Stephen Ewen|Stephen Ewen]] 12:06, 19 December 2007 (CST)
:::::::::And forms.. *cough*. --[[User:Robert W King|Robert W King]] 12:08, 19 December 2007 (CST)

Latest revision as of 22:41, 8 March 2009

Please help redesign the sidebar!

Add your ideas somewhere below....

Tree testing

{{#tree:

}}

{{#tree:openlevels=1|

  • Root
    • Sub-item
    • Another sub-item

}}

{{#tree:openlevels=2|

  • Root
    • SubOne
    • SubTwo
      • SubSubOne
        • SubSubSubOne
      • SubSubTwo
        • SubSubSubTwo
  • User:Robert_W_King
  • Developing Article fire
  • =Test=
  • ==Test==
  • ===Test===
  • test
  • test
  • test
 
3
 
4
3
 
W
 


  • testtwo

}}

Choose license

{{#tree:

  • Creative Commons logo tiny.png 
    • CC-by
    • CC-by-sa
    • CC-by-nc
    • CC-by-nd
    • CC-by-nc-nd

}}



Can it be nested inside a table with a frame?

Tree testing:

Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken

Bunch-o-stuff

{{#tree:

}}

Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Template:Modern constellations Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken Chicken

Stephen, please make a note on how it works with surrounding text. It could potentially screw up the formatting of the navigation on the left side; I don't know if it will somehow hover over the top of the text (which is what I'm worried about) or if it will move everything over strangely. In fact, expand this tree entirely, and then expand one of the above trees... it sits over the text which might be a problem. --Robert W King 17:33, 17 December 2007 (CST)
Robert, it appears flawlessly on my screen in Ff 2.X. Stephen Ewen 18:03, 17 December 2007 (CST)
I just can't explain the horror... I don't *want* to upgrade to FF 2.x or IE7 but I may have to eat crow. Additionally we should change the images; I don't think the folder look is "cool". --Robert W King 18:07, 17 December 2007 (CST)
I see the error now. I think I fixed it with margin: 0px 15px 15px 15px; . Stephen Ewen 18:40, 17 December 2007 (CST)
Good work ;). Even though I think this is a good extension, it really is a "huge loaded bullet"; if you don't plan ahead for the content you're going to include it will penetrate your article text like you had never thought. We should advise caution. --Robert W King 18:44, 17 December 2007 (CST)

Thanks. :-) Yep, the big picture of content needs to be well thought out. I do think this is also going to be a very cool tool for organizing all sorts of content. See this Countries example. And its technically a cinch to use, to boot. Also, we can upload a whole host of cool icons and replace the default ones just by adding the image in the tree, see the Creative Commons licenses example above. Stephen Ewen 18:58, 17 December 2007 (CST)

Well that "sort of" fixes it, but how do you change it so it has "two states" (one when expanded, one when closed) ? --Robert W King 20:10, 17 December 2007 (CST)

Getting the sidebar to use it

Looks like we missed that there's one additional step to get the sidebar to use it, see here. I'm right now looking carefully to see if we need to customize the text for the inclusion, first. Stephen Ewen 15:01, 17 December 2007 (CST)

Yep, needs customization. This is going to be fun!
Robert, Larry, what I am thinking is two main trees, "for readers" and "for contributors". Any drafts with this or another scheme? Stephen Ewen 15:34, 17 December 2007 (CST)
Just do something like, if loggedin then this tree, elseif this other tree. I think you might enlist Chris if he's not too busy. --Robert W King 16:37, 17 December 2007 (CST)
I can't tell whether it will be useful until I see what will go in the two categories. There might be significant overlap, and contributors will need a lot more info than readers in any case. I'd like to see a draft of the scheme that I described in e-mail (the CZ:Home hierarchy anyway). --Larry Sanger 11:43, 18 December 2007 (CST)
E-mail? Scheme? Draft? --Robert W King 11:53, 18 December 2007 (CST)
I'll leave it to Steve to follow up...if he wants... --Larry Sanger 15:37, 18 December 2007 (CST)
I'd like to let it be wide open and see what folks come up with on their own. So let's redisign the sidebar, folks! Ideas? Drafts? Go for it! Stephen Ewen 17:14, 18 December 2007 (CST)

Robust

Seems pretty robust! Limited on template usage within the template though, looks like you can only use text-based templates. I tried to use the subpages template on the last one, so I'm not sure what's up with that. --Robert W King 15:21, 17 December 2007 (CST)

http://semeb.com/dpldemo/index.php?title=Treeview_extension Stephen Ewen 15:29, 17 December 2007 (CST)

Does this solve the Biology Workgroup's problem?

I'd like them to key in here.. --Robert W King 16:44, 17 December 2007 (CST)

An ‘expand all’ command is needed (that is a command which expand the current category and any subcategory in the substructure). --Patrice Gross 06:35, 18 December 2007 (CST)
What is the problem? I'm assuming you're thinking about the presentation of phylogenetic trees? it will be useful for family and genus articles. Is there any way to change the graphics? Those folders look a bit old fashioned. Chris Day (talk) 11:24, 18 December 2007 (CST)
There is a way, but I'm not sure of it yet. I would prefer triangles that rotated. --Robert W King 11:31, 18 December 2007 (CST)
There is a way, the graphics have to be added to the MediaWiki install. Please, please, do feel free to redesign the graphics! We'll install them to the software once we have something we like. Stephen Ewen 15:14, 18 December 2007 (CST)
What size should they be? Dimensions? Image type? --Robert W King 16:14, 18 December 2007 (CST)
See http://semeb.com/dpldemo/index.php?title=Treeview_extension for how one wiki replaced the images. I'd say just follow the format and size there. But I think gif will do for all. Stephen Ewen 17:06, 18 December 2007 (CST)
Open.gif <- Open Closed.gif <- Closed Item.gif <- Item --Robert W King 17:57, 18 December 2007 (CST)
I already prefer this direction. Nice! Stephen Ewen 18:04, 18 December 2007 (CST)
Basically, just replace the folder icons with the arrows, and the document with the item icon. --Robert W King 18:07, 18 December 2007 (CST)
I don't think the proposal above (equilateral triangles and circle) would be an improvement. In my opinion, it's handy to differentiate between categories and items with colors. I don't like these drawings neither, because the orientation of the triangle is hard to discern, and the circle is not adapted when the text of the item has several lines (see examples above). --Patrice Gross 08:04, 19 December 2007 (CST)
The problem isn't with the circle, it's how you set up the template. You put too many items off of one branch. You need to put a * after every single entry object. I'll modify your example so you can see the difference. Check "Northern Constellations" for the difference.--Robert W King 09:01, 19 December 2007 (CST)
I didn't use the ‘*’ deliberately. I prefer to have less lines when I expand the category. --Patrice Gross 09:22, 19 December 2007 (CST)
I can understand preferences, but that's not the way the extension works =[. Try subdividing your categories further into sub-categories. --Robert W King 09:24, 19 December 2007 (CST)
Try this:
  • Winter
    • North
    • South
    • East
    • West
  • Summer
    • North
    • South
    • East
    • West
  • Spring
    • North
    • South
    • East
    • West
  • Fall
    • North
    • South
    • East
    • West
This extension works in different ways. Too much subdivisions would make the constellations tedious to find. In the first example, several items are also displayed in more than a line: the only problem is the position of the item icon, which is vertically centered, while it would be on the first line. Then, I don't understand the principle of your classification in your proposal above. --Patrice Gross 10:42, 19 December 2007 (CST)
In order to use the template effectively you have to better organize your data. You simply can't just lump everything into one section. For one, it looks messy and unorganized. Two, it's simply not how the template works. It operates in a very specific way and does not allow for much operational flexibility outside of data subdivision. --Robert W King 10:47, 19 December 2007 (CST)
We have different opinions about this design, so comments from other users would be welcomed. --Patrice Gross 11:50, 19 December 2007 (CST)
I think you are both right because whether to bullet each item or aggregate them is an issue of personal preference. I'd say don't sweat it, either way, and let some variation of usages be. We got bigger fish to fry...like redesigning that sidebar! Stephen Ewen 12:06, 19 December 2007 (CST)
And forms.. *cough*. --Robert W King 12:08, 19 December 2007 (CST)