Talk:Main Page

From WikiCU
Revision as of 18:29, 23 March 2007 by Admin (talk | contribs) (Option 2: category cloud for all categories with more than "min_count" articles)
Jump to: navigation, search

Tag cloud

  • So I was thinking, how do you guys feel about having the categories on the front page, using a cloud format, aka, more frequency/more articles bigger font? wang 20:46, 19 March 2007 (EDT)
  • I'm trying to figure out how to get a weighted list like on Flickr or last.fm . It could go by number of number of page views, or number of pages under a category, etc. I don't know if we could include a tag cloud with the wikisoftware... hmmm wang 23:28, 21 March 2007 (EDT)
  • Looking into it right now. I think it should be possible. Admin 18:15, 23 March 2007 (EDT)
  • Done! I've found two options. Which is better? I prefer the second one because I don't like the idea of having to categorize stuff into a weird category called CategoryOfTopics. Admin 18:40, 23 March 2007 (EDT)

Option 1: category cloud for all categories in Category:CategoryOfTopics

<category-cloud category="CategoryOfTopics" minsize="80" maxsize="150"></category-cloud> More parameters:

  • minsize... The font size, in percentage, that the small category will have. Defaults to 80.
  • maxsize... The font size, also as a percentage, that the largest category will have. Defaults to 125.
  • order... The order of the categories. Defaults to "name" but may also be "count".
  • class... A CSS class to put into the outer div generated.
  • style... The contents of this optional attribute will be placed in a style attribute of the outermost div tag.

Option 2: category cloud for all categories with more than "min_count" articles

<tagcloud> min_count=15 min_size=70 increase_factor=80 border_color=#808080 background_color=#f1f5fc color=#7b88a3 exclude=disambiguation </tagcloud> More parameters:

  • min_count... Only display a tag for the category that contain at least min_count articles. Default value: 0.
  • min_size... Defines the minimum text size. Default value: 77.
  • increase_factor... Defines the factor to increase the text size by the number of articles. Default value: 100.
  • border_color... Defines the border color. Default value: #eeeeee.
  • color... Defines the tag text color. Default value: #0052cb.
  • background_color... Defines the cloud background color. Default value: #fdfdfd.
  • exclude... Defined the categories you do not want to be displayed. Use comma to separate the categories, as follows: exclude=television,celebrities,food,yoga

Votes/comments

  • Option 2. Admin 18:40, 23 March 2007 (EDT)

Now with transclusion!

  • In anticipation of an influx of users, I'm going to increase the protection on the main page so that only admins can edit the layout. The content comes from Intro, Links, and the relevant Calendar page. For the time being, I'll leave those editable by anyone. Admin 18:15, 23 March 2007 (EDT)
  • You may also have noticed than only registered users can now edit the wiki. This is for two reasons. First, we were getting some spam. Second, I want to encourage people to register. I don't anticipate making it any more stringent than that. I think it would be a great shame and even downright harmful to require columbia.edu email addresses or prevent off-campus people from contributing. I'd welcome any support or criticism on this issue. Admin 18:15, 23 March 2007 (EDT)