टेम्पलेट:Chop head and tail/doc
ई टेम्पलेट:Chop head and tail के प्रलेखन उपपन्ना ह। इहाँ उपयोग खातिर जानकारी, श्रेणी सभ आ अउरी दूसर सामग्री मौजूद बा जेवन की मूल टेम्पलेट पन्ना के हिस्सा ना हवे। |
Usage
संपादन करीं{{Chop head and tail|<string>|<number>}}
This template removes <number> characters from the start and end of <string>.
{{Chop head and tail|12345654321|3}}
gives 45654.
Unlinking
संपादन करींThis template can be used to "unlink" a linked parameter.
{{Chop head and tail|[[Einstein]]|2}}
results in Einstein.
Because the default value of <number> is 2, this can be shortened to
.
{{Chop head and tail|[[Einstein]]}}
Limitations
संपादन करीं- Expensive.
- When used on strings with characters that carry a meaning in wiki-layout, this template will interpret the character as a layout instruction (bugzilla:12974). For example,
{{Chop head and tail|[[123;456]]}}
renders as
123;456 - Supports the character set as defined by {{Str index/getchar}}, so that e.g.
{{Chop head and tail|[[Nürnberg]]}}
renders correctly as Nürnberg. However, not all characters are in this set.
इहो देखल जाय
संपादन करीं- {{Unlink}}