Index: trunk/extensions/Maps/Maps.i18n.php |
— | — | @@ -87,7 +87,23 @@ |
88 | 88 | 'maps-geodistance-par-geoservice' => 'The mapping service this is used together with. |
89 | 89 | This can affect the default geocoding service value.', |
90 | 90 | |
| 91 | + // display_map parser hook |
| 92 | + 'maps-displaymap-par-mappingservice' => 'Allows to set the mapping service that will be used to generate the map.', |
| 93 | + 'maps-displaymap-par-coordinates' => 'The location the map will initially be centred on.', |
91 | 94 | |
| 95 | + // display_points parser hook |
| 96 | + 'maps-displaypoints-par-zoom' => 'Allows to set the zoom level of the map. |
| 97 | +When not provided and multiple markers are present on the map, the best fitting zoom will be taken, not the configurable default.', |
| 98 | + 'maps-displaypoints-par-mappingservice' => 'Allows to set the mapping service that will be used to generate the map.', |
| 99 | + 'maps-displaypoints-par-coordinates' => 'One or more locations to display on the map. They will be indicated with a marker.', |
| 100 | + 'maps-displaypoints-par-centre' => "Allows to set the coordinates of the map's centre for display_point(s). |
| 101 | +Accepts both addresses and coordinates. |
| 102 | +When this property is not provided, the map will centre itself on the provided marker, or between the provided markers.", |
| 103 | + 'maps-displaypoints-par-title' => 'Allows to set text that will be displayed in the pop-ups of all markers that do not have a specific title. |
| 104 | +When used together with label, the title will be bold and have a line under it.', |
| 105 | + 'maps-displaypoints-par-label' => 'Allows to set text that will be displayed in the pop-ups of all markers that do not have a specific label.', |
| 106 | + 'maps-displaypoints-par-icon' => 'Allows you to set the icon used for all markers.', |
| 107 | + |
92 | 108 | // Validation |
93 | 109 | 'validation-error-invalid-location' => 'Parameter $1 must be a valid location.', |
94 | 110 | 'validation-error-invalid-locations' => 'Parameter $1 must be one or more valid locations.', |
Index: trunk/extensions/Maps/includes/parserHooks/Maps_DisplayPoint.php |
— | — | @@ -59,15 +59,18 @@ |
60 | 60 | |
61 | 61 | $params['mappingservice']->setDefault( $egMapsDefaultServices['display_point'] ); |
62 | 62 | $params['mappingservice']->addManipulations( new MapsParamService( 'display_point' ) ); |
| 63 | + $params['mappingservice']->setDescription( wfMsg( 'maps-displaypoints-par-mappingservice' ) ); |
63 | 64 | |
64 | 65 | $params['zoom']->addDependencies( 'coordinates', 'mappingservice' ); |
65 | 66 | $params['zoom']->addManipulations( new MapsParamZoom() ); |
| 67 | + $params['zoom']->setDescription( wfMsg( 'maps-displaypoints-par-zoom' ) ); |
66 | 68 | |
67 | 69 | $params['coordinates'] = new ListParameter( 'coordinates', $type === ParserHook::TYPE_FUNCTION ? ';' : "\n" ); |
68 | 70 | $params['coordinates']->addAliases( 'coords', 'location', 'address', 'addresses', 'locations' ); |
69 | 71 | $params['coordinates']->addCriteria( new CriterionIsLocation( $type === ParserHook::TYPE_FUNCTION ? '~' : '|' ) ); |
70 | 72 | $params['coordinates']->addManipulations( new MapsParamCoordSet( $type === ParserHook::TYPE_FUNCTION ? '~' : '|' ) ); |
71 | 73 | $params['coordinates']->addDependencies( 'mappingservice', 'geoservice' ); |
| 74 | + $params['coordinates']->setDescription( wfMsg( 'maps-displaypoints-par-coordinates' ) ); |
72 | 75 | |
73 | 76 | $params['centre'] = new Parameter( |
74 | 77 | 'centre', |
— | — | @@ -78,12 +81,14 @@ |
79 | 82 | new CriterionIsLocation(), |
80 | 83 | ) |
81 | 84 | ); |
| 85 | + $params['centre']->setDescription( wfMsg( 'maps-displaypoints-par-centre' ) ); |
82 | 86 | |
83 | 87 | $params['title'] = new Parameter( |
84 | 88 | 'title', |
85 | 89 | Parameter::TYPE_STRING, |
86 | 90 | $egMapsDefaultTitle |
87 | 91 | ); |
| 92 | + $params['title']->setDescription( wfMsg( 'maps-displaypoints-par-title' ) ); |
88 | 93 | |
89 | 94 | $params['label'] = new Parameter( |
90 | 95 | 'label', |
— | — | @@ -91,6 +96,7 @@ |
92 | 97 | $egMapsDefaultLabel, |
93 | 98 | array( 'text' ) |
94 | 99 | ); |
| 100 | + $params['label']->setDescription( wfMsg( 'maps-displaypoints-par-label' ) ); |
95 | 101 | |
96 | 102 | $params['icon'] = new Parameter( |
97 | 103 | 'icon', |
— | — | @@ -101,6 +107,7 @@ |
102 | 108 | New CriterionNotEmpty() |
103 | 109 | ) |
104 | 110 | ); |
| 111 | + $params['icon']->setDescription( wfMsg( 'maps-displaypoints-par-icon' ) ); |
105 | 112 | |
106 | 113 | return $params; |
107 | 114 | } |
Index: trunk/extensions/Maps/includes/parserHooks/Maps_DisplayMap.php |
— | — | @@ -63,12 +63,14 @@ |
64 | 64 | |
65 | 65 | $params['mappingservice']->setDefault( $egMapsDefaultServices['display_map'] ); |
66 | 66 | $params['mappingservice']->addManipulations( new MapsParamService( 'display_map' ) ); |
| 67 | + $params['mappingservice']->setDescription( wfMsg( 'maps-displaymap-par-mappingservice' ) ); |
67 | 68 | |
68 | 69 | $params['coordinates'] = new Parameter( 'coordinates' ); |
69 | 70 | $params['coordinates']->addAliases( 'coords', 'location', 'address' ); |
70 | 71 | $params['coordinates']->addCriteria( new CriterionIsLocation() ); |
71 | 72 | $params['coordinates']->addManipulations( new MapsParamCoordSet() ); |
72 | 73 | $params['coordinates']->addDependencies( 'mappingservice', 'geoservice' ); |
| 74 | + $params['coordinates']->setDescription( wfMsg( 'maps-displaymap-par-coordinates' ) ); |
73 | 75 | |
74 | 76 | return $params; |
75 | 77 | } |