I have a spreadsheet containing a list of episode summaries for an ongoing (text) web serial, which I'd like to wikify (in the hope that a wiki format may be more 'accessible' for other readers to contribute than a spreadsheet!)
I've created a Wikia template, the parameters of which are below (abridged for the purposes of this post - it actually has eight fields):
Code:
{{events
|episode=
|date=
|title=
|events=
}}
Now, obviously I can export the spreadsheet as a csv, but then comes the problem of converting:
Code:
"a1","a2","a3","a4"
"b1","b2","b3","b4"
and so on
to:
Code:
{{events
|episode=a1
|date=a2
|title=a3
|events=a4
}}
{{events
|episode=b1
|date=b2
|title=b3
|events=b4
}}
and so on.
The basic algorithm would presumably be along the lines of taking each line in turn, extracting everything between the "," character sequence to an array, then appending it to a text file together with the rest of the wiki markup. I'd obviously test it on a small (say, 10 episode) extract before subjecting it to the full 1,200 (which I'd probably split over multiple pages of about 100 episodes each for convenience).
The text extraction is probably the most complicated aspect, together with writing the output to file (unless done in shell script with echos and >>s).
I know the basics of programming, but it's been about a decade since I did any (Java, for a Computer Science degree, unhelpfully using custom file IO classes built by the uni).
So what would be your recommendations for an appropriate language to use to write this code (e.g. shell script / perl / python / other), and could you share either the relevant operators or a useful language reference so I can swot up myself?