m |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
var expeditionData = expeditionMatch[0].split("_") | var expeditionData = expeditionMatch[0].split("_") | ||
var meetupTemplate = "{{meetup graticule|date=" + expeditionData[0] + "|lat=" + expeditionData[1] + "|lon=" + expeditionData[2] + "}}" | var meetupTemplate = "{{meetup graticule|date=" + expeditionData[0] + "|lat=" + expeditionData[1] + "|lon=" + expeditionData[2] + "}}" | ||
+ | var landGeohash = "{{land geohash|date=" + expeditionData[0] + "|latitude=" + expeditionData[1] + "|longitude=" + expeditionData[2] + "|name=[[User:Fippe|Fippe]]|image=TODO}}" | ||
var expeditionTemplate = meetupTemplate + "\n\ | var expeditionTemplate = meetupTemplate + "\n\ | ||
==Location==\n\ | ==Location==\n\ | ||
+ | This Geohash is located [[wikipedia:TODO|TODO]].\n\ | ||
\n\ | \n\ | ||
==Participants==\n\ | ==Participants==\n\ | ||
− | *[[User:Fippe|Fippe | + | *[[User:Fippe|Fippe]]\n\ |
\n\ | \n\ | ||
==Expedition==\n\ | ==Expedition==\n\ | ||
+ | TODO\n\ | ||
\n\ | \n\ | ||
==Photos==\n\ | ==Photos==\n\ | ||
− | <gallery>\n\ | + | <gallery mode=\"packed\" heights=\"200px\">\n\ |
+ | TODO\n\ | ||
</gallery>\n\ | </gallery>\n\ | ||
+ | \n\ | ||
+ | ==Tracklog==\n\ | ||
+ | {{tracklog|TODO}}\n\ | ||
\n\ | \n\ | ||
==Ribbons==\n\ | ==Ribbons==\n\ | ||
− | {{#vardefine:ribbonwidth|100%}}\n\ | + | {{#vardefine:ribbonwidth|100%}}\n" + landGeohash + "\n\ |
\n\ | \n\ | ||
__NOTOC__\n\ | __NOTOC__\n\ | ||
− | |||
[[Category:Expeditions]]\n\ | [[Category:Expeditions]]\n\ | ||
[[Category:Coordinates reached]]\n\ | [[Category:Coordinates reached]]\n\ | ||
Line 54: | Line 60: | ||
[[Category:Not reached - No public access]]\n\ | [[Category:Not reached - No public access]]\n\ | ||
[[Category:Not reached - Mother Nature]]\n\ | [[Category:Not reached - Mother Nature]]\n\ | ||
− | [[Category:Expeditions with photos]] | + | [[Category:Expeditions with photos]]\n\ |
− | {{location|DE}}\n\ | + | {{location|DE|TODO|TODO}}\n\ |
− | {{user categories|user=Fippe}}"; | + | {{user categories|user=Fippe|hours=TODO|TODO}}"; |
$(document).ready(waitForWikiEditor); | $(document).ready(waitForWikiEditor); | ||
} | } | ||
// </includeonly> | // </includeonly> |
Latest revision as of 20:37, 11 July 2023
// <includeonly> function waitForWikiEditor(){ if(typeof $("#wpTextbox1").wikiEditor === "function"){ $("#wpTextbox1").wikiEditor("addToToolbar", { section: "main", group: "insert", tools: { buttonId: { label: "Expedition template", type: "button", icon: "https://geohashing.site/images/thumb/4/4c/Landgeohash.png/22px-Landgeohash.png", action: { type: "encapsulate", options: { post: expeditionTemplate } } } } }); } else{ setTimeout(waitForWikiEditor, 250); } } var expeditionRegex = /\d{4}-\d{2}-\d{2}_-?\d{1,3}_-?\d{1,3}/ var expeditionMatch = location.toString().match(expeditionRegex) if(expeditionMatch !== null && (mw.config.get(['wgAction']).wgAction === "edit" || mw.config.get(['wgAction']).wgAction === "submit")){ var expeditionData = expeditionMatch[0].split("_") var meetupTemplate = "{{meetup graticule|date=" + expeditionData[0] + "|lat=" + expeditionData[1] + "|lon=" + expeditionData[2] + "}}" var landGeohash = "{{land geohash|date=" + expeditionData[0] + "|latitude=" + expeditionData[1] + "|longitude=" + expeditionData[2] + "|name=[[User:Fippe|Fippe]]|image=TODO}}" var expeditionTemplate = meetupTemplate + "\n\ ==Location==\n\ This Geohash is located [[wikipedia:TODO|TODO]].\n\ \n\ ==Participants==\n\ *[[User:Fippe|Fippe]]\n\ \n\ ==Expedition==\n\ TODO\n\ \n\ ==Photos==\n\ <gallery mode=\"packed\" heights=\"200px\">\n\ TODO\n\ </gallery>\n\ \n\ ==Tracklog==\n\ {{tracklog|TODO}}\n\ \n\ ==Ribbons==\n\ {{#vardefine:ribbonwidth|100%}}\n" + landGeohash + "\n\ \n\ __NOTOC__\n\ [[Category:Expeditions]]\n\ [[Category:Coordinates reached]]\n\ [[Category:Coordinates not reached]]\n\ [[Category:Not reached - No public access]]\n\ [[Category:Not reached - Mother Nature]]\n\ [[Category:Expeditions with photos]]\n\ {{location|DE|TODO|TODO}}\n\ {{user categories|user=Fippe|hours=TODO|TODO}}"; $(document).ready(waitForWikiEditor); } // </includeonly>