Difference between revisions of "Template:IPA chart/core1"

From blackwiki
Jump to navigation Jump to search
imported>Sweyn78
m (More-legible code.)
imported>WOSlinker
(hlist)
 
(17 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
-->|wrapper      ={{{wrapper|infobox}}}<!--
 
-->|wrapper      ={{{wrapper|infobox}}}<!--
 
-->|positionstyle={{#switch:{{{wrapper|infobox}}}<!--
 
-->|positionstyle={{#switch:{{{wrapper|infobox}}}<!--
 +
 
INFOBOX
 
INFOBOX
-->|infobox     ={{#switch:{{{position|}}}<!--
+
-->|infobox={{#switch:{{{position|}}}<!--
-->|left  |float left  |float:left  =float:none;clear:none;<!--
 
-->|right |float right |float:right =float:right;<!--
 
-->|center|float center|float:none  =float:none;margin:0em auto 0em auto;<!--
 
-->|none  |float none  |#default    =<!--
 
-->}}<!--
 
NAVBOX
 
-->|navbox={{#switch:{{{position|}}}<!--
 
 
-->|none=<!--
 
-->|none=<!--
-->|left  |float left  |float:left =float:none;clear:none;<!--
+
-->|none  |float none  |float:none<!--
-->|right |float right |float:right =float:right;<!--
+
-->|left  |float left  |float:left           =float:none;clear:none;<!--
-->|center|float center|#default   =float:none;margin:0em auto 0em auto;<!--
+
-->|center|float center|float:center<!--
 +
-->|centre|float centre|float:centre        =float:none;margin:0em auto;<!--
 +
-->|right |float right |float:right |#default=float:right;<!--
 
-->}}<!--
 
-->}}<!--
 +
 
DEFAULT
 
DEFAULT
 
-->|#default={{#switch:{{{position|}}}<!--
 
-->|#default={{#switch:{{{position|}}}<!--
 
-->|none=<!--
 
-->|none=<!--
-->|left  |float left  |float:left           =float:none;clear:none;<!--
+
-->|none  |float none  |float:none<!--
-->|center|float center|float:none          =float:none;margin:0em auto 0em auto;<!--
+
-->|left  |float left  |float:left |#default=float:none;clear:none;<!--
-->|right |float right |float:right|#default =float:right;<!--
+
-->|center|float center|float:center<!--
 +
-->|centre|float centre|float:centre        =float:none;margin:0em auto;<!--
 +
-->|right |float right |float:right         =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=}}|}}<!--Needed when centering infobox.
  
 
CAPTION
 
CAPTION
 
-->|caption          ={{{caption|}}}<!--
 
-->|caption          ={{{caption|}}}<!--
-->|captionstyle    ={{{captionstyle|background:#f2f2ce;font-weight:bold;}}}<!--
+
-->|captionstyle    =font-weight:bold;{{{captionstyle|background:#ccf;}}}<!--
-->|tablecaptionstyle= font-weight:bold;line-height:1.5em;{{{captionstyle|background:#f2f2ce;}}}<!--
+
-->|tablecaptionstyle= font-weight:bold;line-height:1.5em;{{{captionstyle|}}}<!--
  
 
BASE TABLE
 
BASE TABLE
 
-->|ipa table  ={{{ipa table|{{{IPA table|IPA chart undefined}}}}}}<!--
 
-->|ipa table  ={{{ipa table|{{{IPA table|IPA chart undefined}}}}}}<!--
-->|show nonIPA={{{show non IPA|yes}}}<!--
+
-->|show nonIPA={{{show nonIPA|yes}}}<!--
-->|tablestyle =background:transparent;{{{tablestyle|}}};<!--
+
-->|show optionals={{{show optionals|yes}}}<!--
 
+
-->|tablestyle =background:transparent;{{#ifeq:{{{wrapper|infobox}}}|infobox|font-size:112.5%;line-height:1.5em;}}{{{tablestyle|}}};<!--
STACK TABLE
+
-->|alignstyle={{{alignstyle|align=left}}}<!--
-->|alignstyle={{{alignstyle|align=left}}}<!--Not a style really -- more a trick.
 
  
FOOTNOTES 1-4 and ipa note
+
FOOTNOTES 1-4 and IPA note
 
-->|footnote1    ={{#if:{{{footnote1|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote1|}}}|no=}}}}<!--
 
-->|footnote1    ={{#if:{{{footnote1|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote1|}}}|no=}}}}<!--
 
-->|footnote2    ={{#if:{{{footnote2|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote2|}}}|no=}}}}<!--
 
-->|footnote2    ={{#if:{{{footnote2|}}}|{{yesno|{{{show footnotes|YES}}}| yes={{{footnote2|}}}|no=}}}}<!--
 
-->|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. [[Help:IPA#Rendering issues|[Help]]]}}}|no=}}<!--
-->|footnotes    ={{{footnote1|}}}<br>{{{footnote2|}}}<br>{{{footnote3|}}}<br>{{{footnote4|}}}<!-- add fn ipa here--><!--
+
-->|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;}}}|no=}}<!--
  
 
LINKROW
 
LINKROW
 
-->|show linkrow={{{show linkrow|{{#switch:{{{wrapper|infobox}}}|infobox|content=yes|#default=no}}}}}<!--
 
-->|show linkrow={{{show linkrow|{{#switch:{{{wrapper|infobox}}}|infobox|content=yes|#default=no}}}}}<!--
-->|linkrowstyle={{yesno|{{{use style|yes}}}|{{{linkrowstyle|text-align:center;padding:0em 0.5em 0em 0.5em;background:transparent;}}}|no=}}<!--
+
-->|linkrowstyle={{yesno|{{{use style|yes}}}|yes={{{linkrowstyle|text-align:center;padding:0em 0.5em;background:#e6e6ff;}}}|no=}}<!--
 
-->|linkrow    =<!--
 
-->|linkrow    =<!--
-->{{yesno|{{{show linkrow|{{#switch:{{{wrapper|infobox}}}|infobox|content=yes|#default=no}}}}}| yes=<!--
+
-->{{yesno<!--
1 IPAhelp
+
-->|{{{show linkrow|{{#switch:{{{wrapper|infobox}}}|infobox|content=yes|#default=no}}}}}<!--
-->{{IPA chart/compose link<!--
+
-->|yes=<!--
-->|link_yesno=YES| link_page=help:IPA<!--existing page-->| link_label=IPA help| nextlink_yesno={{{show ipa key|YES}}}| nextlink_page=EXISTING (IPAkey page)}}<!--
+
1 IPA HELP
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=YES|link_page=help:IPA<!--
3 audiohelp
+
-->|link_label=help<!--
-->{{IPA chart/compose link<!--
+
-->|nextlink_yesno=NO<!--
-->|link_yesno={{{show audio help|NO}}}| link_page=wikipedia:Media help (Ogg)| link_label=audio help| prefix=[[File:Loudspeaker.svg|11px|link=]]&nbsp;| nextlink_yesno=yes| nextlink_page={{{extra link|}}}}}<!--
+
-->|nextlink_page=EXISTING (IPAkey page)<!--
4 extra link
+
-->}}<!--
-->{{IPA chart/compose link<!--
+
2 IPA KEY
-->|link_yesno=yes| link_page={{{extra link|}}}| link_label={{{extra link label|}}}| nextlink_yesno=yes| nextlink_page={{{chart image|}}}}}<!--
+
-->
5 chart image
+
* {{IPA chart/compose link<!--
-->{{IPA chart/compose link<!--
+
-->|link_yesno={{{show ipa key|NO}}}<!--
-->|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_page=Help:IPA/English<!--
6 audio chart
+
-->|link_label=English IPA<!--
-->{{IPA chart/compose link<!--
+
-->|nextlink_yesno=NO<!--
-->|link_yesno=yes| link_page={{{audio chart link|}}}| link_label=chart with audio| prefix=[[File:Loudspeaker.svg|11px|link={{{audio chart link|}}}]]&nbsp;| nextlink_yesno={{main other|no|yes}}| nextlink_page=EXISTING (IPA bare table)}}<!--
+
-->|nextlink_page=EXISTING (audio help page)<!--
7 view base table
+
-->}}<!--
-->{{IPA chart/compose link<!--
+
3 AUDIO HELP
-->|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
+
* {{IPA chart/compose link<!--
-->{{IPA chart/compose link<!--
+
-->|link_yesno={{{show audio help|NO}}}<!--
-->|link_yesno={{{show view|YES}}}| link_page={{{name|Template:IPA chart undefined}}}| link_label=view| nextlink_yesno=NO|<!--No final bullet ever-->}}<!--
+
-->|link_page=wikipedia:Media help (Ogg)<!--
-->|no=}}<!--
+
-->|link_label=help (audio)<!--
 +
-->|prefix=[[File:Loudspeaker.svg|11px|link=]]&nbsp;<!--
 +
-->|nextlink_yesno=NO|nextlink_page={{{extra link|}}}<!--
 +
-->}}<!--
 +
4 EXTRA LINK
 +
-->
 +
* {{IPA chart/compose link<!--
 +
-->|link_yesno=yes<!--
 +
-->|link_page={{{extra link|}}}<!--
 +
-->|link_label={{{extra link label|}}}<!--
 +
-->|nextlink_yesno=NO<!--
 +
-->|nextlink_page={{{chart image|}}}<!--
 +
-->}}<!--
 +
5 CHART IMAGE
 +
-->
 +
* {{IPA chart/compose link<!--
 +
-->|link_yesno=yes<!--
 +
-->|link_page={{{chart image|}}}<!--
 +
-->|link_label=image<!--
 +
-->|nextlink_yesno=NO<!--
 +
-->|nextlink_page={{{audio chart link|}}}<!--
 +
-->|is file link=yes<!--
 +
-->}}<!--
 +
6 CHART WITH AUDIO
 +
-->
 +
* {{IPA chart/compose link<!--
 +
-->|link_yesno=yes<!--
 +
-->|link_page={{{audio chart link|}}}<!--
 +
-->|link_label=audio<!--
 +
-->|prefix=[[File:Loudspeaker.svg|11px|link={{{audio chart link|}}}]]&nbsp;<!--
 +
-->|nextlink_yesno=NO<!--
 +
-->|nextlink_page=EXISTING (IPA bare table)<!--
 +
-->}}<!--
 +
7 VIEW BASE TABLE
 +
-->
 +
* {{IPA chart/compose link<!--
 +
-->|link_yesno={{main other|no|{{{show view|YES}}}}}<!--
 +
-->|link_page={{{ipa table|Template:IPA chart/table undefined}}}<!--
 +
-->|link_label=table<!--
 +
-->|nextlink_yesno=NO<!--
 +
-->|nextlink_page={{{name|IPA chart undefined}}}<!--
 +
-->}}<!--
 +
8 VIEW THIS TEMPLATE
 +
-->
 +
* {{IPA chart/compose link<!--
 +
-->|link_yesno={{{show view|YES}}}<!--
 +
-->|link_page={{{name|Template:IPA chart undefined}}}<!--
 +
-->|link_label=template<!--
 +
-->|nextlink_yesno=NO<!--
 +
-->}}<!--
 +
-->|no=<!--
 +
-->}}<!--
 
-->}}<noinclude>{{clear}}{{documentation|1=Template:IPA chart/doc}}</noinclude>
 
-->}}<noinclude>{{clear}}{{documentation|1=Template:IPA chart/doc}}</noinclude>

Latest revision as of 15:05, 24 May 2020

IPA chart undefined,
see IPA chart/core1 for usage
This table contains phonetic symbols, which may not display correctly in some browsers. [Help]
Template documentation[view] [edit] [history] [purge]

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

pt:Predefinição:IPA chart