Giter VIP home page Giter VIP logo

wikiconvert's Introduction

WikiConvert

This tool allows you to convert wiki links enclosed in [[double brackets]] (items), {{double curly braces}} (spells), etc into EveryQuest Alla Clone links.

Item Links

The tool will scan the input .txt file and look up the item ID (from the Alla clone). That item id is then used to inject Alla Clone links in place of the item names that are in [brackets].

The new, modified wiki data is then exported to <original_file_name>_converted.txt so you can easily copy/paste it into your wiki editor.

How To Use

  • Ensure you have Perl installed on your machine: https://strawberryperl.com/
  • Install the following dependencies via the terminal (one at a time):
cpan LWP::Simple
cpan HTML::TableExtract
cpan Term::ANSIColor
  • Place the WikiConvert.pl script in a folder of your choice.
  • Open the above perl script in a text editor and change the $AllaCloneBaseURL value to match the base url for your alla clone of choice.
  • Adjust the @itemNameFilters or @spellNameFilters values as desired to filter out any text within [brackets] or {{curlyBraces}} that you do not want converted. Values should all be within the parenthasis, surounded by double quotes and seperated by commas. i.e. @itemNameFilters = ("Category:", "Filter2", "Filter3");
  • Save your updated script.
  • Copy your Wiki markup text from your wiki of choice. Ensure that any item names that you want converted into Alla Clone item links are surrounded by [[double brackets]] and any spell names that you want converted into Alla Clone spell links are surrounded by {{double curly braces}}.
  • Paste the text into a .txt file (within the same directory as the perl script) with a name of your choice. Save the File.
  • Open your terminal application of choice (i.e. Command Prompt, Power Shell, etc) and navigate to the folder that the script is in.
  • Type perl wikiConvert.pl.
  • Select (by typing in) your target conversion type. i.e. items, npc, zones, other. *** NOTE: CURRENTLY ONLY ITEMS AND SPELLS ARE SUPPORTED.***
  • If 'other' is selected, you can choose to use the spelllist tool to generate a full spell list converted into markdown format.
  • Provide the name of the txt file you created above i.e. items.txt
  • Hit enter and the tool should start reporting its progress.
  • Once complete, the tool will export an output .txt file with the following name: <origional_input_file_name>_converted.txt, where <origioal_input_file_name> is the name of the original .txt file that you loaded into the tool.
  • You can now copy/paste the text from the exported output file into your wiki editor.

image

image

image

wikiconvert's People

Contributors

valorith avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.