มอดูล:Details
ไปยังการนำทาง
ไปยังการค้นหา
คู่มือการใช้งานมอดูล[สร้าง]
![]() | นี่เป็นมอดูลที่ถูกป้องกันถาวรเนื่องจากมีความเสี่ยงสูง กรุณาอภิปรายการเปลี่ยนแปลงใด ๆ ทางหน้าคุย คุณอาจส่งคำขอแก้ไขไปยังผู้ดูแลระบบเพื่อให้แก้ไขได้หากเป็นการแก้ไขที่ไม่มีการคัดค้านหรือมีความเห็นพ้องสนับสนุน คุณยังสามารถขอให้เลิกป้องกันหน้าได้ |

คุณอาจจะต้องการสร้างคู่มือการใช้งานของมอดูลนี้ ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของมอดูลนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของมอดูลนี้ |
--[[
-- This module produces a "For more details on this topic" link. It implements
-- the {{details}} template.
--]]
local mHatnote = require('Module:Hatnote')
local mArguments -- lazily initialise
local p = {}
function p.details(frame)
mArguments = require('Module:Arguments')
local args = mArguments.getArgs(frame, {parentOnly = true})
local page = args[1]
local topic = args[2]
if not page then
return mHatnote.makeWikitextError(
'no page name specified',
'แม่แบบ:Details#Errors',
args.category
)
end
local options = {
selfref = args.selfref,
}
return p._details(page, topic, options)
end
function p._details(page, topic, options)
page = mHatnote._formatLink(page)
topic = topic or 'หัวข้อนี้'
local text = string.format('สำหรับรายละเอียดเพิ่มเติมเกี่ยวกับ%s โปรดดู %s', topic, page)
options = options or {}
options.extraclasses = 'boilerplate seealso'
return mHatnote._hatnote(text, options)
end
return p