Difference between revisions of "Module:Sandbox/Galobtter/Related changes/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Wbm1058
(change from Dinosaur to a specfic genus of dinosaur, so that there are not too many expensive parser function calls.)
(Add tfd notice)
Line 1: Line 1:
 
+
{{Template for discussion/dated|action=|page=Related Changes|link=Wikipedia:Templates for discussion/Log/2019 January 13#Module:Related Changes|type=module|bigbox=yes}}
 
{{module rating|pre-alpha}}<!-- delete if this is not desirable -->
 
{{module rating|pre-alpha}}<!-- delete if this is not desirable -->
  
The module “{{BASEPAGENAME}}” is a Lua counterpart to [[Special:RecentChangesLinked|Special:Related changes]].  Unlike that feature, the module ''only'' has access to the ''last'' revision date and user.  However, it can be run through filters so that only the articles that have gone longest without being edited are listed, only IP users are listed, bots are omitted, etc.  ( That is, it can be run through those filters once that part is written!  Present status is "proof of concept" only.)  
+
The module “{{BASEPAGENAME}}” is a Lua counterpart to [[Special:RecentChangesLinked|Special:Related changes]].  Unlike that feature, the module ''only'' has access to the ''last'' revision date and user.  However, it can be run through filters so that only the articles that have gone longest without being edited are listed, only IP users are listed, bots are omitted, etc.  ( That is, it can be run through those filters once that part is written!  Present status is "proof of concept" only.)
  
 
== Usage ==
 
== Usage ==

Revision as of 18:21, 13 January 2019

Template:Template for discussion/dated

The module “Sandbox/Galobtter/Related changes” is a Lua counterpart to Special:Related changes. Unlike that feature, the module only has access to the last revision date and user. However, it can be run through filters so that only the articles that have gone longest without being edited are listed, only IP users are listed, bots are omitted, etc. ( That is, it can be run through those filters once that part is written! Present status is "proof of concept" only.)

Usage

To find related changes for Velociraptor: {{#invoke:Sandbox/Galobtter/Related changes|main|Velociraptor}}

Name Last edited Last editor

Parameters

The text below assumes that functions are declared as

function p.function_name( frame )
  • Positional parameters – the value of frame.args[1] is passed after function name and vertical bar, the value of frame.args[2] is passed after the value of frame.args[1] and vertical bar, and so on.
  • Named parameters (specify them) – the same name=value syntax as in MediaWiki templates, are accessible inside the function as frame.args["name"].

Examples

Name Last edited Last editor