• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Upload page content

    You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

    File to load page content from
    Page name
    Comment

    Abandon all valleys

    Script to drop all valleys in one city

    label abandonAllValleys
    if city.fields.length = 0 goto done
    execute "abandon " + city.fields[0].coords
    if !$error goto abandonAllValleys
    
    label done

    Abandon all valleys in all cities

    Script to drop all valleys in all cities

    cs = cities.concat()
    label nextcity
    c = cs.shift()
    if c fs = c.cityManager.fields.toArray()
    label nextfield
    if c f = fs.shift()
    if c if f execute "abandon " + f.coords
    if c if f if !$error goto nextfield
    if c goto nextcity
    echo "Finished"


    ScriptExamples