Difference between revisions of "Template:Extensions"

From Organic Design wiki
(New dump)
 
Line 5: Line 5:
  
 
<pre>{{Extension
 
<pre>{{Extension
|ExtensionName=Extension:[Name]
+
|Name=Extension:[Name]
|ExtensionAuthor=
+
|Author=
|ExtensionDescription=
+
|Description=
|ExtensionVersion=
+
|Version=
|ExtensionLatestRevision=
+
|LatestRevision=
|ExtensionLink=
+
|Link=
 +
|Status=
 
}}</pre>
 
}}</pre>
 
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page.
 
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page.
[[Category:Examples/Semantic_MediaWiki]]
 
 
</noinclude>
 
</noinclude>
 
+
{| class="ext-infobox ext-status-{{#switch:  {{{Status|Recommended}}}|Possible|Recommended|Installed={{{Status}}}|Obsolete}}" style="float: right; background-color: white; min-width:20%;"
<includeonly>
+
|- class="ext-header"
{| border=1
+
! colspan="2"  | [[Image:{{#ifeq: {{{Status|}}}|Obsolete|Crystal Clear app error.png|Crystal Clear action run.png}}|left|40px]] <span style="font-size: 130%;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</span>
 
|-
 
|-
| colspan="2" |[[ Extension name::{{{ExtensionName|{{PAGENAME}} }}} ]]
+
| Author(s) || [[Author::{{{Author|}}}]]
 
|-
 
|-
| Author: || [[Extension author::{{{ExtensionAuthor|}}}]]
+
| Description || [[Extension description::{{{Description|}}}]]
 
|-
 
|-
| Description: || [[Extension description::{{{ExtensionDescription|}}}]]
+
| Version || [[Extension version::{{{Version|}}}]]
 
|-
 
|-
| Currently installed version: || [[Extension version::{{{ExtensionVersion|}}}]]
+
{{#ifeq:{{{LatestRevision|}}}|||{{Tablerow|Label=Latest release|Value=[[Extension latest revision::{{{LatestRevision}}}]]}}}}
 
|-
 
|-
| Latest available revision: || [[Extension latest revision::{{{ExtensionLatestRevision|}}}]]
+
| URL: || [[Extension URL::{{{Link|}}}]]
|-
 
| External link: || [[external link::{{{ExtensionLink|}}}]]
 
 
|}
 
|}
  
 +
<!--
 +
This property allows the forms to pick up the semantic Property: and Type: for the drop down menu
 +
[[Extension status::{{{Status}}}|]]
 +
-->
 +
 +
<includeonly>
  
[[Category:Test]]
+
[[Category:Extensions]] [[Category: {{{Status}}} extensions]] 
 
</includeonly>
 
</includeonly>

Latest revision as of 03:33, 14 February 2008

This template simplifies the creation of articles about Extensions. When inserted in a extension page, it creates a decorative table with much helpful information. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles. Do not try to read this page's source code for learning table syntax – there are far easier ways of creating tables in MediaWiki.

This Template is used by Form:Extension

{{Extension
|Name=Extension:[Name]
|Author=
|Description=
|Version=
|LatestRevision=
|Link=
|Status=
}}

The order of the fields is not relevant. The template should be given as the first thing on a page.

Extensions
Author(s)
Description
Version
URL: