Difference between revisions of "Template:Infobox element/pronunciation/format/sandbox"
Jump to navigation
Jump to search
imported>DePiep (<wbr />) |
imported>DePiep |
||
| Line 1: | Line 1: | ||
{{#if:{{{ipa1|}}}|P<br/><!-- | {{#if:{{{ipa1|}}}|P<br/><!-- | ||
There is data to return: | There is data to return: | ||
| − | -->{{#if:{{{ipa2|}}}<!-- Multiple IPAs so use ubl and indent respell | + | -->{{#if:{{{ipa2|}}}<!-- |
| − | --> | + | Multiple IPAs so use ubl and indent respell |
| − | |{{ubl | + | -->|{{ubl |
|style=margin: 0; text-align: left; | |style=margin: 0; text-align: left; | ||
|item_style=margin: 0; text-indent: -1em; padding-left: 1em; | |item_style=margin: 0; text-indent: -1em; padding-left: 1em; | ||
| − | |1={{{ipa1}}} {{#if:{{{respell1 | + | |1={{{ipa1}}}{{#if:{{{respell1|}}}|<br />({{{respell1}}})}} |
| − | |2= | + | |2={{{ipa2}}}{{#if:{{{respell2|}}}|<br />({{{respell2}}})}} |
| − | }} | + | }}<!-- eo ubl |
| − | |{{{ipa1}}} {{#if:{{{respell1|}}}|<wbr />​{{nowrap|({{{respell1}}})}}}}<!-- | + | Single IPA, so no ubl and no indentation |
| + | -->|{{{ipa1}}} {{#if:{{{respell1|}}}|<wbr />​{{nowrap|({{{respell1}}})}}}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
--><noinclude>{{documentation|1=Template:Infobox element/pronunciation/doc}}</noinclude> | --><noinclude>{{documentation|1=Template:Infobox element/pronunciation/doc}}</noinclude> | ||
Revision as of 14:31, 30 January 2018
| 50px | This is the template sandbox page for Template:Infobox element/pronunciation/format (diff). |
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
- {{Infobox element/pronunciation}}
- {{Infobox element/pronunciation/format}} -- Formatting subtemplate
- The data lists
- {{Infobox element/symbol-to-pronunciation}} -- This is where the actual value like {{IPAc-en|...}} are stored and edited.
References
| The above documentation is transcluded from Template:Infobox element/pronunciation/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Subpages of this template. |