Difference between revisions of "Talk:Test calendar"

From FollowTheScore
Jump to: navigation, search
m
(Customization questions: nb i removed my question now dealt with in the main page about Template:!)
Line 1: Line 1:
 
==Customization questions==
 
==Customization questions==
Five questions (--[[User:Eiland|Eiland]] 15:44, 13 April 2007 (CEST)):  
+
Some questions (--[[User:Eiland|Eiland]] 15:44, 13 April 2007 (CEST)):  
  
 
# I want the date syntax to be [[2007-04-05 whatever event]], so ''dashes'' instead of ''slashes''; where do I modify this template?
 
# I want the date syntax to be [[2007-04-05 whatever event]], so ''dashes'' instead of ''slashes''; where do I modify this template?
 
#* In [[Current events April 2007]] replace the / by - in ''default=2007-04-05 my event name'' and ''titlematch=2007-04%''
 
#* In [[Current events April 2007]] replace the / by - in ''default=2007-04-05 my event name'' and ''titlematch=2007-04%''
 
#* In [[Template:Calendar link]] ''|titlematch={{{year}}}/{{{month}}}/{{{day}}}%'' into ''|titlematch={{{year}}}-{{{month}}}-{{{day}}}% ''
 
#* In [[Template:Calendar link]] ''|titlematch={{{year}}}/{{{month}}}/{{{day}}}%'' into ''|titlematch={{{year}}}-{{{month}}}-{{{day}}}% ''
# And in my multilingual wiki the page "Calendar travnja 2007" was created, which looks like
 
#:: Predložak:!30Predložak:!Predložak:!Predložak:!Predložak:! Predložak:!Predložak:! Predložak:!Predložak:! Predložak:!Predložak:! Predložak:!Predložak:! Predložak:!colspan="7"Predložak:!2007
 
#: Where Predložak means template. What is that? The source of the page just says what it should say under [[Test_calendar#Create_a_page_for_each_month]]
 
#*my guess is that your website does not have this template: [[Template:!]]. Please add it and let me know if it works. --[[User:Ycombarnous|Ycombarnous]] 15:26, 16 April 2007 (CEST)
 
#:: Yep that's it! --[[User:Eiland|Eiland]] 17:26, 16 April 2007 (CEST)
 
 
# Is it possible to make a template for upcoming events? So for example the 10 next upcoming events? Or the ten next days?
 
# Is it possible to make a template for upcoming events? So for example the 10 next upcoming events? Or the ten next days?
 
#* Next ten days should be easy, as dpl can take several arguments for "titlematch". Create a template with the following code, and insert it in a page (you may change the "order" method at the last line, depending on how you want to see things):
 
#* Next ten days should be easy, as dpl can take several arguments for "titlematch". Create a template with the following code, and insert it in a page (you may change the "order" method at the last line, depending on how you want to see things):
Line 27: Line 22:
 
</nowiki></pre>--[[User:Ycombarnous|Ycombarnous]] 19:38, 16 April 2007 (CEST)
 
</nowiki></pre>--[[User:Ycombarnous|Ycombarnous]] 19:38, 16 April 2007 (CEST)
 
::* Yep, thats it. Had some difficulty, before I remembered to replace the Y/m/d by Y-m-d's --[[User:Eiland|Eiland]] 12:33, 17 April 2007 (CEST)
 
::* Yep, thats it. Had some difficulty, before I remembered to replace the Y/m/d by Y-m-d's --[[User:Eiland|Eiland]] 12:33, 17 April 2007 (CEST)
<ol start="4"><li>Can these events be imported/RSSFeed' anywhere (maybe this is a DPL function?)</li>
+
<ol start="3"><li>Can these events be imported/RSSFeed' anywhere (maybe this is a DPL function?)</li>
 
<li>On the monthly calendar layout, the date of the month could have  __<<__ april __>>__-links for moving to the previous/next month.</li></ol>
 
<li>On the monthly calendar layout, the date of the month could have  __<<__ april __>>__-links for moving to the previous/next month.</li></ol>
 
::*Not sure what you mean here, there is already a a link on both sides of the month name to go to the previous/next one? --[[User:Ycombarnous|Ycombarnous]] 19:38, 16 April 2007 (CEST)
 
::*Not sure what you mean here, there is already a a link on both sides of the month name to go to the previous/next one? --[[User:Ycombarnous|Ycombarnous]] 19:38, 16 April 2007 (CEST)
 
