Difference between revisions of "Portal:Knowledge"

From Organic Design wiki
m ({{time}})
(Change embeds to transcludes since no properties required)
Line 1: Line 1:
 
{{time}}
 
{{time}}
 
<table class=expandable title="The Project" id="open"><tr><td>
 
<table class=expandable title="The Project" id="open"><tr><td>
[[+Project Summary|]]
+
{{:Project Summary}}
 
<td>
 
<td>
[[+Project links|]]
+
{{:Project links}}
 
</table>
 
</table>
  
 
<table class=expandable title="Organic Design"><tr><td>
 
<table class=expandable title="Organic Design"><tr><td>
 
*''This content still needs to be done...''
 
*''This content still needs to be done...''
[[+Organic Design Summary|]]
+
{{:Organic Design Summary}}
 
<td>
 
<td>
[[+Organic Design Links|]]
+
{{:Organic Design Links}}
 
</table>
 
</table>
  
 
<table class=expandable title="Platforms & Sanctuaries"><tr><td>
 
<table class=expandable title="Platforms & Sanctuaries"><tr><td>
 
*''This content still needs to be done...''
 
*''This content still needs to be done...''
[[+Platform/Summary|]]
+
{{:Platform/Summary}}
[[+Sanctuary/Summary|]]
+
{{:Sanctuary/Summary}}
 
<td>
 
<td>
[[+Platform links|]]
+
{{:Platform links}}
 
</table>
 
</table>
  
 
<table class=expandable title="The Nodal Model"><tr><td>
 
<table class=expandable title="The Nodal Model"><tr><td>
*''This content still needs to be done...''
+
{{:Nodal Model Summary}}
[[+Nodal Model Summary|]]
 
 
<td>
 
<td>
[[+Nodal Model Links|]]
+
{{:Nodal Model Links}}
 
</table>
 
</table>
  
Line 84: Line 83:
 
<table class=expandable title="Independence"><tr><td>
 
<table class=expandable title="Independence"><tr><td>
 
*''This content still needs to be done...''
 
*''This content still needs to be done...''
[[+Self Containment/Summary|]]
+
{{:Self Containment/Summary}}
 
<td>
 
<td>
[[+Self Containment links|]]
+
{{:Self Containment links}}
 
</table>
 
</table>
  

Revision as of 01:04, 17 January 2007

This template is not actually used, 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 when.php code in the LocalSettings.php file.