1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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