请输入您要查询的百科知识:

 

词条 Module:Sandbox/pppery/forSee hatnote
释义 -- module for hatnotes of the style "for x, see y" (I wish I could think of a better name for this (ex: About)-- note: For confusingly isn't this style of hatnote, but instead is a "sentence list" style of hatnote

local p = {}

local mHatnoteList = require("Module:Hatnote list")

local mHatnote = require("Module:Hatnote")

local yesno = require("Module:yesno")

local mArguments = require("Module:arguments")

function p.hatnote(frame)

local args = mArguments.getArgs(frame, {parentOnly = true})

local from = tonumber(frame.args.from) or 1

local fsOptions = {}

if yesno(frame.args.allowText) then

fsOptions.extratext = args.text

end

local forText = mHatnoteList._forSee(args, from, fsOptions)

local text = string.format("%s%s", frame.args[1], forText)

local hnOptions = {

extraclasses = args.extraclasses,

selfref = args.selfref

}

return mHatnote._hatnote(text, hnOptions)

end

return p

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 19:53:46