17 214
contributi
(Il gioco viene cercato tra quelli per il testo chiaro in minuscolo) |
(New Wikicode API support) |
||
This module creates link to games, displaying them in colored background.
Examples:
local txt = require('Modulo:Wikilib/strings')▼
local lib = require('Modulo:Wikilib/sigle')▼
local c = mw.loadData('Modulo:Colore/data')▼
{{#invoke: Blackabbrev | UL }}
▲--[=[
{{#invoke: Blackabbrev | RZS | RFVF}}
{{#invoke: Blackabbrev | HGSS | XY | ROZA }}
HINT: If you get an Errore Script, try to split an abbreviation into
smaller parts. For example:
{{#invoke: Blackabbrev | OACPtHGSS }} --> {{#invoke: Blackabbrev | OAC | Pt | HGSS }}
--]=]▼
end▼
-- Creates the links for a single abbreviation, as a single string
return table.concat(lib.backgroundAbbrevLinks(data, lib.bolden))
end
-- Dynamically generated Wikicode interface
return table.map(m, function(_, abbr)
--[[
Wikicode arguments are first processed one-by-one by makeLinks,
resulting in a table having a string for every argument, containing
all the links. These strings are then concatenated.
--]]
return lib.onMergedAbbrs(abbr, makeLinks)
▲end)
|
contributi