Template:I: Difference between revisions
Appearance
copy from Template:Thingamabob |
m disable TTS if parameter tts missing |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{TTS|html=i|lang={{{lang|}}}|lang2={{{lang2|}}}|class={{{class|}}} {{#if:{{{caps|}}}|caps}}|title={{{title|}}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}</onlyinclude></includeonly><!-- | <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><!-- | |||
--> | --> | ||
== Demo == | == Demo == | ||
Revision as of 21:19, 24 October 2025
Demo
This is an important
demo
Description
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
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
- Template:TTS - used to specify HTML tag plus pronunciation.