Difference between revisions of "Template:IPA chart/core1"
Jump to navigation
Jump to search
imported>Sweyn78 m (Same as last edit.) |
imported>Sweyn78 (Fixed a whole bunch of bugs, finished adding support for British spelling (partial support already existed) (do we even need this?), minified/tabulated, saner defaults.) |
||
| Line 4: | Line 4: | ||
INFOBOX | INFOBOX | ||
| − | -->|infobox | + | -->|infobox={{#switch:{{{position|}}}<!-- |
| − | -->|left |float left |float:left | + | -->|none |float none |float:none<!-- |
| − | -->| | + | -->|left |float left |float:left =float:none;clear:none;<!-- |
| − | -->| | + | -->|center|float center|float:center<!-- |
| − | -->| | + | -->|centre|float centre|float:centre =float:none;margin:0em auto 0em auto;<!-- |
| + | -->|right |float right |float:right |#default=float:right;<!-- | ||
-->}}<!-- | -->}}<!-- | ||
| Line 14: | Line 15: | ||
-->|navbox={{#switch:{{{position|}}}<!-- | -->|navbox={{#switch:{{{position|}}}<!-- | ||
-->|none=<!-- | -->|none=<!-- | ||
| − | -->|left |float left |float:left =float:none;clear:none;<!-- | + | -->|none |float none |float:none<!-- |
| − | -->| | + | -->|left |float left |float:left |#default=float:none;clear:none;<!-- |
| − | -->| | + | -->|center|float center|float:center<!-- |
| + | -->|centre|float centre|float:centre =float:none;margin:0em auto 0em auto;<!-- | ||
| + | -->|right |float right |float:right =float:right;<!-- | ||
-->}}<!-- | -->}}<!-- | ||
| Line 22: | Line 25: | ||
-->|#default={{#switch:{{{position|}}}<!-- | -->|#default={{#switch:{{{position|}}}<!-- | ||
-->|none=<!-- | -->|none=<!-- | ||
| + | -->|none |float none |float:none<!-- | ||
-->|left |float left |float:left =float:none;clear:none;<!-- | -->|left |float left |float:left =float:none;clear:none;<!-- | ||
| − | -->|center|float center|float: | + | -->|center|float center|float:center<!-- |
| − | -->|right |float right |float:right|#default =float:right;<!-- | + | -->|centre|float centre|float:centre =float:none;margin:0em auto 0em auto;<!-- |
| + | -->|right |float right |float:right |#default=float:right;<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
| − | -->|divboxstyle={{#ifeq:{{{wrapper|infobox}}}|infobox|{{#switch:{{{position|}}}|center|centre=<div align=center>|#default=}}|}}<!--Outer divbox, needed when centering infobox. | + | -->|divboxstyle={{#ifeq:{{{wrapper|infobox}}}|infobox|{{#switch:{{{position|}}}|center|float center|float:center|centre|float centre|float:centre=<div align=center>|#default=}}|}}<!--Outer divbox, needed when centering infobox. |
CAPTION | CAPTION | ||
| Line 38: | Line 43: | ||
-->|show nonIPA={{{show non IPA|yes}}}<!-- | -->|show nonIPA={{{show non IPA|yes}}}<!-- | ||
-->|tablestyle =background:transparent;{{{tablestyle|}}};<!-- | -->|tablestyle =background:transparent;{{{tablestyle|}}};<!-- | ||
| − | -->|alignstyle={{{alignstyle|align=left}}}<!-- | + | -->|alignstyle={{{alignstyle|align=left}}}<!-- |
FOOTNOTES 1-4 and IPA note | FOOTNOTES 1-4 and IPA note | ||
| Line 45: | Line 50: | ||
-->|footnote3 ={{#if:{{{footnote3|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote3|}}}|no=}}}}<!-- | -->|footnote3 ={{#if:{{{footnote3|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote3|}}}|no=}}}}<!-- | ||
-->|footnote4 ={{#if:{{{footnote4|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote4|}}}|no=}}}}<!-- | -->|footnote4 ={{#if:{{{footnote4|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote4|}}}|no=}}}}<!-- | ||
| − | -->|footnote ipa ={{yesno|{{{show footnotes|YES}}}| yes={{{footnote ipa|This table contains [[phonetic]] symbols, which may not display correctly in some browsers. [[International Phonetic Alphabet#Technical note|[Help]]]}}}|no=}}<!-- | + | -->|footnote ipa ={{yesno|{{{show footnotes|YES}}}|yes={{{footnote ipa|This table contains [[phonetic]] symbols, which may not display correctly in some browsers. [[International Phonetic Alphabet#Technical note|[Help]]]}}}|no=}}<!-- |
| − | -->|footnotes ={{{footnote1|}}}<br>{{{footnote2|}}}<br>{{{footnote3|}}}<br>{{{footnote4|}}}< | + | -->|footnotes ={{{footnote1|}}}<br>{{{footnote2|}}}<br>{{{footnote3|}}}<br>{{{footnote4|}}}<br>{{{footnote ipa|}}}<!-- |
-->|footnotestyle={{yesno|{{{use style|yes}}}|yes={{{footnotestyle|text-align:left;font-weight:normal;font-size:88%;padding:0em 0.5em 0em 0.5em;background:#f1f1f1;}}}|no=}}<!-- | -->|footnotestyle={{yesno|{{{use style|yes}}}|yes={{{footnotestyle|text-align:left;font-weight:normal;font-size:88%;padding:0em 0.5em 0em 0.5em;background:#f1f1f1;}}}|no=}}<!-- | ||
| Line 53: | Line 58: | ||
-->|linkrowstyle={{yesno|{{{use style|yes}}}|{{{linkrowstyle|text-align:center;padding:0em 0.5em 0em 0.5em;background:transparent;}}}|no=}}<!-- | -->|linkrowstyle={{yesno|{{{use style|yes}}}|{{{linkrowstyle|text-align:center;padding:0em 0.5em 0em 0.5em;background:transparent;}}}|no=}}<!-- | ||
-->|linkrow =<!-- | -->|linkrow =<!-- | ||
| − | -->{{yesno|{{{show linkrow|{{#switch:{{{wrapper|infobox}}}|infobox|content=yes|#default=no}}}}}| yes=<!-- | + | -->{{yesno<!-- |
| + | -->|{{{show linkrow|{{#switch:{{{wrapper|infobox}}}|infobox|content=yes|#default=no}}}}}<!-- | ||
| + | -->|yes=<!-- | ||
1 IPA HELP | 1 IPA HELP | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno=YES| link_page=help:IPA<!-- | + | -->|link_yesno=YES|link_page=help:IPA<!-- |
| + | -->|link_label=IPA help<!-- | ||
| + | -->|nextlink_yesno={{{show ipa key|YES}}}<!-- | ||
| + | -->|nextlink_page=EXISTING (IPAkey page)<!-- | ||
| + | -->}}<!-- | ||
2 IPA KEY | 2 IPA KEY | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno={{{show ipa key|YES}}}| link_page=Help:IPA/English| link_label=IPA key| nextlink_yesno={{{show audio help|NO}}}| nextlink_page=EXISTING (audio help page)}}<!-- | + | -->|link_yesno={{{show ipa key|YES}}}<!-- |
| + | -->|link_page=Help:IPA/English<!-- | ||
| + | -->|link_label=IPA key<!-- | ||
| + | -->|nextlink_yesno={{{show audio help|NO}}}<!-- | ||
| + | -->|nextlink_page=EXISTING (audio help page)<!-- | ||
| + | -->}}<!-- | ||
3 AUDIO HELP | 3 AUDIO HELP | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno={{{show audio help|NO}}}| link_page=wikipedia:Media help (Ogg)| link_label=audio help| prefix=[[File:Loudspeaker.svg|11px|link=]] | nextlink_yesno=yes| nextlink_page={{{extra link|}}}}}<!-- | + | -->|link_yesno={{{show audio help|NO}}}<!-- |
| + | -->|link_page=wikipedia:Media help (Ogg)<!-- | ||
| + | -->|link_label=audio help<!-- | ||
| + | -->|prefix=[[File:Loudspeaker.svg|11px|link=]] <!-- | ||
| + | -->|nextlink_yesno=yes|nextlink_page={{{extra link|}}}<!-- | ||
| + | -->}}<!-- | ||
4 EXTRA LINK | 4 EXTRA LINK | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno=yes| link_page={{{extra link|}}}| link_label={{{extra link label|}}}| nextlink_yesno=yes| nextlink_page={{{chart image|}}}}}<!-- | + | -->|link_yesno=yes<!-- |
| + | -->|link_page={{{extra link|}}}<!-- | ||
| + | -->|link_label={{{extra link label|}}}<!-- | ||
| + | -->|nextlink_yesno=yes<!-- | ||
| + | -->|nextlink_page={{{chart image|}}}<!-- | ||
| + | -->}}<!-- | ||
5 CHART IMAGE | 5 CHART IMAGE | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno=yes| link_page={{{chart image|}}}| link_label=chart| nextlink_yesno={{{is audio chart|YES}}}| nextlink_page={{{audio chart link|}}}|is file link=yes | + | -->|link_yesno=yes<!-- |
| − | 6 AUDIO | + | -->|link_page={{{chart image|}}}<!-- |
| + | -->|link_label=chart<!-- | ||
| + | -->|nextlink_yesno={{{is audio chart|YES}}}<!-- | ||
| + | -->|nextlink_page={{{audio chart link|}}}<!-- | ||
| + | -->|is file link=yes<!-- | ||
| + | -->}}<!-- | ||
| + | 6 CHART WITH AUDIO | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno=yes| link_page={{{audio chart link|}}}| link_label=chart with audio| prefix=[[File:Loudspeaker.svg|11px|link={{{audio chart link|}}}]] | nextlink_yesno={{main other|no|yes}}| nextlink_page=EXISTING (IPA bare table)}}<!-- | + | -->|link_yesno=yes<!-- |
| + | -->|link_page={{{audio chart link|}}}<!-- | ||
| + | -->|link_label=chart with audio<!-- | ||
| + | -->|prefix=[[File:Loudspeaker.svg|11px|link={{{audio chart link|}}}]] <!-- | ||
| + | -->|nextlink_yesno={{main other|no|yes}}<!-- | ||
| + | -->|nextlink_page=EXISTING (IPA bare table)<!-- | ||
| + | -->}}<!-- | ||
7 VIEW BASE TABLE | 7 VIEW BASE TABLE | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno={{main other|no|yes}}| link_page={{{ipa table|Template:IPA chart/table undefined}}}| link_label=view base table| nextlink_yesno={{{show view|YES}}}| nextlink_page={{{name|IPA chart undefined}}}}}<!-- | + | -->|link_yesno={{main other|no|yes}}<!-- |
| + | -->|link_page={{{ipa table|Template:IPA chart/table undefined}}}<!-- | ||
| + | -->|link_label=view base table<!-- | ||
| + | -->|nextlink_yesno={{{show view|YES}}}<!-- | ||
| + | -->|nextlink_page={{{name|IPA chart undefined}}}<!-- | ||
| + | -->}}<!-- | ||
8 VIEW THIS TEMPLATE | 8 VIEW THIS TEMPLATE | ||
-->{{IPA chart/compose link<!-- | -->{{IPA chart/compose link<!-- | ||
| − | -->|link_yesno={{{show view|YES}}}| link_page={{{name|Template:IPA chart undefined}}}| link_label=view| nextlink_yesno=NO | + | -->|link_yesno={{{show view|YES}}}<!-- |
| − | -->|no=}}<!-- | + | -->|link_page={{{name|Template:IPA chart undefined}}}<!-- |
| + | -->|link_label=view<!-- | ||
| + | -->|nextlink_yesno=NO<!-- | ||
| + | -->}}<!-- | ||
| + | -->|no=<!-- | ||
| + | -->}}<!-- | ||
-->}}<noinclude>{{clear}}{{documentation|1=Template:IPA chart/doc}}</noinclude> | -->}}<noinclude>{{clear}}{{documentation|1=Template:IPA chart/doc}}</noinclude> | ||
Revision as of 04:49, 14 September 2017
| IPA chart undefined, see IPA chart/core1 for usage | |
| This table contains phonetic symbols, which may not display correctly in some browsers. [Help] | |
|---|---|
IPA help
|
Usage
The template shows an IPA chart, wrapped in an infobox.
Templates
Full blank parameter list
{{IPA chart/core1
<!-- general -->
| name =
| wrapper =
| position =
<!-- table -->
| caption =
| ipa table =
| show nonIPA =
| show optionals =
| tablestyle =
<!-- footnotes -->
| show footnotes =
| footnote1 =
| footnote2 =
| footnote3 =
| footnote4 =
| footnote ipa =
| footnotestyle =
<!-- links -->
| show linkrow =
| show ipa key =
| show audio help =
| extra link =
| extra link label =
| chart image =
| audio chart link =
| show view =
| linkrowstyle =
}}
- Position defaults to "float right".
See also
| The above documentation is transcluded from Template:IPA chart/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |