Template:Custom substitution
{{{2}}}
Usage
This template allows a custom substitution to be made based on user preferences set in the monobook.css. For example, the "long s" (ſ) can be chosen to render as "ſ" or as "s" using this template.
The template syntax is:
{{custom substitution | original character (eg ſ) | potential replacement character (eg s) | substitution category (eg archaic-typography) }}
This template uses the CSS display command to blank one option or the other, according to the users wishes. The first parameter is the literal character that may not be wanted (eg. "ſ"), and the second is the possible replacement (eg. "s").
The third parameter is a "category" parameter, to allow different classes of substitutions to be switched independently (eg. "archaic-typography").
In all cases, the first parameter is shown in the page namespace, as the character should match the one on the page.
In other namespaces the default behaviour is to blank the first parameter and show the second. This is the behaviour you will see if you do not have a monobook.css entry. The additions to the monobook.css required to show the first parameter and blank the second one is:
.selective-replace-category-1{ display: inline !important; } .selective-replace-category-2{ display: none !important; }
Replace the category with the desired category name.
Available substitutions
The list below gives the default (i.e. substituting) behaviours for the templates using this one. Please add new templates here.
archaic-typography
If the character in these brackets [ss] is "ß", you have the necessary monobook options to disable substitution of this category. If it is "ss", you do not.
The above documentation is transcluded from Template:Custom substitution/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |