「模組:See also」:修訂間差異

大小無變化 、​ 2021年8月3日 (星期二)
無編輯摘要
imported>DC
(建立內容為「--[[ -- This module produces a "See also: a, b and c" link. It implements the -- template {{see also}}. --]] local mHatnote = require('Module:Hatnote') local mTa…」的新頁面)
 
imported>DC
無編輯摘要
 
第27行: 第27行:
if not pages[1] then
if not pages[1] then
return mHatnote.makeWikitextError(
return mHatnote.makeWikitextError(
'未指定页面名称',
'未指定頁面名稱',
'Template:See also#错误',
'Template:See also#錯誤',
args.category
args.category
)
)
第40行: 第40行:


function p._seeAlso(options, ...)
function p._seeAlso(options, ...)
local altphrase = options and options.altphrase or '参见'
local altphrase = options and options.altphrase or '參見'
local links = mHatnote.formatPageTables(...)
local links = mHatnote.formatPageTables(...)
links = mw.text.listToText(links)
links = mw.text.listToText(links)
匿名用戶