Template:TTS: Difference between revisions
m remove recursive use of class parameter which was causing font to be tiny |
m outer-class parameter |
||
| Line 7: | Line 7: | ||
| {{{href|}}}{{{E|}}}{{{R|}}}{{{U|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}} | | {{{href|}}}{{{E|}}}{{{R|}}}{{{U|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}} | ||
| {{{E|}}}{{{R|}}}{{{U|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}] | | {{{E|}}}{{{R|}}}{{{U|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}] | ||
| {{{href|}}}{{{E|}}}{{{R|}}}{{{U|}}} = <span class="plainlinks">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span> | | {{{href|}}}{{{E|}}}{{{R|}}}{{{U|}}} = <span class="plainlinks {{{outer-class|}}}">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span> | ||
| {{{href|}}} = <span class="plainlinks">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{PAGENAMEE:{{{E}}}}}}}{{#if:{{{U|}}}|User:{{PAGENAMEE:{{{U}}}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span> | | {{{href|}}} = <span class="plainlinks {{{outer-class|}}}">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{PAGENAMEE:{{{E}}}}}}}{{#if:{{{U|}}}|User:{{PAGENAMEE:{{{U}}}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}}]</span> | ||
| #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}} | | #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|t1={{{t1|}}}|t3={{{t3|}}}|{{{1|}}}|{{{2|}}}}} | ||
}} | }} | ||
| Line 37: | Line 37: | ||
* [[Template:TTS/aural]] - this renders basically the whole Template except the optional links, so if you're looking for the Template source go here. | * [[Template:TTS/aural]] - this renders basically the whole Template except the optional links, so if you're looking for the Template source go here. | ||
== Parameters == | |||
* <code>outer-class</code> - sets the class on the outermost container outside the link. | |||
[[Category:Templates for markup]] [[Category:Templates related to localization]] | [[Category:Templates for markup]] [[Category:Templates related to localization]] | ||
Revision as of 22:24, 22 March 2026
Demo
oddly-pronounced word demo:
thesis portal demo: thesis portal entry
Description
This is a template for giving bits of text a TTS pronunciation.
Earlier, aria-label was mistakenly used for this, but it turns out that text substitution for speaking-machines is something that is not currently well-supported in HTML. (This can be a problem when it comes to the temptation to turn everything into "AI" — understanding that every piece of text written by humans is made of arbitrary signifiers, it is incredibly tempting to simply build a dynamic signifier-interpreting agent that actively learns all the exceptions to every rule instead of properly building a system where "dumb" programs or bits of data can easily pass along less-ambiguous messages to each other.)
Inner templates
- Template:TTS/aural - this renders basically the whole Template except the optional links, so if you're looking for the Template source go here.
Parameters
outer-class- sets the class on the outermost container outside the link.