Difference between revisions of "Template:IPA link/core"

From blackwiki
Jump to navigation Jump to search
imported>Kwamikagami
(fix brackets)
imported>Nardog
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#iferror:{{{IPAsym name|}}}|<!--
+
{{#if:{{{1|}}}|{{IPA|{{{prefix|}}}[[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{symbol}}}}}]]{{{suffix|}}}}}<!-- audio begin -->{{#if:{{{audio|}}}|{{yesno|{{{audio}}}|yes={{IPA link/audio|{{IPA symbol|{{{symbol}}}|output=soundfile}}}}|def={{IPA audio link|{{{audio}}}}}}}}}<!-- audio end -->|<!-- if error -->{{#switch:{{{errortext<includeonly>|</includeonly>}}}
ERROR SITUATION either blank or unknown input IPA symbol
+
|=<!-- return default error -->{{IPA symbol|{{{symbol}}}}}
-->{{#switch:{{{errortext|}}}
+
|blank=|#default=<!-- return errortext -->{{{errortext}}}
| {{error|undefined|tag=span}}={{{IPAsym name|}}}
+
}}}}
| {{error|blank|tag=span}}=<!-- errortext set blank -->
 
| #default={{{errortext|}}}<!-- is filled -->
 
}}<!--
 
ERROR SITUATION end-->
 
|<!--WL BEGIN wikilink
 
IPA FONT opening
 
-->{{IPA|<!--
 
IPA BRACKET opening
 
-->{{#switch:{{{bracket|none}}}
 
| < | > | angle =
 
| / | slash =/
 
| ] | [ | square=&#x005b;
 
| #default=
 
}}<!--
 
WL BRACKETS [[ open
 
-->{{square bracket open|2}}<!--
 
WL PAGE name
 
-->{{{IPAsym name|}}}<!--
 
LABEL piped wikilink
 
-->{{#if:{{{label|}}}|{{!}}{{{label|}}}|}}<!--
 
WL BRACKETS ]] closing
 
-->]]<!--
 
IPA BRACKET closing
 
-->{{#switch:{{{bracket|none}}}
 
| < | > | angle =⟩
 
| / |    slash =/
 
| ] | [ | square=&#x005d;
 
| #default=
 
}}<!--
 
IPA FONT closing
 
-->}}<!--
 
NAME if requested
 
-->{{#if:{{{dummy|}}}| | }}{{#if:{{{name|}}}|{{yesno|{{{name|no}}}|yes=&#x20;{{{IPAsym name|}}}}}}}}}<noinclude>
 
 
 
{{documentation}}
 
</noinclude>
 

Latest revision as of 15:44, 16 January 2019

{{{errortext}}}