Module:Statement: Difference between revisions

Jump to navigation Jump to search
- Lexeme
m (1 revision imported: import template e moduli da Wikidata)
(- Lexeme)
 
Line 1: Line 1:
local get_label = require('Module:Wikidata label')._getLabel
local get_label = require('Module:Wikidata label')._getLabel
local getLemmaById = require('Module:Lexeme').getLemmaById


local function format_id(id)
local function format_id(id)
Line 12: Line 11:
if thing:match('^[QP]?%d+$') then
if thing:match('^[QP]?%d+$') then
return format_id(thing)
return format_id(thing)
elseif thing:match('^L?%d+$') then
return '[[Lexeme:' .. thing .. '|' .. getLemmaById(thing) .. ' <small>(' .. thing .. ')</small>]]'
end
end
end
end

Navigation menu