Difference between revisions of "Template:Italics after"
Jump to navigation
Jump to search
imported>Hyacinth (==See also== *{{tl|Dab italics}} *{{tl|Italics correction}} *{{tl|Talk header italics}}) |
imported>MSGJ m (add doc template, tweak whitespace) |
||
Line 1: | Line 1: | ||
− | + | {{#ifeq:{{{2|0}}}|0 | |
− | + | |''{{{1}}}'' | |
− | + | |{{str left|{{{1}}}|{{{2}}}}} ''{{str right|{{{1}}}|{{#expr:{{{2}}}+1}}}}'' | |
− | + | }}<noinclude> | |
− | + | {{documentation}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 09:14, 21 November 2016
{{{1}}}
Usage
This template takes two parameters, a string S and a number N; it adds italic markup to S, except for the first N characters. It will work correctly only if the N+1st character is a space (and may also be subject to length and character set restrictions).
This is used as a subtemplate of {{Italic title prefixed}}.
Example
- These two examples produce different results:
{{Italics after|123 456789|3}}
→123 456789{{Italics after|123456789|3}}
→123 56789
See also
The above documentation is transcluded from Template:Italics after/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. |