Difference between revisions of "Issue:Asking a calendar kit"

From FollowTheScore
Jump to: navigation, search
(Reply 2)
(Update and thank you)
 
(9 intermediate revisions by 2 users not shown)
Line 47: Line 47:
 
<pre>{{:Current events|namespace=Test|purpose=Michael's events |purpose= dpl group's event|wiki user's event}}</pre>
 
<pre>{{:Current events|namespace=Test|purpose=Michael's events |purpose= dpl group's event|wiki user's event}}</pre>
 
::Could thay be possible to be changed. Thanks for your great work.--[[User:Roc michael|Roc michael]] 15:21, 6 December 2007 (CET)
 
::Could thay be possible to be changed. Thanks for your great work.--[[User:Roc michael|Roc michael]] 15:21, 6 December 2007 (CET)
 +
 +
=== Reply 3 ===
 +
* The namespace problem should be solved now. Try with the calendar on your user page.
 +
* If you want more than one purpose you must use ¦ as a separator:
 +
<pre>{{:Current events|namespace=Test|purpose=Michael's events¦dpl group's event¦wiki user's event}}</pre>
 +
* I added more flexibility: Now you can decide if you want to show a chapter within the day field; and you can also revert to the old format where the day acted as a link to the event list.
 +
 +
:[[User:Gero|Gero]] 22:44, 6 December 2007 (CET)
 +
 +
::Gero. Thank you. Could you help me again. Please see the picture followed:
 +
[[Image:Asking a calendar kit_1.png|650px|center]]
 +
 +
 +
 +
[[Image:Asking a calendar kit_2.png|650px|center]]
 +
:::--[[User:Roc michael|Roc michael]] 16:22, 7 December 2007 (CET)
 +
 +
==Published on Mediawiki.org==
 +
*Thank you Gero for your hard work on this kit. I've published the kit using your name "Gero" on Mediawiki.org to introduce this powerful kit to people. Please see [http://www.mediawiki.org/wiki/Extension:DPL_Calendar here] and [http://www.mediawiki.org/wiki/User_talk:Simsong/Calendar#Now_people_have_more_another_choosing here]. I think this is the thing that all I can do for you. Thank you again. --[[User:Roc michael|Roc michael]] 13:14, 9 December 2007 (CET)
 +
 +
=== Update and thank you ===
 +
I finally found out how one can generate multiple links from an OR-expression (containing more than one 'purpose'). This is very tricky to do. Have a look at the code of [[Template:CalendarSingle]] near the table head where purpose in analysed. Good Luck!
 +
:[[User:Gero|Gero]] 13:56, 9 December 2007 (CET)
 +
 +
==Arranging the [[Test_calendar]] page properly==
 +
*I am too surprised that you've got it! It's really nice.
 +
*Since this great calendar have published as [http://www.mediawiki.org/wiki/Extension:DPL_Calendar a extension on Mediawiki.org], you might rearrange the [[Test_calendar]] page Properly (at least, a formal title for the page). Just for reference. :-) --[[User:Roc michael|Roc michael]] 16:28, 9 December 2007 (CET)

Latest revision as of 16:28, 9 December 2007

Description: Could you give me a more useful calendar with using DPL like the description.
Extension / Version: DPL   /   ?
Type / Status: Change Request   /   answered

Problem

Could you give me a more useful calendar with using DPL like the description. The date format of the extension is not good for DPL now. We can use it with Preloader Extension if it can create new pages with a specific namespace.--Roc michael 16:55, 1 December 2007 (CET)



Reply

I understand that

  • you want to have a date syntax like YYYY/MM/DD
  • you want to save pages automatically to a (configurable) namespace liek "Calendar:".

Both is very easy to do. Just replace the "-" in the date patterns by a "/" (e.g. in Template:Calendar month) and add "titleprefix=Calendar:" in the creation dialogue (you must use the version of inputbox which comes together with DPL).

o.k.? Gero 22:28, 1 December 2007 (CET)

Hi Gero. I know you are very busy. Thanks for your answer.
First, I think people would more like a easier (or GUI) way to use a calendar then the current way you mentioned. That's the reason why you make the page Template:Catlist for most people. Isn't it?
Becouse you have enhanced some extensions to fit DPL using and I think a good calendar kit is very important(or useful) for most people, I just guess that you may interest in enhancing the Calendar and some DPL users would be very happy to get the benefit.
Then, I would like the GUI calendar having a namespace specified by the argument any users want not the calendar namespace and it would be a parser function extension.
Finally, I don't care of the calendar either use "yyyy-mm-dd" or "yyyy/mm/dd/" format, but if it's switchable by a argument, it would be more better. Right? --Roc michael 03:03, 2 December 2007 (CET)

Reply 2

  • I changed the calendar so that it now shows the title of each event directly at the day. The first part of the title (containing the date) is suppressed. The title acts as a link to the definition of the event.
  • The width of the calendar can be controlled. Of course one could introduce a style sheet (using mediawiki:Common.css)
  • The event list is now optional.
  • There is an additional "purpose" field which acts as a filter. So you can have multiple calendars in parallel.
  • There is link to create a new event at every day. This can be deactivated by a 'noadd' parameter.
  • The namespace in which the event descriptions live can be configured.

You see, I took some ideas from the extension you mentioned. I feel that the DPL calendar compares quite well with that solution - but DPL offers additional possibilities like several chapters in the event definition ...

Adding a little code one could show a picture for each day like an 'Adventskalender' in Germany (where you open a paper window which displays a new picture every day during the last 4 weeks before christmas), see http://images.google.de/images?hl=de&rlz=1T4SUNA_deDE242DE243&resnum=0&q=adventskalender&oe=UTF-8&um=1&ie=UTF-8&sa=N&tab=wi

If you think so too, you could leave a reference to DPL on the mediawiki.org page which describes the "Simsong" calendar...

Gero 20:18, 5 December 2007 (CET)
Gero. wow... It's amazing. I like it but there are two problems I hope you can give me a hand.
  1. When I use the calendar in my page to create some articles, the articles title in the inputbox fields don't have the specific namespace assigned in the argument of calendar.
  2. It seems to like I can only specify a category for the argument "purpose" and the follow description cannot work.
{{:Current events|namespace=Test|purpose=Michael's events , dpl group's event, wiki user's event}}
{{:Current events|namespace=Test|purpose=Michael's events |purpose= dpl group's event|wiki user's event}}
Could thay be possible to be changed. Thanks for your great work.--Roc michael 15:21, 6 December 2007 (CET)

Reply 3

  • The namespace problem should be solved now. Try with the calendar on your user page.
  • If you want more than one purpose you must use ¦ as a separator:
{{:Current events|namespace=Test|purpose=Michael's events¦dpl group's event¦wiki user's event}}
  • I added more flexibility: Now you can decide if you want to show a chapter within the day field; and you can also revert to the old format where the day acted as a link to the event list.
Gero 22:44, 6 December 2007 (CET)
Gero. Thank you. Could you help me again. Please see the picture followed:
Asking a calendar kit 1.png


Asking a calendar kit 2.png
--Roc michael 16:22, 7 December 2007 (CET)

Published on Mediawiki.org

  • Thank you Gero for your hard work on this kit. I've published the kit using your name "Gero" on Mediawiki.org to introduce this powerful kit to people. Please see here and here. I think this is the thing that all I can do for you. Thank you again. --Roc michael 13:14, 9 December 2007 (CET)

Update and thank you

I finally found out how one can generate multiple links from an OR-expression (containing more than one 'purpose'). This is very tricky to do. Have a look at the code of Template:CalendarSingle near the table head where purpose in analysed. Good Luck!

Gero 13:56, 9 December 2007 (CET)

Arranging the Test_calendar page properly

  • I am too surprised that you've got it! It's really nice.
  • Since this great calendar have published as a extension on Mediawiki.org, you might rearrange the Test_calendar page Properly (at least, a formal title for the page). Just for reference. :-) --Roc michael 16:28, 9 December 2007 (CET)