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

From blackwiki
Jump to navigation Jump to search
imported>Nardog
imported>DePiep
(pronunciation template-technical changes. See talk)
 
Line 2: Line 2:
 
|symbol  ={{{symbol|}}}
 
|symbol  ={{{symbol|}}}
 
|ipa1    ={{{ipa1|}}}
 
|ipa1    ={{{ipa1|}}}
|respell1={{Infobox element/symbol-to-pronunciation|{{{symbol|}}}|respell1}}
+
|respell1={{Infobox element/symbol-to-pronunciation|symbol={{{symbol|}}}|item=respell1|default=}}
|ipa2    ={{Infobox element/symbol-to-pronunciation|{{{symbol|}}}|ipa2}}
+
|ipa2    ={{Infobox element/symbol-to-pronunciation|symbol={{{symbol|}}}|item=ipa2|default=}}
|respell2={{Infobox element/symbol-to-pronunciation|{{{symbol|}}}|respell2}}
+
|respell2={{Infobox element/symbol-to-pronunciation|symbol={{{symbol|}}}|item=respell2|default=}}
 
}}|<!-- no ipa1, no return data -->}}<!--
 
}}|<!-- no ipa1, no return data -->}}<!--
  
 
--><noinclude>{{documentation}}</noinclude>
 
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 13:52, 30 January 2018

50px Template documentation[view] [edit] [history] [purge]

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

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

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 pronunciation variants, adding pair2.
  • In the infobox, presentation is in this order and form:
  • ipa1 (respell1), or
  • ipa2 (respell2)
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.

Presentation tests

See {{Infobox element/pronunciation/testcases}}

See also

The data lists

References