Editing
Module:Article history/doc
(section)
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Action === Action objects generate rows detailing a single action in the history of an article, e.g. a Featured Article candidacy. They inherit all properties and methods from [[#Row|Row]] objects, including the [[#Message|Message]] mixin methods. They have the following additional properties: * <code>paramNum</code> - the parameter number for that action. Used to format error messages. * <code>id</code> - the action ID. For example, featured article candidacies have an ID of "FAC". There is only one ID for each kind of action. * <code>actionCfg</code> - the action config table for the object's action ID. * <code>link</code> - the link set for the action, or the current talk page name if not set. * <code>resultId</code> - the ID for the result of the action. For example, featured article candidates that were promoted have a resultId of "promoted". There is only one resultId for each possible result of an action. * <code>date</code> - the date the action was carried out, or the 'action-date-missing' message if a date was not set. * <code>oldid</code> - the oldid for the action. Nil if not set. Action objects have the following additional methods: * <code>Action:getParameter(key)</code> - finds the original parameter name for the key <var>key</var> that was passed to Action.new. * <code>Action:getName(articleHistoryObject)</code> - gets the name of the action. This method must be passed an ArticleHistory object. * <code>Action:getResult(articleHistoryObject)</code> - gets the result text of the action. This method must be passed an ArticleHistory object.
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Module
Discussion
Read
Edit source
History
Page actions
Module
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information