The string-inserter Template:Strloc insert inserts a text string into another string at a specified location, or adds it at the end.
| This is a documentation subpage for Template:Strloc insert. It may contain usage information, categories and other content that is not part of the original template page. |
The string-inserter Template:Strloc insert inserts a text string into another string at a specified location, or adds it at the end.
Returns string1 with string2 inserted at location strloc=n, where n=1 denotes the start of the string (prepending). If strloc <= 0 then string2 is appended at the end of string1. The parameter strloc can be a math formula, such as: strloc={{{len}}}-2, or strloc=abs(-2*5)+6.
The following show various uses:
The text at the end (after string2) is subject to the limitations of Template:Str right. Spaces around the inserted string are limited to 1 space, before or after:
Spaces beyond the inserted string might be encoded as " " rather than being real spaces.
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.