Henry Hartley wrote:
Sorry for the longish question but I wanted to give as much detail as
possible.
MediaWiki 1.11.1
CentOS 5.1
MySQL 5.0.22-2.2.el5
PHP 5.1.6.15.el5
I'm having trouble building what seems like a fairly simple template.
I've read documentation, I've looked at examples, I've even copied
templates from other sites but it's not working. Any help you can
provide would be greatly appreciated. I have simplified my template to
isolate the problem. So, I have a template called Person-Simple that
looks like this:
<includeonly>{| class="infobox" border="1"
|-
! align="center" colspan="2" border="1"
|'''{{{Name}}}'''
|- {{#if:
"Tables
Currently wiki pipe table syntax doesn't work inside conditionals, but there
are some workarounds," [workarounds listed there aren't particularly useful].
No idea how Wikia gets it to work, but there are two workarounds I can
recommend (used extensively on a genealogy site where both workarounds
are used (
http://www.middleton-stjohns.com) after much trial and error:
1) Use css instead of tables
(well, this isn't a workaround - it's the "right" way :-)
2) Use Extension:Winter (
http://www.mediawiki.org/wiki/Extension:Winter)
Winter conditionals look like this:
{{#if||expr||true path||false path|}}
and it handles the pipe table syntax very well.
There is a third workaround (use HTML table syntax) but that isn't a
great solution...
HTH -- Frank Middleton