Module:Article history/doc
Appearance
![]() | This is a documentation subpage for Module:Article history. It may contain usage information, categories and other content that is not part of the original module page. |
This module implements Template:Article history (edit | talk | history | links | watch | logs). It has a configuration module at Module:Article history/config (edit | talk | history | links | watch | logs), and a Category class at Module:Article history/Category (edit | talk | history | links | watch | logs).
Object documentation
ArticleHistory
ArticleHistory objects have the following public properties:
args
- a table of the arguments passed to the module by the user.currentTitle
- the title object for the current page.cfg
- the module config table. This is taken from the config module at Module:Article history/config, but is structured slightly differently due to preprocessing by the main module. Any table with an "aliases" subtable has this table removed, and the aliases are added as keys that the table can be accessed from. Conceptually, the config table{ foo = {"a value", aliases = {"bar", "baz"} } }
would become{foo = {"a value"}, bar = {"a value"}, baz = {"a value"} }
. (Although "bar" and "baz" would actually be references to the "foo" table, rather than completely new tables.)