Template:B: Difference between revisions
Appearance
copy from Template:i |
m allow basic tag |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{TTS|html=b|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=b|lang={{{lang|}}}|lang2={{{lang2|}}}|class={{{class|}}} {{#if:{{{caps|}}}|caps}}|title={{{title|}}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}|<b>{{{1|}}}</b>}}</onlyinclude></includeonly><!-- | ||
easier to read version: | |||
{{#if:{{{tts|}}}{{{href|}}}{{{lang|}}} | |||
|{{TTS|html=b|lang={{{lang|}}}|lang2={{{lang2|}}}|class={{{class|}}} {{#if:{{{caps|}}}|caps}}|title={{{title|}}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}} | |||
|<b>{{{1|}}}</b>}} | |||
--> | --> | ||
== Demo == | == Demo == | ||
Latest revision as of 02:13, 9 November 2025
Demo[edit]
This is an important demo
Description[edit]
This is a template meant to mirror the HTML b 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 bold.
Internal templates[edit]
- Template:TTS - used to specify HTML tag plus pronunciation.