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 PlatformInstaller.
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=
}}
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.
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.
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.