Extension:Variables: Difference between revisions

m
you can't "slow down" the wiki with template calls because of the cache
m (→‎Examples: oops)
m (you can't "slow down" the wiki with template calls because of the cache)
 
Line 1: Line 1:
The '''Variables''' extension allows you to define a variable on a page, use it later in that same page or included templates, change its value, possibly to a value given by an expression in terms of the old value, etc.
The '''Variables''' extension allows you to define a variable on a page, use it later in that same page or included templates, change its value, possibly to a value given by an expression in terms of the old value, etc.


It is much like a template, only very lightweight and scoped to only a single page, so you can use many variables on a page without slowing down the wiki with huge numbers of templates.
It is much like a template, only very lightweight and scoped to only a single page, so you can use many variables on a page without complicating the wiki with huge numbers of templates.


== Assigning a value to a variable ==
== Assigning a value to a variable ==
6,906

edits