Jump to content

Template:TTS/aural: Difference between revisions

From Philosophical Research
m expansion 2
Tag: Reverted
m NoTitle parameter
 
(5 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><{{{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|}}}"}}><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><!--


Put visually clearer version below for debug purposes:
Put visually clearer version below for debug purposes:
Line 7: Line 7:
{{#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>
     <span class="visual" aria-hidden="true">{{{1}}}</span>
     <span class="bracket" aria-hidden="true"> (</span>
     <span class="bracket" aria-hidden="true"> (</span>
Line 43: Line 43:
oddly-pronounced word demo: {{TTS/aural|tts=leet|1337|lang=en}}
oddly-pronounced word demo: {{TTS/aural|tts=leet|1337|lang=en}}


== Debug ==
=== number list ===


<ins class="wave-score" data-score-string="S1 P1 Q1"> <span class="sum">[[Ontology:P158|1]]</span><span class="quilt">{{#switch:
{{HueCSS}}
|  = {{Template:TTS/aural|html=span|class=|lang=|lang2=|tts=|title=|:|-}}
<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=|:|-}}]
|  = <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>


== Description ==
== Description ==

Latest revision as of 07:23, 9 September 2025

Demo[edit]

pronounced displayed string

pronounced displayed string in older style

oddly-pronounced word demo: pronounced 1337

number list[edit]

  1. pronounced Z–617 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.