Jump to content
  • 0

Simple Infobox


Guest Charles-François Dallaire

Question

Guest Charles-François Dallaire

Hi,

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 : 

{{Infobox/Contact
|Company=Internationnal
|Contact_Name=John Smith
|Contact_Tel=xxx-xxx-xxxx
|Contact_Mobile=xxx-xxx-xxxx
|Contact_Email=john.smith@internationnal.com
|Contact_SupportedSoftware=
}}

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 :

===Internationnal===
:John Smith
::Tel:xxx-xxx-xxxx
::Mobile:xxx-xxx-xxxx
::Email:john.smith@internationnal.com
: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.

 

Charles

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.

Guest
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.

×
×
  • 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.