Template:I: Difference between revisions
Appearance
m disable TTS if parameter tts missing |
m spacing |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{{tts|}}}{{{href|}}}{{{lang|}}}|{{TTS|html=i|lang={{{lang|}}}|lang2={{{lang2|}}}|class={{{class|}}} {{#if:{{{caps|}}}|caps}}|title={{{title|}}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}|<i>{{{1|}}}</i>}} | <includeonly><onlyinclude>{{#if:{{{tts|}}}{{{href|}}}{{{lang|}}}|{{TTS|html=i|lang={{{lang|}}}|lang2={{{lang2|}}}|class={{{class|}}} {{#if:{{{caps|}}}|caps}}|title={{{title|}}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}|<i>{{{1|}}}</i>}}</onlyinclude></includeonly><!-- | ||
</onlyinclude></includeonly><!-- | |||
--> | --> | ||
== Demo == | == Demo == | ||
Latest revision as of 21:20, 24 October 2025
Demo[edit]
This is an important demo
Description[edit]
This is a template meant to mirror the HTML i tag. The purpose of it is basically to subtly remind editors that wikitext is not HTML and needs to be highly readable as well as standardized.
Parameters[edit]
class- For customizing the CSS classname associated with the tag.caps- Whether to capitalize text. Don't just capitalize the text, because if you do it this way readers can un-capitalize it through Preferences.tts- Pronunciation for highlighted text. Specify this first so that if screen readers are attempting to edit a page the TTS-friendly text is said before the "irrelevant" visual text which will be not be read as deleted.1- Text to be highlighted. This will usually be shown in italics.
Internal templates[edit]
- Template:TTS - used to specify HTML tag plus pronunciation.