Form:Location: Difference between revisions

From Seven Sages of Rome
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 6: Line 6:
{{{info|add title=Add Location|edit title=Edit Location}}}
{{{info|add title=Add Location|edit title=Edit Location}}}
{{{for template|Location}}}
{{{for template|Location}}}
<div class="pf-wizard-screen">
{| class="formtable"
{| class="formtable"
! Display Title: {{#info: Title used for display only}}
! Display Title: {{#info: Title used for display only}}
Line 29: Line 28:
| {{{field|Has Note|input type=textarea|class=toolbarOnTop|editor=visualeditor}}}
| {{{field|Has Note|input type=textarea|class=toolbarOnTop|editor=visualeditor}}}
|}
|}
</div>
<div class="pf-wizard-screen">
<html>
<form id="redirectForm">
    <input type="text" id="pageName" placeholder="Enter name">
    <input type="button" value="Go to Page" onclick="redirectToPage()">
</form>
<script>
function redirectToPage() {
    var pageName = document.getElementById('pageName').value;
    if (pageName) {
        var url = mw.util.getUrl('GeoJson:' + pageName);
        window.location.href = url;
    } else {
        alert('Please enter a name');
    }
}
</script>
</html>
</div>
{{{end template}}}
{{{end template}}}



Revision as of 06:18, 11 October 2024

Add a location to the database