Template:OBX mimetypes: Difference between revisions

From OLPC
Jump to navigation Jump to search
(separating with commas)
m (→‎Usage: fix deprecated Activity link)
 
Line 24: Line 24:
== Usage ==
== Usage ==


Used to declare the [[:Category:Mimetypes|mimetypes]] handled or compatible with a particular [[:Category:Activity|Activity]]. The arguments (up to 20 pairs) have the constraint of being defined in the following format:
Used to declare the [[:Category:Mimetypes|mimetypes]] handled or compatible with a particular [[:Category:Activities|Activity]]. The arguments (up to 20 pairs) have the constraint of being defined in the following format:
* <tt>Content-Type</tt> &mdash; one of the following:
* <tt>Content-Type</tt> &mdash; one of the following:
** [http://www.iana.org/assignments/media-types/application application]
** [http://www.iana.org/assignments/media-types/application application]

Latest revision as of 04:41, 1 July 2008

mime


Usage

Used to declare the mimetypes handled or compatible with a particular Activity. The arguments (up to 20 pairs) have the constraint of being defined in the following format:

{{OBX mimetypes |image|png }}

NOTE: that they should always be in pairs <type | subtype>.

Categories

  • Category:Mimetype
  • Depending on the type / subtype:
    something along the lines of [[Category:Mimetype type]] and [[Category:Mimetype subtype]] for each pair.

Sample

mime png, jpeg
{{OBX mimetypes |image|png|image|jpeg }}