Expose wiki ID in mw.site library in Scribunto (instead of $wgDBname which is unsuitable when multiple wikis are stored on the same database; see discussion below and on the linked patch).
Original request:
Create component for $wgDBname in mw.site.
Rationale:
When providing Lua modules for multiple wiki projects, local adaptions should be supported easily. Based on a short DB name the appropriate adjustments need to be accessed.
Currently there is available only a mw.site.server field.
This requires
if mw.site.server == "//de.wikipedia.org" or
mw.site.server == "//de.wikipedia.beta.wmflabs.org" then
site = "dewiki"
end