模块:Citation/CS1:修订间差异
imported>Liangent 无编辑摘要 |
imported>Liangent UndoRange: 32762866 ~ 33005452 |
||
| 第696行: | 第696行: | ||
-- Escape sequences for content that will be used for URL descriptions | -- Escape sequences for content that will be used for URL descriptions | ||
function safeforurl( str ) | function safeforurl( str ) | ||
do return str end -- LOCAL HACK https://en.wikipedia.org/w/index.php?title=Module_talk:Citation/CS1&diff=552318417&oldid=552202448 | |||
if str:match( "%[%[.-%]%]" ) ~= nil then | if str:match( "%[%[.-%]%]" ) ~= nil then | ||
table.insert( z.message_tail, { seterror( 'wikilink_in_url', {}, true ) } ); | table.insert( z.message_tail, { seterror( 'wikilink_in_url', {}, true ) } ); | ||
| 第1,678行: | 第1,679行: | ||
if is_set(Chapter) then | if is_set(Chapter) then | ||
Chapter = '-{' .. xLCFlags .. '|' .. Chapter .. '}-' | Chapter = '-{' .. xLCFlags .. '|' .. Chapter .. '}-' | ||
end | end | ||
if is_set(Title) then | if is_set(Title) then | ||
Title = '-{' .. xLCFlags .. '|' .. Title .. '}-' | Title = '-{' .. xLCFlags .. '|' .. Title .. '}-' | ||
end | end | ||
-- END LOCAL | -- END LOCAL | ||