Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Guild of Archivists
Search
Editing
Module:Code review entry
From Guild of Archivists
Namespaces
Module
Discussion
More
More
Page actions
Read
Edit
History
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!
local Gerrit = require( 'Module:Gerrit' ) local description = function ( desc, done ) local isdone = ( done == 'done' ) local entry = '' if isdone then entry = entry .. '<s>' end entry = entry .. desc if isdone then entry = entry .. '</s>' end return entry end local linkhead = function ( link, done ) local isdone = ( done == 'done' ) local entry = '' if isdone then entry = entry .. '<s>' end entry = entry .. link if isdone then entry = entry .. '</s>' end return entry end local dl = function ( link, desc, done ) local entry = '; ' origurl = link matches = string.match( origurl, 'https?%:%/%/gerrit%.wikimedia%.org%/r%/(%d+)' ) constraintmatches = string.match( origurl, 'https?%:%/%/gerrit%.wikimedia%.org%/r%/%#%/q%/(.*),n,z' ) if matches ~= nil then link = Gerrit._link_to_gerrit_number( matches ) elseif constraintmatches ~= nil then local ownermatch = string.match( constraintmatches, 'owner%:([^%+ ]*)' ) local projectmatch = string.match( constraintmatches, 'project%:([^%+ ]*)' ) local statusmatch = string.match( constraintmatches, 'status%:([^%+ ]*)' ) local constraints = {} if ownermatch ~= nil then constraints.owner = ownermatch end if projectmatch ~= nil then constraints.project = projectmatch end if statusmatch ~= nil then constraints.status = statusmatch end link = Gerrit._link_to_gerrit_constraints( constraints ) end return '; ' .. linkhead( link, done ) .. ' : ' .. description( desc, done ) end return { _dl = dl, dl = function ( d ) link = d.args[1] desc = d.args[2] done = d.args[3] return dl( d.args[1], d.args[2], d.args[3] ) end }
Summary:
Please note that all contributions to Guild of Archivists 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
GoArch:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Code review entry/doc
(
edit
)
Navigation
Navigation
Main Page
Random page
Categories
All pages
Recent changes
Resources
Dictionaries
Reference material
Utilities
Community
Forums
Jalak Game Directory
Projects
Apocrypha
Unexplored Branches
All projects
Contribute
Stubs
Wanted
Cleanup
Dead ends
Image requested
Help
Help
Guide
Policies
Wiki tools
Wiki tools
Special pages
Page values
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs