Difference between revisions of "Template:IPA link/core"
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--> | ||
| − | |<!-- | + | |<!-- wikilink BEGIN |
| − | IPA | + | 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 = ⟨<!-- mathematical left angle bracket --> |
| − | + | | slash = / | |
| − | + | | square= [ | |
| #default= | | #default= | ||
}}<!-- | }}<!-- | ||
| − | + | wikilink BRACKETS ([[) open | |
-->{{square bracket open|2}}<!-- | -->{{square bracket open|2}}<!-- | ||
| − | + | wikilink PAGE name | |
| − | -->{{{IPAsym name|}}}<!-- | + | -->{{{IPAsym name|}}}{{!}}<!-- |
LABEL piped wikilink | 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 | IPA BRACKET closing | ||
| − | -->{{#switch:{{{bracket|none}}} | + | -->{{#switch:{{lc:{{{bracket|none}}}}} |
| − | + | | angle = ⟩ | |
| − | | | + | | slash = / |
| − | + | | square= ] | |
| #default= | | #default= | ||
}}<!-- | }}<!-- | ||
| − | IPA | + | IPA class (font) closing |
-->}}<!-- | -->}}<!-- | ||
NAME if requested | NAME if requested | ||
| − | --> | + | -->{{#if:{{{name|}}}|{{yesno|{{{name|no}}}|yes= {{{IPAsym name|}}}}}}}}} |
| − | |||
| − | |||
| − | |||
Revision as of 21:28, 24 July 2012
[[|]]