:::* Ah, interesting, you're right. I don't have that. Is it another template? or is it the #ifexist phrase in [[Template:CalendarSingle]]? --12:33, 17 April 2007 (CEST)
 
:::* Ah, interesting, you're right. I don't have that. Is it another template? or is it the #ifexist phrase in [[Template:CalendarSingle]]? --12:33, 17 April 2007 (CEST)
 
:::*When you call the "CalendarSingle" template, you have to specify the "basepage" name. Below is the code it will use to find if there is a previous month page existing (basically, if current calendar month is May, it will look for "Basepage April 2007" article, and add a "previous" link if it exists):  
 
:::*When you call the "CalendarSingle" template, you have to specify the "basepage" name. Below is the code it will use to find if there is a previous month page existing (basically, if current calendar month is May, it will look for "Basepage April 2007" article, and add a "previous" link if it exists):  
<pre>{{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|<<]]|}}  
+
::::<pre>{{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|<<]]|}}  
</pre>--[[User:Ycombarnous|Ycombarnous]] 12:43, 17 April 2007 (CEST)
+
</pre>
 +
:::: --[[User:Ycombarnous|Ycombarnous]] 12:43, 17 April 2007 (CEST)
 +
:::::* Is it possible that, when it not exist, it creates a new age, just like the new-event-form, according to a [[Template:Month]]? That would save me from copying-in all the months myself --[[User:Eiland|Eiland]] 18:57, 17 April 2007 (CEST)
 +
 
 
== backlink ==
 
== backlink ==
  

Revision as of 18:57, 17 April 2007

Customization questions

Some questions (--Eiland 15:44, 13 April 2007 (CEST)):

  1. I want the date syntax to be 2007-04-05 whatever event, so dashes instead of slashes; where do I modify this template?
  2. Is it possible to make a template for upcoming events? So for example the 10 next upcoming events? Or the ten next days?
    • Next ten days should be easy, as dpl can take several arguments for "titlematch". Create a template with the following code, and insert it in a page (you may change the "order" method at the last line, depending on how you want to see things):
{{#dpl:category=Events
  |titlematch={{#time:Y/m/d | +1 days}}%¦{{#time:Y/m/d | +2 days}}%
  |include=#Summary,#Participants
  |mode=userformat
  |resultsheader=There are %PAGES% events planned in the next 2 days.
  |noresultsheader=No events planned so far for the next 2 days.
  |listseparators=¶{¦ class="wikitable" ¶!Date / Event name ¶!Categories ¶!Event summary ¶!Participants,¶¦-¶¦<h5>[[%PAGE%]]</h5>¶¦ %CATLIST%,,¶¦}
  |secseparators=¶¦
  |ordermethod=title
  |addcategories=true
  |order=descending
}}
--Ycombarnous 19:38, 16 April 2007 (CEST)
  • Yep, thats it. Had some difficulty, before I remembered to replace the Y/m/d by Y-m-d's --Eiland 12:33, 17 April 2007 (CEST)
  1. Can these events be imported/RSSFeed' anywhere (maybe this is a DPL function?)
  2. On the monthly calendar layout, the date of the month could have __<<__ april __>>__-links for moving to the previous/next month.
  • Not sure what you mean here, there is already a a link on both sides of the month name to go to the previous/next one? --Ycombarnous 19:38, 16 April 2007 (CEST)
  • Ah, interesting, you're right. I don't have that. Is it another template? or is it the #ifexist phrase in Template:CalendarSingle? --12:33, 17 April 2007 (CEST)
  • When you call the "CalendarSingle" template, you have to specify the "basepage" name. Below is the code it will use to find if there is a previous month page existing (basically, if current calendar month is May, it will look for "Basepage April 2007" article, and add a "previous" link if it exists):
{{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|<<]]|}} 
--Ycombarnous 12:43, 17 April 2007 (CEST)
  • Is it possible that, when it not exist, it creates a new age, just like the new-event-form, according to a Template:Month? That would save me from copying-in all the months myself --Eiland 18:57, 17 April 2007 (CEST)

backlink

Maybe the individual event pages should contain a back-link to the calendar page? --Gero 07:01, 16 April 2007 (CEST)

publishing the calendar templates

  • Did you ever think of publishing these templates under wiki extensions "calendar" ?

--Gero 17:37, 16 April 2007 (CEST)

  • Yes, I thought of that place. Your calender solution competes very well with the other extensions around, I think. -- 84.58.213.243 20:50, 16 April 2007 (CEST)