Jump to content

Template:TTS/aural: Difference between revisions

From Philosophical Research
m ruby tag
fully remove title attribute from NoTitle
 
Line 1: Line 1:
{{HueCSS}}<!--
{{HueCSS}}<!--
--><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|}}}{{{title|}}} = title{{=}}"{{{2|}}}"|{{{2|}}}{{{title|}}} = title{{=}}"{{{tts|}}}"|#default = title{{=}}"{{{title|}}}"}}data-arg1="{{{1|}}}" data-arg1="{{{2|}}}" data-tts="{{{tts|}}}">{{#if:{{{tts|}}}{{{2|}}} | <ruby><span class="visual" aria-hidden="true">{{{1}}}</span><rp class="bracket" aria-hidden="true"> (</rp><rp class="help">pronounced </rp><rt {{#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}}} }}</rt><rp class="bracket" aria-hidden="true">)</rp></ruby> | {{{1|}}} }}</{{{html|span}}}>{{#if:{{{t3|}}}|<span aria-hidden="true">{{{t3|}}}</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 = data-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|}}} | <ruby><span class="visual" aria-hidden="true">{{{1}}}</span><rp class="bracket" aria-hidden="true"> (</rp><rp class="help">pronounced </rp><rt {{#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}}} }}</rt><rp class="bracket" aria-hidden="true">)</rp></ruby> | {{{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:
Line 9: Line 9:
class="tts {{{class|}}}"_
class="tts {{{class|}}}"_
{{#switch: {{{NoTitle|}}}
{{#switch: {{{NoTitle|}}}
   |y = title{{=}}""
   |y = data-title{{=}}""
   |{{{tts|}}}{{{2|}}}{{{title|}}} = title{{=}}""
   |{{{tts|}}}{{{2|}}}{{{title|}}} = title{{=}}""
   |{{{tts|}}}{{{title|}}} = title{{=}}"{{{2|}}}"
   |{{{tts|}}}{{{title|}}} = title{{=}}"{{{2|}}}"

Latest revision as of 03:40, 14 February 2026

Demo[edit]

pronounced displayed string, plus this text put first to be more TTS-friendly

pronounced displayed string in older style, plus this text only displayed to TTS

oddly-pronounced word demo: pronounced leet

using this template just for an HTML tag: ordinary phrase

number list[edit]

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