Editing MAG:Templates

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
[http://www.mediawiki.org/wiki/Help:Templates Templates] are an important part of any good wiki. They help tag, categorize, identify, stylize and format articles, and improve code readability and clarity, and generally make life easier for everybody.
+
[http://www.mediawiki.org/wiki/Help:Templates Templates] are an important part of any good mediawiki wiki. They help tag, categorize, identify, stylize and format articles, and improve code readability and clarity, and generally make life easier for everybody.
To that end, I'd like to focus efforts here on creating and maintaining a set of templates for maemowiki.
To that end, I'd like to focus efforts here on creating and maintaining a set of templates for maemowiki.
Line 10: Line 10:
* Create those templates.
* Create those templates.
-
=== Open/Closed table, justification, and petition templates ===
+
== Types of templates
-
We need to put together templates for the open/closed-source plan outlined in the [[Task:Mapping openness]] page.
+
There are effectively two types of templates that need to be created:
-
* We need templates for:
+
First, we have transcluded templates are those that help in navigation, organization, categorization, and tagging. Things like,
-
** Individual packages (or package sets, as, say, alarmd and alarmtool can probably both be filed under alarmd), their source-state and (if closed) justification for that state.
+
* [[Template:Main]]:
-
*** Should these templates be set up as "justification tables" to be inserted into larger articles or as individual articles?
+
{{main|Maemowiki Action Group}}
-
** Petition templates for requesting that a closed package be opened.
+
* [[Template:100Days agenda]]:
 +
{{100Days agenda}}
 +
* [[Template:Community]]:
 +
{{Community}}
 +
that are designed to maintain uniform looks and formats across the entire wiki. These will constitute the bulk of the work.
-
=== Standard Wikipedia template set ===
+
Second, we have substituted templates, which are those that provide skeletal frameworks for certain types of pages. These will include things like the Close-source justification page, and open-source petition page.
-
 
+
-
* Equivalent to "This article has poor language/grammar, please help fixing it."--[[User:qgil|qgil]] 07:53, 28 June 2008 (UTC)
+
-
 
+
-
== Template examples ==
+
-
 
+
-
=== ambox ===
+
-
 
+
-
Usage:
+
-
<pre>
+
-
{{ambox
+
-
|type=notice
+
-
|text='''Body text for the box.'''<br/>It is suggested to make the first line bold.
+
-
}}
+
-
</pre>
+
-
 
+
-
Use the [[Template:Ambox|ambox template]] to insert a box for a warning or notice. The "<code>type</code>" parameter can be omitted and defaults to "<code>notice</code>". There are several templates based on the ambox, such as [[Template:Delete]], [[Template:Out of date]] and [[Template:Expand]].
+
-
 
+
-
=== clear ===
+
-
 
+
-
Usage:
+
-
<pre>{{clear}}</pre>
+
-
 
+
-
Use the [[Template:Clear|clear template]] to insert HTML that clears any floats. This is used at the end of a section with floating divs, such as image thumbnails, to make sure that they do not overflow onto the next section. See the [[Orrery]] article for example usage.
+
-
 
+
-
=== main ===
+
-
 
+
-
Usage:
+
-
<pre>{{main|Wikilink to main article}}</pre>
+
-
 
+
-
Use the [[Template:Main|main template]] to insert a wikilink to another article, which appears indented and preceded by "''Main article:''".
+
-
 
+
-
[[Category:Community]]
+
-
[[Category:Wiki]]
+

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)