Changes

Jump to: navigation, search

Dungeons and Dragons Wiki:Programming Templates

171 bytes added, 04:28, 10 February 2011
m
Factoids++
The separating token cannot be modified or hidden. It is probably best to use ", " as the separating token.
 
== String Functions ==
 
=== #len ===
 
<nowiki>{{#pos:string|search term|offset}}</nowiki>
== Useful Escaping ==
<nowiki>&amp;#91; and &amp;#93;</nowiki> display as <nowiki>[ and ]</nowiki> , respectively, but won't get parsed as wiki links.
 
<nowiki>{{|}} and {{=}}</nowiki> return the pipe and equals sign respectively.
== Substitution Testing ==
If you add the string ''subst:'' before the name of a transcluded page, it will replace the transclusion call with the text of the transclusion at the time of page-creation. This is useful for when the contents of a template don't cause premature end of another template call. It is also useful for seeing what is truly parsed when looking for why an error is occurring.
emailconfirmed, Administrators
8,864
edits

Navigation menu