Cebur nuju daging

Modul:Detail

Saking Wikipédia

Dokuméntasi antuk modul puniki prasida kakardi ring Modul:Detail/doc

--[[|
-- This module produces a "For more details on this topic" link. It implements
-- the {{details}} template.
--]]

local mHatnote = require('Modul:Hatnote')
local mArguments -- lazily initialise
local mFileLink = require('Modul:File link')

local p = {}

function p.details(frame)
	mArguments = require('Modul:Arguments')
	local args = mArguments.getArgs(frame, {parentOnly = true})
	local page = args[1]
	local topic = args[2]
	if not page then
		return mHatnote.makeWikitextError(
			'aran kaca puyung',
			'Mal:Detail#Galat',
			args.category
		)
	end
	local options = {
		selfref = args.selfref,
	}
	return p._details(page, topic, options)
end

function p._details(page, topic, options)
	image = mFileLink.main{
			file = 'Crystal Clear app xmag.svg',
			size = '20px',
			link = '_BLANK',
			}
	page = mHatnote._formatLink(page)
	topic = topic or 'topik ini'
	local text = string.format('%s Antuk rincian liyanan indik %s, lihat %s.', image, topic, page)
	options = options or {}
	return mHatnote._hatnote(text, options)
end

return p