https://bugzilla.wikimedia.org/show_bug.cgi?id=49743

Richard Morris <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |[email protected]
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1

--- Comment #3 from Richard Morris <[email protected]> ---
Here is an example I'm not sure about. For {{coord}}
http://en.wikipedia.org/wiki/Template:Coord/doc
the template can have two main forms

Hours Minute Seconds {{Coord|57|18|22|N|4|27|32|W|display=inline}}

Decimal Degrees {{coord|43.6500|-79.3800|display=inline}}

In the first the Longitude degrees is the 5th parameter, in the second its the
2nd parameter. I've tried some sample template data at
http://en.wikipedia.org/wiki/Template:Coord/doc#Template_Data
with documentation for Longitude degrees as the 5th parameter.

What I'm not sure about is how this will work with the second form. Will VE
create {{coord|1=43.6500|5=-79.3800|display=inline}} which will badly mess up
giving an "Coordinates: Unknown argument format" error. Or will it play nice
and produce {{coord|43.6500|-79.3800|display=inline}}?

Here I require the positional parameter to be silent, that is implicit, not
giving the number. 

There are cases where if the parameter value contains a = that you need to
explicitly state the position parameter. Compare the results of
{{math|foo=bar}}
with {{math|1=foo=bar}} (on en.wp). Here you need to explicitly give the
parameter.

<templatedata>{
"description": "Encodes the latitude and longitude coordinates of a location,
provides a link to map of the location.",
"params": {
  "1": {
    "label": "Latitude degrees",
    "description": "The degrees part of the latitude. This can either be a
whole number in which case minutes and seconds can also be provided in
subsequent parameters, or in decimal format, negative for south eg -79.38.",
    "type": "number",
    "required": true
  },
  "2": {
    "label": "Latitude minutes",
    "description": "The minutes part of the latitude. Do not be overly precise,
1' is approximately 1.5km, Not used if decimal degrees are specified.",
    "type": "number",
    "required": false
  },
  "3": {
    "label": "Latitude seconds",
    "description": "The minutes part of the latitude. Do not be overly precise,
 1\" is approximately 30m. Not used if decimal degrees are specified.",
    "type": "number",
    "required": false
  },
  "4": {
    "label": "Latitude direction",
    "description": "Direction part of latitude: N or S. Not used if decimal
degrees are specified.",
    "type": "string",  
    "required": false
  },
  "5": {
    "label": "Longitude degrees",
    "description": "The degrees part of the longitude. This can either be a
whole number in which case minutes and seconds can also be provided in
subsequent parameters, or in decimal format, negative for west eg -79.38.",
    "type": "number",
    "required": true
  },
  "6": {
    "label": "Longitude minutes",
    "description": "The minutes part of the longitude. Do not be overly precise
1' is approximately 1.5km. Not used if decimal degrees are specified.",
    "type": "number",
    "required": false
  },
  "7": {
    "label": "Longitude seconds",
    "description": "The minutes part of the longitude. Do not be overly precise
1\" is approximately 30m. Not used if decimal degrees are specified.",
    "type": "number",
    "required": false
  },
  "8": {
    "label": "Longitude direction",
    "description": "Direction part of longitude: E or W. Not used if decimal
degrees are specified.",
    "type": "string",  
    "required": false
  },
  "9": {
    "label": "Coordinate parameters",
    "description": "Optional parameters separated by an underscore '_', dim:N
(viewing diameter in metres), region:R (ISO 3166-1 alpha-2 or ISO 3166-2 code),
type:T (eg landmark or city(30,000)). For example
'dim:30_region:US-WI_type:event'",
    "type": "string",  
    "required": false
  },
  "display": {
    "label": "Display",
    "description": "Where it is displayed. Can be one of: 'inline' in the body
of the article (default), 'title' at the top of the article or 'inline,title'
both",
    "type": "string",  
    "required": false
  },
  "name": {
    "label": "Name",
    "description": "a label to place on maps (default is PAGENAME)",
    "type": "string",  
    "required": false
  },
  "notes": {
    "label": "Notes",
    "description": "text displayed immediately following the coordinates",
    "type": "string",  
    "required": false
  },
  "format": {
    "label": "Format",
    "description": "How the coordinates are displayed, either 'dec' or 'dms'",
    "type": "string",  
    "required": false
  }
}}</templatedata>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to