Template:Contact: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
|Is preferred={{{Is preferred|}}} | |Is preferred={{{Is preferred|}}} | ||
|Is emergency contact={{{Is emergency|}}} | |Is emergency contact={{{Is emergency|}}} | ||
|Emergency person={{{Emergency person|}}} | |||
}}<!-- | }}<!-- | ||
--><li>{{#switch:{{{Contact type|}}} | --><li>{{#if: {{{Emergency person|}}}|{{{Emergency person|}}} }}{{#switch:{{{Contact type|}}} | ||
|Email=[mailto:{{{Email|}}} {{{Email|}}}] | |Email=[mailto:{{{Email|}}} {{{Email|}}}] | ||
|Phone={{{Phone|}}} | |Phone={{{Phone|}}} | ||
|#default={{{Other|}}} | |#default={{{Other|}}} | ||
}} {{#ifeq:{{{Is preferred|}}}|Yes|{{!}} preferred}} {{#ifeq:{{{Is emergency contact|}}}|Yes|{{!}} emergency contact}}</li></includeonly> | }} {{#ifeq:{{{Is preferred|}}}|Yes|{{!}} preferred}} {{#ifeq:{{{Is emergency contact|}}}|Yes|{{!}} emergency contact}}</li></includeonly> |