模块:Citation/CS1:修订间差异
imported>Antigng ep |
imported>Cdip150 use label instead of overlinking which would cause affects to special:whatlinkshere |
||
| 第490行: | 第490行: | ||
url_string = mw.uri.encode( url_string ); | url_string = mw.uri.encode( url_string ); | ||
end | end | ||
return mw.ustring.format( ' | return mw.ustring.format( '[%s%s%s \<span title\=\"%s\"\>%s%s%s\<\/span\>]', | ||
options.prefix, url_string, options.suffix or "", | |||
options.link, options.label, options.separator or " ", | options.link, options.label, options.separator or " ", | ||
mw.text.nowiki(options.id) | mw.text.nowiki(options.id) | ||
); | ); | ||
| 第917行: | 第917行: | ||
-- Formats a wiki style internal link | -- Formats a wiki style internal link | ||
local function internal_link_id(options) | local function internal_link_id(options) | ||
return mw.ustring.format( '[[%s | return mw.ustring.format( '[[%s%s%s|\<span title\=\"%s\"\>%s\<\/span\>%s%s]]', | ||
options.prefix, options.id, options.suffix or "", | |||
options.link, options.label, options.separator or " ", | options.link, options.label, options.separator or " ", | ||
mw.text.nowiki(options.id) | mw.text.nowiki(options.id) | ||
); | ); | ||