Difference between revisions of "Template:Infobox element/pronunciation/doc"

From blackwiki
Jump to navigation Jump to search
imported>Nardog
imported>Nardog
Line 14: Line 14:
 
The '''data itself''' is stored and edited in {{tl|Infobox element/symbol-to-pronunciation}}. The page has an overview (all elements, all their items).
 
The '''data itself''' is stored and edited in {{tl|Infobox element/symbol-to-pronunciation}}. The page has an overview (all elements, all their items).
  
There are six data items per element:
+
There are four data items per element:
::{{code|IPA1, respell1}}
+
:{{code|ipa1}}, {{code|respell1}}, {{code|ipa2}}, {{code|respell2}}
::{{code|IPA2, respell2}}
+
 
::{{code|IPA3, respell3}}
+
Example, He: {{code|1=<nowiki>|ipa1={{IPAc-en|ˈ|h|iː|l|i|ə|m}}</nowiki>}}. Each item can also have references and a textual note.
Example, IPA1: {{code|1=<nowiki>| He = {{IPAc-en|ˈ|h|iː|l|i|ə|m}}</nowiki>}}. Each item can also have references and a textual note.
 
 
{{clear}}
 
{{clear}}
  

Revision as of 16:48, 14 January 2018

This is the subtemplate used to format the data in {{Infobox element}}.

Usage

Template:Infobox element/pronunciation/demo In the infobox:

| data11 = {{Infobox element/pronunciation|symbol={{{symbol|}}} }}

It is used in each {{Infobox element}}, so it is not suitable to change the appearance for a single element.

Data

Template:Infobox element/pronunciation/demo The data itself is stored and edited in {{Infobox element/symbol-to-pronunciation}}. The page has an overview (all elements, all their items).

There are four data items per element:

ipa1, respell1, ipa2, respell2

Example, He: |ipa1={{IPAc-en|ˈ|h|iː|l|i|ə|m}}. Each item can also have references and a textual note.

Presentation design

  • Internally, elements are identified by their symbol.
  • Each element name pronunciation consists of a pair: IPA1, respell1 (=pair1). Some elements have two (or three) pronunciation variants, adding pair2 (and pair3).
  • In the infobox, presentation is in this order and form:
Template:Ubl
So each pair starts at a new line (in an {{unbulleted list}}).
Note that this eliminates the order IPA1, IPA2; respell1, respell2 that some infoboxes had.
  • The view should be OK in mobile view too. Minor issues: while the {{respell}} has {{nowrap}}, mobile screens do break a respell at a hyphen. Also, the indenting does not look OK.

Presentation tests

See {{Infobox element/pronunciation/testcases}}

See also

The data lists

References