×
Create a new article
Write your page title here:
We currently have 142 articles on The Sonic the Hedgehog Wiki. Type your article name above or click on one of the titles below and start writing!



The Sonic the Hedgehog Wiki
Revision as of 22:06, 22 December 2024 by Sonic City (talk | contribs) (Created page with "<code style="border:{{{border|{{{b|thin solid var(--border-color-base, #caa)}}}}}};background-color:{{{bg-color|{{{bg|var(--color-inverted, white)}}}}}};color:{{#if:{{{bg|}}}||inherit|{{Greater color contrast ratio|bg}}}};padding:1px 2px 0 1px;margin:0 2px 0 1px;white-space:nowrap;{{{style|}}}">{{replace|{{replace|{{replace|{{replace|{{replace|<includeonly>⊗ϑ{{{1|}}}⊗ϑ</includeonly><noinclude>value</noinclude>| |{{{space|{{{sp| }}}}}}}}|#|#}}|*|*}}|:|&...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Replace


[edit]

Documentation

Template:Tlr Provides a lightly bordered box to highlight param values on Template documentation pages. Especially useful in cases where values may have leading or trailing blanks, or multiple embedded blanks.

Usage[edit source]

{{param value|value}}

Parameters[edit source]

There is one required positional parameter for the value, and four optional params: three for styling the display, and one replacement parameter for dealing with how to render a blank space:

|1=Template:Sndthe value to be highlighted; required (no default)
|border=Template:Sndmay be used to set border attributes. default: Template:Replace. Alias: |b=.
|bg-color=Template:Sndmay be used to set background-color. default: Template:Replace. Alias: |bg=.
|style=Template:Snd may be used to set any CSS style attributes, with one or more semicolon-separated Template:Replace pairs. default:none.
|space=Template:Snd may be used to make spaces visible. Alias: |sp=. See #Making spaces visible below.

Note on special characters: if the value to be highlighted contains an equal sign, it must be escaped: use {{=}} instead of a bare equal sign character.

Examples[edit source]

Making spaces visible[edit source]

You may make space characters visible by replacing them with any character you choose using param |space=. Here are some characters that have been historically used for this purpose. In these examples, there are two spaces between one and two:

See also[edit source]

Lua error in package.lua at line 80: module 'Module:Navbar' not found.