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

From blackwiki
Jump to navigation Jump to search
imported>Anthony Appleyard
m (Anthony Appleyard moved page Template:IPAlink/core to Template:IPA link/core: Requested at WP:RM as uncontroversial (permalink))
imported>Nardog
Line 1: Line 1:
{{#iferror:{{{IPAsym name|}}}|<!--
+
{{#if:{{{1|}}}|{{{1}}}|<!-- if error -->{{#if:{{{2<includeonly>|</includeonly>}}}|<!-- return errortext -->{{{2}}}|<!-- return default error -->{{IPA symbol|{{{3}}}}}}}}}
ERROR SITUATION either blank or unknown input IPA symbol
 
-->{{#switch:{{{errortext|}}}
 
| {{error|undefined|tag=span}}={{{IPAsym name|}}}<!-- nowe idle when "direct page" is used: since parent template does not throw "error" in this situation any more. 27 July 2013. -->
 
| {{error|blank|tag=span}}=<!-- errortext set blank -->
 
| #default={{{errortext|}}}<!-- is filled -->
 
}}<!--
 
ERROR SITUATION end-->
 
|<!-- wikilink BEGIN
 
IPA class (font) opening (note: has effect within this code?)
 
-->{{IPA|<!--
 
IPA BRACKET opening
 
-->{{#switch:{{lc:{{{bracket|none}}}}}
 
| angle = &#x27e8;<!-- mathematical left angle bracket -->
 
| slash = /
 
| square= &#x005b;
 
| #default=
 
}}<!--
 
wikilink BRACKETS ([[) open
 
-->{{square bracket open|2}}<!--
 
wikilink PAGE name
 
-->{{{IPAsym name|}}}{{!}}<!--
 
LABEL piped wikilink
 
-->{{#ifeq:{{{label|}}}||<!-- look for label in param 2 or 3:
 
-->{{#switch:{{{bracket|None}}}
 
| {{uc:{{{bracket}}}}} =<!--label in param 3?-->{{#ifeq:{{{param3|}}}|| {{{ipa symbol|}}}
 
| {{{param3|}}} }}
 
| {{lc:{{{bracket}}}}} =<!--label in param 2?-->{{#ifeq:{{{param2|}}}|| {{{ipa symbol|}}} | {{{param2|}}}}}
 
| #default={{#ifeq:{{{param2|}}}{{{param3|}}}|| {{{ipa symbol|}}} | {{{param2|}}}{{{param3|}}}}}
 
}}|{{{label|}}} }}<!--
 
wikilink BRACKETS ]] closing
 
-->]]<!--
 
IPA BRACKET closing
 
-->{{#switch:{{lc:{{{bracket|none}}}}}
 
| angle = &#x27e9;
 
| slash = /
 
| square= &#x005d;
 
| #default=
 
}}<!--
 
IPA class (font) closing
 
-->}}<!--
 
NAME if requested
 
-->{{#if:{{{name|}}}|{{yesno|{{{name|no}}}|yes=&#x20;{{{IPAsym name|}}}}}}}}}
 

Revision as of 23:54, 15 January 2019

{{{2}}}