Jump to content

Module:TestSitelinkAspects: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with 'local mw = require('mw') local entity = mw.wikibase.getEntity() local props = entity and entity.claims or {} local result = {} for pid, _ in pairs(props) do table.insert(result, "{{#statements:" .. pid .. "}}") end return table.concat(result, "\n")'
Tag: Recreated
 
No edit summary
Line 1: Line 1:
local mw = require('mw')
local mw = require('mw')
local entity = mw.wikibase.getEntity()
local entity = mw.wikibase.getSitelink("Q1", "enwiki")
local props = entity and entity.claims or {}

local result = {}
for pid, _ in pairs(props) do
table.insert(result, "{{#statements:" .. pid .. "}}")
end

return table.concat(result, "\n")

Revision as of 15:02, 27 February 2025

local mw = require('mw')
local entity = mw.wikibase.getSitelink("Q1", "enwiki")