Template:Load data/doc
Jump to navigation
Jump to search
Description
This template is used to load variable data from a file.
In addition to all the variables from the file being loaded, two additional variables are set by this template:
- var:DataFile will be contain with the location of the correct data file (whether or it was loaded or not)
- var:DataLoaded will be set to "yes" or void, depending on if the data was loaded.
Syntax
Type {{Load data|<optional page name>|<optional namespace>}}
.
If no location is provided, the template attempts to load PAGENAME/Data. Otherwise, it attempts to load Location/Data or, if that does not exist, it will load Location directly.
If the page name is provided without a namespace, it is assumed to be in main. For pages outside of main, the appropriate namespace should be included. For example, you might use {{Load data|MyUsername/Custom Object|User}}
to load a data page in your userspace.