317
редагувань
starcitizen>Alistair3149 (Sync with upstream) |
(Створена сторінка: -------------------------------------------------------------------------------- -- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the {{format link}} template. -------------------------------------------------------------------------------- local library...) |
||
| Рядок 1: | Рядок 1: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- Format link | -- Format link | ||
| Рядок 74: | Рядок 72: | ||
section = postHash | section = postHash | ||
end | end | ||
return { | return { | ||
link = link, | link = link, | ||
| Рядок 101: | Рядок 99: | ||
mError = require('Module:Error') | mError = require('Module:Error') | ||
return mError.error{message = | return mError.error{message = | ||
'Error: | 'Error: no link or target specified! ([[' .. target .. '#Errors|help]])' | ||
} | } | ||
end | end | ||
| Рядок 177: | Рядок 175: | ||
end | end | ||
end | end | ||
-- Format the result as a link | -- Format the result as a link | ||
if parsed.link == display then | if parsed.link == display then | ||