Hi
Sorry if this is a stupid question, but I'm trying to create some formatted content using the pywikimedia library.
The problem is that many formatting constructs expect to be on their own line, i.e table. I try something like:
page = wi.Page(wi.getSite(), "title") page.put("{|| col1 | col2 |}")
This doesn't turn out. It seems I need to have some kind of newline delimiter between some of the characters.
I need to create the following for it to work, but I can only do it manually using the normal web based MediaWiki article editor:
{| | col1 | col2 |}
Translating this to "code" and attempting to print a "\n" only comes out as normal text, so page.put("{|\n| col1 \n| col2\n|}") doesn't work
<br/> doesn't do the trick either.
What is the character I need to create a new line that will help me format the content properly?
Hope this makes sense.
Regards Lee Francis
PS Is there any way to split this list in two? The discussion is drowning in patches and fixes and is sometimes difficult to read. Just a thought...