Template:Auto change/doc

Revision as of 02:08, 29 September 2007 by C Michael Gibson (talk | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This is the documentation page for Template:Auto change/doc.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.
Information icon.svg This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

This template is intended to add informaton to a page after a certain amount of time has passed or at a specific date and time.


This template must be substituted.

{{subst:auto change |time= |before= |after= |purgelink= |linebreak= }}

Required field(s)

|before : The information to be shown before the deadline. Deafult is nothing.


|after : The information to be shown after the deadline. Default is nothing.

Optional fields

|time : The amount of time you wish to go before adding the information, or a specific date and time. Default is +7 days. For examples, see ParserFunctions #time (second variable).

|purgelink : Set to |purgelink=yes to add a purgelink to the right of where the template is substituted. This can be useful to refresh the page (see below). Default is disabled.

|linebreak : Set to |linebreak=yes to add <br clear="right" /> between the purgelink and the rest of the template. Only works if purgelink is enabled. Default is disabled.


{{subst:auto change |time=6 hours |before='''n00b''' |after='''1337''' }}

will result in "n00b" 0–5.99 hours after the template was added, and in "1337" 6— hours after the template was added.


Changes made when the function passes the deadline may not be visible at first, then a purge may be needed.