Modul:Detail
Dari Wiki bkkbn jogja
Dokumentasi untuk modul ini dapat dibuat di 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( 'nama halaman kosong', 'Templat: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 Untuk detail lebih lanjut tentang %s, lihat %s.', image, topic, page) options = options or {} return mHatnote._hatnote(text, options) end return p