47,726
edits
![]() | We're back! Sorry, bad combo of sickness, funeral and a month-long trip abroad. The site is back now. ![]() |
No edit summary |
No edit summary |
||
Line 756: | Line 756: | ||
* If <code class="n">no_alt_ast</code> is specified, then the alt text does not need to contain an asterisk if the language is reconstructed. This should only be used by modules which really need to allow links to reconstructions that don't display asterisks (e.g. number boxes). | * If <code class="n">no_alt_ast</code> is specified, then the alt text does not need to contain an asterisk if the language is reconstructed. This should only be used by modules which really need to allow links to reconstructions that don't display asterisks (e.g. number boxes). | ||
* If <code class="n">show_qualifiers</code> is specified, left and right qualifiers and references will be displayed. (This is for compatibility reasons, since a fair amount of code stores qualifiers and/or references in these fields and displays them itself, expecting {{code|lua|full_link()}} to ignore them.]==] | * If <code class="n">show_qualifiers</code> is specified, left and right qualifiers and references will be displayed. (This is for compatibility reasons, since a fair amount of code stores qualifiers and/or references in these fields and displays them itself, expecting {{code|lua|full_link()}} to ignore them.]==] | ||
function export.full_link(data, face, allow_self_link, show_qualifiers) | function export.full_link(data, face, allow_self_link, show_qualifiers, to_wik) | ||
-- Prevent data from being destructively modified. | -- Prevent data from being destructively modified. | ||
local data = shallowcopy(data) | local data = shallowcopy(data) | ||
Line 909: | Line 909: | ||
interwiki = data.interwiki, | interwiki = data.interwiki, | ||
cats = data.cats, | cats = data.cats, | ||
no_alt_ast = data.no_alt_ast | no_alt_ast = data.no_alt_ast, | ||
to_wik = to_wik | |||
} | } | ||
link = require("Module:script utilities").tag_text( | link = require("Module:script utilities").tag_text( |