词条 | 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条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。