|
@@ -972,13 +972,14 @@
|
|
|
<code>count</code> times (e.g. "%repeat<{page-title}|3>" to repeat the page title 3
|
|
<code>count</code> times (e.g. "%repeat<{page-title}|3>" to repeat the page title 3
|
|
|
times).
|
|
times).
|
|
|
</li>
|
|
</li>
|
|
|
- <li><code>%index-of<value|search></code>: returns the index of the first occurrence of
|
|
|
|
|
- <code>search</code> in <code>value</code> (e.g. "%index-of<{page-title}|>" to return the
|
|
|
|
|
- index of the first occurrence of the character ">" in the page title).
|
|
|
|
|
- </li>
|
|
|
|
|
- <li><code>%last-index-of<value|search></code>: returns the index of the last occurrence of
|
|
|
|
|
- <code>search</code> in <code>value</code> (e.g. "%last-index-of<{page-title}|>" to return
|
|
|
|
|
- the index of the last occurrence of the character ">" in the page title).
|
|
|
|
|
|
|
+ <li><code>%index-of<value|search|fromIndex></code>: returns the index of the first occurrence
|
|
|
|
|
+ of <code>search</code> in <code>value</code> (e.g. "%index-of<{page-title}|"Title">" to
|
|
|
|
|
+ return the index of the first occurrence of the string "Title" in <code>page-title</code>).
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li><code>%last-index-of<value|search|fromIndex></code>: returns the index of the last
|
|
|
|
|
+ occurrence of <code>search</code> in <code>value</code> (e.g.
|
|
|
|
|
+ "%last-index-of<{page-title}|"Title">" to return the index of the last occurrence of the
|
|
|
|
|
+ string "Title" in <code>page-title</code>).
|
|
|
</li>
|
|
</li>
|
|
|
<li><code>%length<value></code>: returns the length of the <code>value</code> (e.g.
|
|
<li><code>%length<value></code>: returns the length of the <code>value</code> (e.g.
|
|
|
"%length<{page-title}>" to return the length of the page title).
|
|
"%length<{page-title}>" to return the length of the page title).
|