What's wrong with this mediawiki template?

Discussion in 'Content Management' started by fcmisc, Jul 2, 2008.

  1. #1
    Hi,

    I'm trying to learn how to create mediawiki templates but can't even find decent tutorials.

    I've got a test page here:

    http://poker.youallknow.com/index.php?title=Juice

    My template is:

    <table class="infobox biography vcard" style="width:{{#if: {{{box_width|}}} | {{{box_width|}}} | 22em}}; font-size:90%; text-align: left;" cellspacing="2">
    {{
    #ifexist: {{{name|}}} |
    <tr><td>Name<td><td>{{{name|}}}</td></tr>
    | not born
    }}

    {{#if: {{{name|}}} | {{{name|}}} | noname}}

    </table>

    For some reason the #if and #ifexist statements appear on the page, though they are templating code.

    Please help me to understand what I'm doing wrong.

    Cheers,

    fcmisc.
     
    fcmisc, Jul 2, 2008 IP
  2. fcmisc

    fcmisc Active Member

    Messages:
    701
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    93