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

From blackwiki
Jump to navigation Jump to search
imported>Kwamikagami
(fix brackets)
imported>DePiep
(add options param 2,3 is bracket, label (or swit\ched)/ See talk)
Line 7: Line 7:
 
}}<!--
 
}}<!--
 
ERROR SITUATION end-->
 
ERROR SITUATION end-->
|<!--WL BEGIN wikilink
+
|<!-- wikilink BEGIN
IPA FONT opening
+
IPA class (font) opening (note: has effect within this code?)
 
-->{{IPA|<!--
 
-->{{IPA|<!--
 
IPA BRACKET opening
 
IPA BRACKET opening
-->{{#switch:{{{bracket|none}}}
+
-->{{#switch:{{lc:{{{bracket|none}}}}}
| < | > | angle =⟨
+
| angle = &#x27e8;<!-- mathematical left angle bracket -->
| / | slash =/
+
| slash = /
| ] | [ | square=&#x005b;
+
| square= &#x005b;
 
| #default=
 
| #default=
 
}}<!--
 
}}<!--
WL BRACKETS [[ open
+
wikilink BRACKETS ([[) open
 
-->{{square bracket open|2}}<!--
 
-->{{square bracket open|2}}<!--
WL PAGE name
+
wikilink PAGE name
-->{{{IPAsym name|}}}<!--
+
-->{{{IPAsym name|}}}{{!}}<!--
 
LABEL piped wikilink
 
LABEL piped wikilink
-->{{#if:{{{label|}}}|{{!}}{{{label|}}}|}}<!--
+
-->{{#ifeq:{{{label|}}}||<!-- look for label in param 2 or 3:
WL BRACKETS ]] closing
+
-->{{#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
 
IPA BRACKET closing
-->{{#switch:{{{bracket|none}}}
+
-->{{#switch:{{lc:{{{bracket|none}}}}}
| < | > | angle =
+
| angle = &#x27e9;
| / |    slash =/
+
| slash = /
| ] | [ | square=&#x005d;
+
| square= &#x005d;
 
| #default=
 
| #default=
 
}}<!--
 
}}<!--
IPA FONT closing
+
IPA class (font) closing
 
-->}}<!--
 
-->}}<!--
 
NAME if requested
 
NAME if requested
-->{{#if:{{{dummy|}}}| | }}{{#if:{{{name|}}}|{{yesno|{{{name|no}}}|yes=&#x20;{{{IPAsym name|}}}}}}}}}<noinclude>
+
-->{{#if:{{{name|}}}|{{yesno|{{{name|no}}}|yes=&#x20;{{{IPAsym name|}}}}}}}}}
 
 
{{documentation}}
 
</noinclude>
 

Revision as of 21:28, 24 July 2012

[[|]]