Move WLM template below geolocation template (#4582)

This commit is contained in:
Josephine Lim 2021-08-26 00:32:48 +10:00 committed by GitHub
parent e666e768c2
commit 12221df75e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,18 +55,18 @@ class PageContentsCreator {
buffer.append("}}").append("\n"); buffer.append("}}").append("\n");
if (contribution.getWikidataPlace()!=null && contribution.getWikidataPlace().isMonumentUpload()) {
buffer.append("{{Wiki Loves Monuments 2021|1= ")
.append(countryCode)
.append("}}").append("\n");
}
//Only add Location template (e.g. {{Location|37.51136|-77.602615}} ) if coords is not null //Only add Location template (e.g. {{Location|37.51136|-77.602615}} ) if coords is not null
final String decimalCoords = contribution.getDecimalCoords(); final String decimalCoords = contribution.getDecimalCoords();
if (decimalCoords != null) { if (decimalCoords != null) {
buffer.append("{{Location|").append(decimalCoords).append("}}").append("\n"); buffer.append("{{Location|").append(decimalCoords).append("}}").append("\n");
} }
if (contribution.getWikidataPlace()!=null && contribution.getWikidataPlace().isMonumentUpload()) {
buffer.append("{{Wiki Loves Monuments 2021|1= ")
.append(countryCode)
.append("}}").append("\n");
}
buffer.append("== {{int:license-header}} ==\n") buffer.append("== {{int:license-header}} ==\n")
.append(licenseTemplateFor(media.getLicense())).append("\n\n") .append(licenseTemplateFor(media.getLicense())).append("\n\n")
.append("{{Uploaded from Mobile|platform=Android|version=") .append("{{Uploaded from Mobile|platform=Android|version=")