Difference between revisions of Module:Cs1 documentation support
Created page with "require('Module:No globals'); local getArgs = require ('Module:Arguments').getArgs; local cfg = mw.loadData ('Module:Citation/CS1/Configuration'); -- load the configurati..." |
Viceroy Sam (talk | contribs) m →top: Typo fixing, typos fixed: etc → etc., the the → the |
||
| (One intermediate revision by one other user not shown) | |||
| Line 383: | Line 383: | ||
metaparameter <metaparam> is the key in Module:Citation/CS1 aliases{} table or id_handlers{} table. Because access-icon | metaparameter <metaparam> is the key in Module:Citation/CS1 aliases{} table or id_handlers{} table. Because access-icon | ||
don't have <metaparam> keys, per se, we create pseudo <metaparam> keys by appending 'access' to the identifier <metaparam>: | don't have <metaparam> keys, per se, we create pseudo <metaparam> keys by appending 'access' to the identifier <metaparam>: | ||
the <metaparam> for |doi-access= is, for the purposes of this function, DOIaccess, etc | the <metaparam> for |doi-access= is, for the purposes of this function, DOIaccess, etc. | ||
Some lists of aliases might be better served when a particular alias is identified as the canonical alias for a | Some lists of aliases might be better served when a particular alias is identified as the canonical alias for a | ||
| Line 531: | Line 531: | ||
for _, v in ipairs (source) do -- here when override is set; spin through the aliases to make sure override matches alias in table | for _, v in ipairs (source) do -- here when override is set; spin through the aliases to make sure override matches alias in table | ||
if v ~= override then | if v ~= override then | ||
table.insert (aliases, v); -- add all but overridden param to | table.insert (aliases, v); -- add all but overridden param to the aliases list for this use case | ||
else | else | ||
flag = true; -- set the flag so we know that <override> is a valid alias | flag = true; -- set the flag so we know that <override> is a valid alias | ||