|
|
| (15 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| {{HueCSS}}<!-- | | {{HueCSS}}<!-- |
| --><includeonly><onlyinclude><{{{html|span}}} {{#if:{{{lang|}}}|lang="{{{lang}}}"|}} class="tts {{{class|}}}" {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{tts|}}}{{{2|}}}{{{title|}}}=title{{=}}""|{{{tts|}}}{{{title|}}}=title{{=}}"{{{2|}}}"|{{{2|}}}{{{title|}}}=title{{=}}"{{{tts|}}}"|#default=title{{=}}"{{{title|}}}"}}><span class="visual" aria-hidden="true">{{{1}}}</span><span class="bracket" aria-hidden="true"> (</span><span class="help">pronounced </span><i {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{lang2|}}}{{{lang|}}}=data-lang{{=}}""|{{{lang|}}}=data-lang{{=}}"{{{lang2}}}"|{{{lang2|}}}=data-lang{{=}}"{{{lang}}}"|#default=data-lang{{=}}""}}class="aural">{{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{tts|}}}{{{2|}}}{{{1|}}} = error: TTS pronunciation missing | {{{tts|}}}{{{1|}}} = {{{2|error: TTS pronunciation missing}}} | {{{2|}}}{{{1|}}} = {{{tts|error: TTS pronunciation missing}}} | #default = {{{1|error: TTS pronunciation missing}}} }}</i><span class="bracket" aria-hidden="true">)</span></{{{html|span}}}></onlyinclude></includeonly><!-- | | --><includeonly><onlyinclude>{{#if:{{{t1|}}}|<span aria-hidden="true">{{{t1|}}}</span>}}<{{{html|span}}} {{#if:{{{lang|}}}|lang="{{{lang}}}"|}} class="tts {{{class|}}}" {{#switch:{{{NoTitle|}}}|y=title{{=}}""|{{{tts|}}}{{{2|}}}{{{title|}}}=title{{=}}""|{{{tts|}}}{{{2|}}}{{{title|}}}=title{{=}}""|{{{tts|}}}{{{title|}}}=title{{=}}"{{{2|}}}"|{{{2|}}}{{{title|}}}=title{{=}}"{{{tts|}}}"|#default=title{{=}}"{{{title|}}}"}} data-arg1="{{{1|}}}" data-arg1="{{{2|}}}" data-tts="{{{tts|}}}">{{#if:{{{tts|}}}{{{2|}}}|<span class="visual" aria-hidden="true">{{{1}}}</span><span class="bracket" aria-hidden="true"> (</span><span class="help">pronounced </span><i {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{lang2|}}}{{{lang|}}}=data-lang{{=}}""|{{{lang|}}}=data-lang{{=}}"{{{lang2}}}"|{{{lang2|}}}=data-lang{{=}}"{{{lang}}}"|#default=data-lang{{=}}""}} class="aural">{{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{tts|}}}{{{2|}}} = {{{1|error: TTS pronunciation missing}}} | {{{tts|}}} = {{{2|error: TTS pronunciation missing}}} | {{{2|}}} = {{{tts|error: TTS pronunciation missing}}} }}</i><span class="bracket" aria-hidden="true">)</span>|{{{1|}}}}}</{{{html|span}}}>{{#if:{{{t3|}}}|<span aria-hidden="true">{{{t3|}}}</span>}}</onlyinclude></includeonly><!-- |
|
| |
|
| Put visually clearer version below for debug purposes: | | Put visually clearer version below for debug purposes: |
|
| |
|
| | {{#if:{{{t1|}}}|<span aria-hidden="true">{{{t1|}}}</span>}} |
| <{{{html|span}}}_ | | <{{{html|span}}}_ |
| {{#if:{{{lang|}}}|lang="{{{lang}}}"|}}_ | | {{#if:{{{lang|}}}|lang="{{{lang}}}"|}}_ |
| class="tts {{{class|}}}"_ | | class="tts {{{class|}}}"_ |
| {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} | | {{#switch: {{{NoTitle|}}} |
| | {{{tts|}}}{{{2|}}}{{{title|}}} = title{{=}}"" | | |y = title{{=}}"" |
| | {{{tts|}}}{{{title|}}} = title{{=}}"{{{2|}}}" | | |{{{tts|}}}{{{2|}}}{{{title|}}} = title{{=}}"" |
| | {{{2|}}}{{{title|}}} = title{{=}}"{{{tts|}}}" | | |{{{tts|}}}{{{title|}}} = title{{=}}"{{{2|}}}" |
| | #default = title{{=}}"{{{title|}}}" | | |{{{2|}}}{{{title|}}} = title{{=}}"{{{tts|}}}" |
| }}>
| | |#default = title{{=}}"{{{title|}}}"}} |
| <span class="visual" aria-hidden="true">{{{1}}}</span> | | data-arg1="{{{1|}}}" data-arg1="{{{2|}}}" data-tts="{{{tts|}}}"> |
| <span class="bracket" aria-hidden="true"> (</span>
| | {{#if:{{{tts|}}}{{{2|}}} |
| <span class="help">pronounced </span>
| | | <span class="visual" aria-hidden="true">{{{1}}}</span> |
| <i
| | <span class="bracket" aria-hidden="true"> (</span> |
| {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}
| | <span class="help">pronounced </span> |
| | {{{lang2|}}}{{{lang|}}} = data-lang{{=}}""
| | <i |
| | {{{lang|}}} = data-lang{{=}}"{{{lang2}}}"
| | {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} |
| | {{{lang2|}}} = data-lang{{=}}"{{{lang}}}"
| | | {{{lang2|}}}{{{lang|}}} = data-lang{{=}}"" |
| | #default = data-lang{{=}}""
| | | {{{lang|}}} = data-lang{{=}}"{{{lang2}}}" |
| }}
| | | {{{lang2|}}} = data-lang{{=}}"{{{lang}}}" |
| class="aural">
| | | #default = data-lang{{=}}"" |
| {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}
| | }}_ |
| | {{{tts|}}}{{{2|}}}{{{1|}}} = error: TTS pronunciation missing
| | class="aural"> |
| | {{{tts|}}}{{{1|}}} = {{{2|error: TTS pronunciation missing}}}
| | {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} |
| | {{{2|}}}{{{1|}}} = {{{tts|error: TTS pronunciation missing}}}
| | | {{{tts|}}}{{{2|}}} = {{{1|error: TTS pronunciation missing}}} |
| | #default = {{{1|error: TTS pronunciation missing}}}_
| | | {{{tts|}}} = {{{2|error: TTS pronunciation missing}}} |
| }}
| | | {{{2|}}} = {{{tts|error: TTS pronunciation missing}}}_ |
| </i>
| | }} |
| <span class="bracket" aria-hidden="true">)</span>
| | </i> |
| | <span class="bracket" aria-hidden="true">)</span> |
| | | {{{1|}}} |
| | }} |
| </{{{html|span}}}> | | </{{{html|span}}}> |
| | {{#if:{{{t3|}}}|<span aria-hidden="true">{{{t3|}}}</span>}} |
|
| |
|
| --> | | --> |
| Line 43: |
Line 48: |
| oddly-pronounced word demo: {{TTS/aural|tts=leet|1337|lang=en}} | | oddly-pronounced word demo: {{TTS/aural|tts=leet|1337|lang=en}} |
|
| |
|
| == Debug == | | using this template just for an HTML tag: {{TTS/aural|html=ins|ordinary phrase|title=ordinary phrase with title message}} |
|
| |
|
| <dl class="wikitable hue three data_wavebuild">
| | === number list === |
| <div class="row p135" data-return="A + B = C"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="135" data-numbersign="404" data-field="Property" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item">[[E:P135|{{#switch:
| | |
| | = {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|Wavebuilder|Wave-builder}}
| | <ol class="hue clean compound"><li><dfn class="field_geo manual flag" data-dimension="Z" data-qid="617"><abbr class="figure item-dimension" title="Z1 Basic Item / Item ID Q617" data-icon="">{{TTS|html=ins|class=flag|tts=617. (Z)|Z–617|NoTitle=y}} {{TTS|html=ins|class=swatch|tts=(Z):|[Z]}}</abbr> [[E:Q617|unique object coded as Z Item]]</dfn></li></ol> |
| | = [{{{href}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|Wavebuilder|Wave-builder}}]
| |
| | = <span class="plainlinks ">[https://research.moraleconomy.au/index.php?title=Ontology:{{{E}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|Wavebuilder|Wave-builder}}]</span>
| |
| | = <span class="plainlinks ">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|Wavebuilder|Wave-builder}}]</span>
| |
| | #default = {{Template:TTS/aural|html=span|lang=|lang2=|tts=|title=|Wavebuilder|Wave-builder}}
| |
| }}: route]]<ins class="data-structure"> [Item]</ins></dfn></dt> <dd><dl class="wikitable hue values"><dt class="term"></dt> <dd><dfn class="field_geo" data-dimension="S" data-qid="100">[[Ontology:Q617|result element]]<ins class="wave-score" data-score-string="S1 P1 Q1"> <span class="sum">[[Ontology:P158|1]]</span><span class="quilt">{{#switch:
| |
| | = {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}
| |
| | = [{{{href}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}]
| |
| | = <span class="plainlinks ">[https://research.moraleconomy.au/index.php?title=Ontology:{{{E}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}]</span>
| |
| | = <span class="plainlinks ">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}]</span>
| |
| | #default = {{Template:TTS/aural|html=span|lang=|lang2=|tts=|title=|:|-}}
| |
| }}[[Ontology:P156|1]]</span><span class="ply">{{#switch:
| |
| | = {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}
| |
| | = [{{{href}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}]
| |
| | = <span class="plainlinks ">[https://research.moraleconomy.au/index.php?title=Ontology:{{{E}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}]</span>
| |
| | = <span class="plainlinks ">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}]</span> | |
| | #default = {{Template:TTS/aural|html=span|lang=|lang2=|tts=|title=|:|-}}
| |
| }}[[Ontology:P157|1]]</span></ins></dfn></dd> <div class="wrap both"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="134" data-numbersign="404" data-field="Property" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item">[[Ontology:P134|forming from]]<ins class="data-structure"> [Item]</ins></dfn></dt><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]<ins class="wave-score" data-score-string="S1 P1 Q1"> <span class="sum">[[Ontology:P158|1]]</span><span class="quilt">{{TTS|:|-}}[[Ontology:P156|1]]</span><span class="ply">{{TTS|:|-}}[[Ontology:P157|1]]</span>{{#if: | <span class="quiltset">{{Ontology:{{{quiltset}}}}}</span> }}</ins>{{#if: | </dfn> }}</dfn></dd><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]<ins class="wave-score" data-score-string="S1 P1 Q1"> <span class="sum">[[Ontology:P158|1]]</span><span class="quilt">{{TTS|:|-}}[[Ontology:P156|1]]</span><span class="ply">{{TTS|:|-}}[[Ontology:P157|1]]</span>{{#if: | <span class="quiltset">{{Ontology:{{{quiltset}}}}}</span> }}</ins>{{#if: | </dfn> }}</dfn></dd></div> <div class="wrap one arg1"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="145" data-numbersign="404" data-field="Property data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item"><ins class="data-structure"> [Item]</ins></dfn></dt><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]<ins class="wave-score" data-score-string="S1 P1 Q1"> <span class="sum">[[Ontology:P158|1]]</span><span class="quilt">{{TTS|:|-}}[[Ontology:P156|1]]</span><span class="ply">{{TTS|:|-}}[[Ontology:P157|1]]</span>{{#if: | <span class="quiltset">{{Ontology:{{{quiltset}}}}}</span> }}</ins>{{#if: | </dfn> }}</dfn></dd></div> <div class="wrap one"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="145" data-numbersign="404" data-field="Property data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item"><ins class="data-structure"> [Item]</ins></dfn></dt><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]<ins class="wave-score" data-score-string="S1 P1 Q1"> <span class="sum">[[Ontology:P158|1]]</span><span class="quilt">{{TTS|:|-}}[[Ontology:P156|1]]</span><span class="ply">{{TTS|:|-}}[[Ontology:P157|1]]</span>{{#if: | <span class="quiltset">{{Ontology:{{{quiltset}}}}}</span> }}</ins>{{#if: | </dfn> }}</dfn></dd></div></dl></dd></div>
| |
| </dl>
| |
|
| |
|
| == Description == | | == Description == |
displayed string (pronounced displayed string, plus this text put first to be more TTS-friendly)
displayed string in older style (pronounced displayed string in older style, plus this text only displayed to TTS)
oddly-pronounced word demo: 1337 (pronounced leet)
using this template just for an HTML tag: ordinary phrase
number list[edit]
- Z–617 (pronounced 617. (Z)) [Z] (pronounced (Z):) unique object coded as Z Item
Description[edit]
This is a template for giving bits of text a TTS pronunciation.
This page is the main "guts" of Template:TTS, which needed to be broken up to properly create linking capabilities.