Extension:KML Export/kml.style

From MediaWiki.org
Jump to: navigation, search
KML ExportExtension:KML Export FeaturesExtension:KML Export/FeaturesInstallationExtension:KML Export/InstallationQuick startExtension:KML Export/Quick startHow to useExtension:KML Export/How to useParser functionsExtension:KML Export/Parser functionsSpecial pagesExtension:KML Export/Special pagesConfigurationExtension:KML Export/Configuration

This parser function creates a named style that can be referenced by the style= property of kml.placemark and kml.folder.

You should set styles in category pages or in the kmlexport-common system message, not on article pages where placemarks are placed. This way, styles are shared among all articles.

This function instantiates a <Style> KML feature.


{{#kml.style: id 


XML identifier of this style.
One or more style definitions. See Style syntax.


On success, the style is set and the function returns no text. If the syntax is not understood, a red error message box is displayed.


{{#kml.style: statue
|IconStyle(href=http://example.com/kml/statue.png scale=0.8)
|LabelStyle(#ffccffcc scale=0.8)
{{#kml.style: airport
|IconStyle(href=http://example.com/kml/airport.png scale=0.8)
|LabelStyle(#ffffcccc scale=0.8)
{{#kml.style: default
== $[name] ==
[[Main page]], [[Special:Recentchanges|Recent changes]]

See also[edit]