Template:Subst/doc

Usage
|subst=subst


 * , = optional; use arbitrary text that can depend on parameters
 * = use the name of the template you are putting this in
 * = these can depend on "themselves"

On every save of the transcluding page, the template will prepend and append the respective text to its call and recompute its parameters, while remaining on the page.

Example
Example template "Fibonacci": , Fibonacci|subst=subst Example page: Fibonacci series: 1 Every time you save the page, the template adds one number to the Fibonacci series. The next saves will automatically look like this: Fibonacci series: 1,1 Fibonacci series: 1,1,2 Fibonacci series: 1,1,2,3 Fibonacci series: 1,1,2,3,5 Fibonacci series: 1,1,2,3,5,8