Kartographer
Extension that adds maps to wiki pages
|
Formats coordinates into human-readable strings. More...
Public Member Functions | |
__construct (?float $lat, ?float $lon) | |
format ( $language) | |
Formats coordinates. | |
formatParsoidSpan (ParsoidExtensionAPI $extAPI, ?string $language) | |
Formats coordinates as a Parsoid i18n span. | |
Formats coordinates into human-readable strings.
@license MIT
Kartographer\CoordFormatter::__construct | ( | ?float | $lat, |
?float | $lon ) |
float | null | $lat | |
float | null | $lon |
Kartographer\CoordFormatter::format | ( | $language | ) |
Formats coordinates.
Language | string | $language |
Kartographer\CoordFormatter::formatParsoidSpan | ( | ParsoidExtensionAPI | $extAPI, |
?string | $language ) |
Formats coordinates as a Parsoid i18n span.
This method should not be used to generate content that is added to a tag attribute.
ParsoidExtensionAPI | $extAPI | |
string | null | $language |