Difference between revisions of "02 May 2007"
(News: Calendar updated) |
m (Reverted edits by Robin Patterson (talk) to last revision by Nad) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{news|title=Calendar updated|img=|msg= | {{news|title=Calendar updated|img=|msg= | ||
The [[MW:Extension:Simple Calendar|Simple Calendar extension]] has been updated due to a good idea from a user at [[MW:|mediawiki.org]]. Firstly it's changed to use ''named parameters'' instead of an ordered list as there's a few different parameters available for calendars now. The new functionality added is a parameter called ''query'' which allows extra query-string information to be appended to the links for days which don't exist. The main use for this would be to allow some preloaded content in the newly created calendar articles. For example, | The [[MW:Extension:Simple Calendar|Simple Calendar extension]] has been updated due to a good idea from a user at [[MW:|mediawiki.org]]. Firstly it's changed to use ''named parameters'' instead of an ordered list as there's a few different parameters available for calendars now. The new functionality added is a parameter called ''query'' which allows extra query-string information to be appended to the links for days which don't exist. The main use for this would be to allow some preloaded content in the newly created calendar articles. For example, | ||
− | |||
:<tt><nowiki>{{#calendar: query=preload=Template:NewDay }}</nowiki></tt> | :<tt><nowiki>{{#calendar: query=preload=Template:NewDay }}</nowiki></tt> | ||
Line 7: | Line 6: | ||
This example uses the new query parameter to pre-load the ''NewDay'' template article into newly created dates. It looks a little confusing, but what it's saying is: add "preload=template" to the links. | This example uses the new query parameter to pre-load the ''NewDay'' template article into newly created dates. It looks a little confusing, but what it's saying is: add "preload=template" to the links. | ||
+ | Also, a ''format'' parameter is now allowed to specify the format used for the title of the date articles, see the [http://nz2.php.net/strftime strftime] entry in the PHP manual for details on how to specify date formats. | ||
The [[Main Page|Organic Design news]] has been adjusted so that the [[Template:Create news|Create news template]] is preloaded into newly created dates to save on typing or remembering the [[Template:News|news template]] syntax. | The [[Main Page|Organic Design news]] has been adjusted so that the [[Template:Create news|Create news template]] is preloaded into newly created dates to save on typing or remembering the [[Template:News|news template]] syntax. | ||
*See [[MW:Extension:Simple Calendar]] for more details | *See [[MW:Extension:Simple Calendar]] for more details | ||
}} | }} |
Latest revision as of 22:15, 3 September 2011
Calendar updated
The Simple Calendar extension has been updated due to a good idea from a user at mediawiki.org. Firstly it's changed to use named parameters instead of an ordered list as there's a few different parameters available for calendars now. The new functionality added is a parameter called query which allows extra query-string information to be appended to the links for days which don't exist. The main use for this would be to allow some preloaded content in the newly created calendar articles. For example,
- {{#calendar: query=preload=Template:NewDay }}
This example uses the new query parameter to pre-load the NewDay template article into newly created dates. It looks a little confusing, but what it's saying is: add "preload=template" to the links.
Also, a format parameter is now allowed to specify the format used for the title of the date articles, see the strftime entry in the PHP manual for details on how to specify date formats.
The Organic Design news has been adjusted so that the Create news template is preloaded into newly created dates to save on typing or remembering the news template syntax.
- See MW:Extension:Simple Calendar for more details