Jump to content
  • 0
Sign in to follow this  
Guest Charles-François Dallaire

Simple Infobox


Guest Charles-François Dallaire


I'm having a little issue where I try to create a simple infobox just to facilitate the insertion of information in a local wiki in the enterprise I work at.

The MediaWiki version installed is 1.29.1 from the latest Microsoft Web Platform Installer.

The Infobox : 

|Contact_Name=John Smith

It's code :

{{#if:    {{{Company}}}          |     {{Company|{{{Company}}}|}}            |  {{blank}} }}
{{#if:    {{{Contact_Name}}}     |     {{Contact_Name|{{{Contact_Name}}}|}}  |  {{blank}} }}
{{#if:    {{{Contact_Tel}}}      |     {{Contact_Tel|{{{Contact_Tel}}}|}}    |  {{blank}} }}
{{#if:    {{{Contact_Mobile}}}   |     {{Contact_Mobile|{{{Contact_Mobile}}}|}}  |  {{blank}} }}
{{#if:    {{{Contact_Email}}}    |     {{Contact_Email|{{{Contact_Email}}}|}}|  {{blank}} }}
{{#if:    {{{Contact_SupportedSoftware}}}     |     {{Contact_SupportedSoftware|{{{Contact_SupportedSoftware}}}|}}  |  {{blank}} }}

The output desired :

:John Smith
:Supported Software:

And the output I get : 

{{#if: Internationnal | Internationnal | }} {{#if: John Smith |

John Smith | }}
{{#if: xxx-xxx-xxxx |

xxx-xxx-xxxx | }}
{{#if: xxx-xxx-xxxx |

xxx-xxx-xxxx | }}
{{#if: john.smith@inter |

john.smith@inter| }}
{{#if: |

| }}

If someone could help it would be greatly appreciated. If you need more info i'll be happy to give them.



Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Guest Charles-François Dallaire

You were right, thank you very much !



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.