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

From blackwiki
Jump to navigation Jump to search
imported>Sweyn78
(No luck with the div. What I'm trying to do, is get the template to display properly when other content is floated to the right of it. I'm going to try float:unset.)
imported>WOSlinker
(hlist)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{IPA chart/core2<!--
 
{{IPA chart/core2<!--
 
-->|wrapper      ={{{wrapper|infobox}}}<!--
 
-->|wrapper      ={{{wrapper|infobox}}}<!--
-->|positionstyle={{#switch:{{{wrapper|infobox}}}
+
-->|positionstyle={{#switch:{{{wrapper|infobox}}}<!--
-->|infobox     ={{#switch:{{{position|}}}<!--If the wrapper is "infobox"-->
+
 
  |left  |float left  |float:left =float:unset;
+
INFOBOX
  |right |float right |float:right =float:right;
+
-->|infobox={{#switch:{{{position|}}}<!--
  |center|float center|float:none  =float:unset;margin:0em auto 0em auto;
+
-->|none=<!--
  |none  |float none  |#default   =<!--
+
-->|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;<!--
 +
-->|right |float right |float:right |#default=float:right;<!--
 
-->}}<!--
 
-->}}<!--
-->|navbox={{#switch:{{{position|}}}<!--If the wrapper is "navbox"-->
+
 
  |none=
+
DEFAULT
  |left  |float left  |float:left  =float:unset;
+
-->|#default={{#switch:{{{position|}}}<!--
  |right |float right |float:right =float:right;
+
-->|none=<!--
  |center|float center|#default    =float:unset;margin:0em auto 0em auto;<!--
+
-->|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;<!--
 +
-->|right |float right |float:right          =float:right;<!--
 
-->}}<!--
 
-->}}<!--
-->|#default={{#switch:{{{position|}}}<!--If the wrapper is not "infobox" or "navbox"-->
+
 
  |none=
 
  |left  |float left  |float:left          =float:unset;
 
  |center|float center|float:none          =float:unset;margin:0em auto 0em auto;
 
  |right |float right |float:right|#default =float:right;<!--
 
 
-->}}<!--
 
-->}}<!--
-->}}<!--
+
-->|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.
-->|divboxstyle={{#ifeq:{{{wrapper|infobox}}}|infobox|{{#switch:{{{position|}}}|center|centre=<div align=center>|#default=}}|}}<!--Outer divbox, 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|NO NAME IPA TABLE}}}}}}<!--
+
-->|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|}}};<!--
 +
-->|alignstyle={{{alignstyle|align=left}}}<!--
  
STACK TABLE
+
FOOTNOTES 1-4 and IPA note
-->|alignstyle={{{alignstyle| align=left}}}<!--Not a style really -- more a trick.
 
 
 
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-->{{IPA chart/compose link
+
-->|{{{show linkrow|{{#switch:{{{wrapper|infobox}}}|infobox|content=yes|#default=no}}}}}<!--
  |link_yesno=YES| link_page=help:IPA<!--existing page-->| link_label=IPA help| nextlink_yesno={{{show ipa key|YES}}}| nextlink_page=EXISTING (IPAkey page)}}<!--
+
-->|yes=<!--
  2 IPA key-->{{IPA chart/compose link
+
1 IPA HELP
  |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 audiohelp-->{{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=]]&nbsp;| nextlink_yesno=yes| nextlink_page={{{extra link|}}}}}<!--
+
-->|link_yesno=YES|link_page=help:IPA<!--
  4 extra link-->{{IPA chart/compose link
+
-->|link_label=help<!--
  |link_yesno=yes| link_page={{{extra link|}}}| link_label={{{extra link label|}}}| nextlink_yesno=yes| nextlink_page={{{chart image|}}}}}<!--
+
-->|nextlink_yesno=NO<!--
  5 chart image-->{{IPA chart/compose link
+
-->|nextlink_page=EXISTING (IPAkey page)<!--
  |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|}}<!--
+
-->}}<!--
  6 audio chart-->{{IPA chart/compose link
+
2 IPA KEY
  |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)}}<!--
+
-->
  7 view base table-->{{IPA chart/compose link
+
* {{IPA chart/compose link<!--
  |link_yesno={{main other|no|yes}}| link_page={{{ipa table|NO IPA TABLE NAME}}}| link_label=view base table| nextlink_yesno={{{show view|YES}}}| nextlink_page={{{name|NO IPA TABLE NAME}}}}}<!--
+
-->|link_yesno={{{show ipa key|NO}}}<!--
  8 view this template-->{{IPA chart/compose link
+
-->|link_page=Help:IPA/English<!--
  |link_yesno={{{show view|YES}}}| link_page={{{name|NO IPA chart TEMPLATE NAME}}}| link_label=view| nextlink_yesno=NO|<!--No final bullet ever-->}}<!--
+
-->|link_label=English IPA<!--
-->|no=}}<!--
+
-->|nextlink_yesno=NO<!--
-->}}<noinclude>
+
-->|nextlink_page=EXISTING (audio help page)<!--
{{clear}}
+
-->}}<!--
{{documentation|1=Template:IPA chart/doc}}
+
3 AUDIO HELP
</noinclude>
+
-->
 +
* {{IPA chart/compose link<!--
 +
-->|link_yesno={{{show audio help|NO}}}<!--
 +
-->|link_page=wikipedia:Media help (Ogg)<!--
 +
-->|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>

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