Difference between revisions of "Template:Parser hook"

From Mapping on MediaWiki
Jump to: navigation, search
m
m
Line 31: Line 31:
 
! style="padding: 0px; background: #{{BGColor01}}"  | Max version:
 
! style="padding: 0px; background: #{{BGColor01}}"  | Max version:
 
|-
 
|-
| align="center" | {{#if:{{{maximum version|}}}|<span style="color:darkred">}} [[Has maximum version::{{{maximum version|still supported}}}]] {{#if:{{{maximum version|}}}|</span>}}
+
| align="center" {{#if:{{{maximum version|}}}|style="background:lightred"}} | {{#if:{{{maximum version|}}}|<b><span style="color:darkred">}} [[Has maximum version::{{{maximum version|still supported}}}]] {{#if:{{{maximum version|}}}|</span></b>}}
 
|-
 
|-
 
! style="padding: 0px; background: #{{BGColor01}}"  | Function implementation:
 
! style="padding: 0px; background: #{{BGColor01}}"  | Function implementation:

Revision as of 16:55, June 29, 2012

This is the 'Parser hook' template, used on Parser hook documentation pages. The template takes the following parameters:

  • minimum version: The minimum version of Maps or Semantic Maps you need for this parser hook to work. Aka when it was added.
  • maximum version: The maximum version of Maps or Semantic Maps you need for this parser hook to work. Aka when it was removed. Blank when still in use.
  • parser function: If the parser hook has a parser function implementation or not. The only values that the template accepts are: Yes,yes,y,No,no,n. An empty or unrecognized value results in the value "not specified".
  • tag extension: If the parser hook has a tag extension implementation or not. The only values that the template accepts are: Yes,yes,y,No,no,n. An empty or unrecognized value results in the value "not specified".
  • description: a short text describing the function of the parser hook

It is used like this:

{{Parser hook
| minimum version=0.6
| maximum version=0.8
| parser function=Yes
| tag extension=No
| description=Formats coordinates
}}