Thread:Project:Support desk/Loading pages from .csv with categories & properties. (2)

There seems to be something that I'm not getting. I'm wanting to upload pages, a line at a time, from .csv files into mediawiki. I've loaded the semantic extensions. I'm able to load the .csv file into a template, but it seems to ignore the properties, the categories and even text features like '\n' - simply treating it all as raw text. How do I change this behaviour? The files I've used for testing are:

.csv:

Title,Import_template[namespace],Import_template[category],Import_template[policy_owner],Import_template[policy_name],Import_template[policy_description]

"sandpit:one","policy","[category:policy]\nstatus::active\nrenewal date::20/02/2014\nservice::Administration\nspeciality::all","My.Name","test_policy_name","==Policy Description==\n\ntest_policy_description\n\nmore test policy description"

What I get is:

title |

namespace | policy

category |

policy_owner | My.Name

policy_name | test_policy_name

policy_description| =Policy

Description==\n\ntest_policy_description\n\nmore test policy

description

test_policy |

So it seems to be interpreting the input as if it was binary text, ignoring the categories, the [] and the '\n'. So, as you can see, I've tried to set properties and categories, but doesn't seem to recognise them. The template I've set is:

This is the "Import_template" template.

It should be called in the following format:

Edit the page to see the template text.

Fustbariclation (talk) 10:59, 29 December 2013 (UTC)