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

From blackwiki
Jump to navigation Jump to search
imported>Nardog
imported>WOSlinker
m (avoid redirect)
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
This is the subtemplate used '''to format the data in {{tl|Infobox element}}'''.
 
This is the subtemplate used '''to format the data in {{tl|Infobox element}}'''.
  
==Usage==
 
{{Infobox element/pronunciation/demo|symbol=He |show ref=no}}
 
 
In the infobox:
 
In the infobox:
 
<pre><nowiki>| data11 = {{Infobox element/pronunciation|symbol={{{symbol|}}} }}</nowiki></pre>
 
<pre><nowiki>| data11 = {{Infobox element/pronunciation|symbol={{{symbol|}}} }}</nowiki></pre>
Line 11: Line 9:
  
 
==Data==
 
==Data==
{{Infobox element/pronunciation/demo|symbol=Ti|show ref=no}}
 
 
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).
  
Line 22: Line 19:
 
==Presentation design==
 
==Presentation design==
 
*Internally, elements are identified by their symbol.
 
*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).
+
*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:
 
*In the infobox, presentation is in this order and form:
:::{{ubl
+
:::{{Unbulleted list
|1=IPA1 (respell1), or
+
|1=ipa1 (respell1), or
|2=IPA2 (respell2), or
+
|2=ipa2 (respell2)}}
|3=IPA3 (respell3)}}
 
 
:So each pair starts at a new line (in an {{tl|unbulleted list}}).
 
:So each pair starts at a new line (in an {{tl|unbulleted list}}).
:Note that this eliminates the order ''IPA1, IPA2; respell1, respell2'' that some infoboxes had.
+
: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 {{tlf|respell}} has {{tlf|nowrap}}, mobile screens do break a respell at a hyphen. Also, the indenting does not look OK.
+
*The view should be OK in mobile view too.
  
 
==Presentation tests==
 
==Presentation tests==
Line 39: Line 35:
 
* {{tl|Infobox element/pronunciation}}
 
* {{tl|Infobox element/pronunciation}}
 
* {{tl|Infobox element/pronunciation/format}} -- Formatting subtemplate
 
* {{tl|Infobox element/pronunciation/format}} -- Formatting subtemplate
* {{tl|Infobox element/pronunciation/demo}} -- Standalone mini-infobox for a single element
 
  
 
;The data lists
 
;The data lists
Line 47: Line 42:
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Infobox element subtemplates|pronunciation]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 08:10, 9 September 2019

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