Thanks Gerald for the answer but what I don't want is asking the users to use these templates. The users take the tables wikitext code from the Oo-MW export and paste it in a form (using Semantic Forms) that put it in a template. If I must to ask them to use extra code I prefer to use Pipe Escape {{#!: Reading the comment from John Du Hart I'm feeling that there isn't a better solution, unfortunately :(
However thanks to tell me.
David
El dl 13 de 02 de 2012 a les 17:50 -0500, en/na Gerald Grenier va escriure:
The standard way is to create Template:! that only has | and no spaces or return characters before your <noinclude> tag and Template:!! that is the same except it has || instead.
Then you have
{{Test|Contenido= {{{!}} class="wikitable" {{!}} bla {{!}} bla bla {{!}}- {{!}} hola {{!}} hola hola {{!}}}
}}
or
{{Test|Contenido= {{{!}} class="wikitable" {{!}} bla {{!!}} bla bla {{!}}- {{!}} hola {{!!}}hola hola {{!}}}
}}
On 2/13/2012 1:39 PM, david wrote:
Hi; I need a method or workaround to allow users to put contents with wikitext tables inside template parameters. The users use Open/Libre-Office MediaWiki export to generate the wikitext and it is preferable that they do not have to add any extra wikitext or codes.
This is my testing page: http://www.eoi.es/wiki/index.php/Usuario:Dvdgmz/pruebas
If I write this the template (well the table) crashes:
{{Test|Contenido= {| class="wikitable" | bla | bla bla |- | hola |hola hola |}
}}
Using Pipe Escape don't crashes but I don't want to ask users to write it:
{{Test|Contenido= {{#!: {| class="wikitable" | bla | bla bla |- | hola |hola hola |} }} }}
I tried to put the Pipe Escape tags inside the template but seems to be ignored.
David.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l