Difference between revisions of "25 April 2007"

From Organic Design wiki
(News: OD2: Beginning New Organic Design Structure)
 
(News: Extension:When)
 
Line 1: Line 1:
 +
{{news|img=|title=Extension:When|msg=
 +
The ''#when'' parser-function is used to add time information to articles. Just add a single parameter which can be arbitrarily formatted time information, for example:
 +
:<tt><nowiki>{{#when:2009/4/24}}</nowiki></tt> ''- best to do dates backwards like this otherwise it tries to use some weird American format''
 +
:<tt><nowiki>{{#when:24 apr 2009}}</nowiki></tt>
 +
:<tt><nowiki>{{#when:24 apr, 4:30pm}}</nowiki></tt> ''- current year is used here since not specified''
 +
The function expands to a set of category links to categorise the article into year, month, day-of-month, full-weekday-name and time (24 hour HH:MM:SS format). Articles exhibiting time can then be matched with a DPL query, for example:
 +
:<tt><nowiki>{{#dpl:category=2006|category=April}}</nowiki></tt>
 +
The parser function which adds this is very simple consisting of the following code in the ''LocalSettings.php'' file.
 +
*The local article about #when is [[Template:When]]
 +
*The MediaWiki article is [[MW:Extension:When]]
 +
}}
 +
 
{{news|img=|title=OD2&#58; Beginning New Organic Design Structure|msg=
 
{{news|img=|title=OD2&#58; Beginning New Organic Design Structure|msg=
 
We've never been able to get the Organic Design wiki into an organised state, but I think the DPL extension can be the solution to this. We now have enough tools within the wiki environment to manage and organise all aspects of a simple organisation including accounts and scheduling - they just need to be glued together into a unified functional system.
 
We've never been able to get the Organic Design wiki into an organised state, but I think the DPL extension can be the solution to this. We now have enough tools within the wiki environment to manage and organise all aspects of a simple organisation including accounts and scheduling - they just need to be glued together into a unified functional system.

Latest revision as of 12:00, 25 April 2007

Warning.svg This is a blog item that needs to be converted to the new Bliki format


Extension:When

The #when parser-function is used to add time information to articles. Just add a single parameter which can be arbitrarily formatted time information, for example:

{{#when:2009/4/24}} - best to do dates backwards like this otherwise it tries to use some weird American format
{{#when:24 apr 2009}}
{{#when:24 apr, 4:30pm}} - current year is used here since not specified

The function expands to a set of category links to categorise the article into year, month, day-of-month, full-weekday-name and time (24 hour HH:MM:SS format). Articles exhibiting time can then be matched with a DPL query, for example:

{{#dpl:category=2006|category=April}}

The parser function which adds this is very simple consisting of the following code in the LocalSettings.php file.

Warning.svg This is a blog item that needs to be converted to the new Bliki format


OD2: Beginning New Organic Design Structure

We've never been able to get the Organic Design wiki into an organised state, but I think the DPL extension can be the solution to this. We now have enough tools within the wiki environment to manage and organise all aspects of a simple organisation including accounts and scheduling - they just need to be glued together into a unified functional system.

Organic Design 2 is about creating a new structure from the ground up which encompasses all the organisational aspects we need, and does so in a re-usable way by creating it as a template-wiki. This article describes the proposed components of this template-wiki and their use, meaning and structure.