--Please insert new suggestions in alphabetical order
--The form is = 'correct',
suggestions = {
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
-- = 'access-date',
= 'access-date', -- (no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date')
= 'access-date', -- (no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date')
= 'location',
= 'yıl', -- French
= 'yıl',
= 'orig-year',
= 'access-date', -- Spanish, Italian
= 'soyadı', -- Spanish, Italian
= 'archive-date', -- German
= 'archive-date',
= 'archive-url', -- German
= 'archive-url', -- Spanish, Italian
= 'others',
= 'edition', -- German
= 'author', -- French
= 'author',
-- = 'name-list-format', -- remove after 2016-01-01
-- = 'name-list-format', -- remove after 2016-01-01
= 'author-link', -- Polish
= 'author2-link', -- Polish
-- = 'author', -- Spanish, Italian, Polish
= 'authors', -- German (singular and plural)
-- = 'author2', -- Spanish, Italian, Polish
-- = 'author3', -- Polish
= 'author',
= 'volume', -- German
-- = 'date', -- remove after 2016-01-01
= 'chapter',
= 'quote', -- Spanish, Italian
= 'coauthors', -- Spanish, Italian
= 'access-date', -- French
= 'journal', -- Polish
= 'date', -- Polish
= 'access-date', -- Polish
= 'date', -- German
= 'dead-url',
= 'publisher',
= 'id', -- German (as 'id={{DNB-IDN|...}}') (not yet supported by us directly)
= 'editor', -- French
= 'edition',
= 'edition',
-- = 'name-list-format', -- remove after 2016-01-01
-- = 'name-list-format', -- remove after 2016-01-01
-- = 'editor-given', -- remove after 2016-01-01
= 'publisher',
-- = 'editor-surname', -- remove after 2016-01-01
= 'archive-date', -- French
= 'encyclopedia',
-- = 'date', -- remove after 2016-01-01
= 'author-link', -- Spanish, Italian
= 'date', -- Spanish, Italian
= 'access-date', -- Spanish, Italian
= 'archive-date', -- Spanish, Italian
= 'format',
= 'ad1',
= 'format',
= 'format', -- Spanish, Italian, Polish
= 'ad',
= 'editors', -- German (singular and plural)
= 'language', -- Spanish, Italian
= 'ad', -- Polish
= 'ignore-isbn-error', -- German
= 'isbn',
= 'yıl', -- German
= 'chapter', -- German
-- = 'comment', -- German (not yet supported by us)
= 'language',
= 'language',
= 'dil', -- French
= 'soyadı1',
= 'location', -- French
= 'url', -- French
= 'id', -- German (as 'id=License ...')
= 'location',
= 'location',
= 'location', -- Spanish
= 'location', -- Polish
= 'date', -- Polish
= 'date', -- French
= 'date', -- German
-- = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
= 'soyadı', -- Polish
= 'newspaper',
= 'newspaper',
= 'newspaper',
= 'soyadı', -- French
= 'soyadı1', -- French
= 'ad', -- Spanish, Italian
= 'number', -- German
= 'work', -- Spanish, Italian
= 'agency', -- Polish
= 'dead-url', -- German
= 'url', -- German (not a direct replacement, but can be emulated)
= 'agency', -- Polish
= 'orig-year',
= 'orig-year', -- German
= 'location', -- German (if 'ort' is specified at the same time, the latter should be put in 'publication-place')
= 'language', -- German
= 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
= 'location', -- German
= 'others',
= 'agency', -- Polish
= 'pages',
= 'page', -- Spanish, Italian
= 'pages', -- Spanish, Italian
= 'pages', -- French
= 'publisher', -- French
= 'publisher',
= 'pmc',
= 'work', -- Polish
= 'ad', -- French
= 'ad1', -- French
= 'postscript',
= 'publisher',
-- = 'publisher',
-- = 'publisher',
-- = 'publisher',
-- = 'publisher',
-- = 'publisher',
= 'publication-place',
-- = 'publisher',
-- = 'publisher',
= 'series', -- German
= 'access-date',
= 'date', -- Polish
= 'work', -- German
= 'pages', -- German
-- = 'mode', -- remove after 2016-01-01
= 'series', -- Polish
= 'work', -- French *RECHECK*
= 'agency',
= 'website', --Spanish
= 'page', -- Polish
= 'pages', -- Polish
= 'at', -- German (not a direct replacement, but can be emulated)
= 'language', -- German
= 'subscription', -- Spanish, Italian, Polish
= 'date', -- German
= 'title',
= 'title',
= 'title', -- German
= 'title', -- German ('postscript=none' should be added as well)
= 'contribution', -- German (not a direct replacement, but can be emulated)
= 'title', -- Spanish, Italian
= 'title', -- French
= 'title',
= 'title', -- Spanish, Italian
= 'trans-chapter',
= 'others',
= 'trans-title',
= 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
= 'title', -- Polish
= 'location', -- Spanish, Italian
= 'archive-url', -- Spanish, Italian
= 'id', -- German (as 'id={{URN|...}}') (not yet supported by us directly)
= 'translator', -- German (singular and plural)
= 'publisher', -- German
= 'volume',
= 'volume', -- Spanish
= 'work', -- German
= 'contribution', -- German (not a direct replacement, but can be emulated)
= 'volume', -- Polish
= 'number', -- Polish
= 'publisher', -- French
= 'publisher', -- French
= 'id', -- German (as 'id={{ZDB|...}}') (not yet supported by us directly)
= 'quote', -- German
= 'access-date', -- German
}
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------
Here we use Lua patterns to make suggestions. The form is = 'correct',
Lua patterns are not regex though they are similar. The escape character is '%', not '\'. For more information about
lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial match from incorrectly
suggesting the wrong parameter name. For instance, the pattern 'a+r' matches 'author' in the no-longer-supported
parameter |author-separator= so the code suggests '|author='; the same pattern also matches the no-longer-supported
parameter |separator= (returning 'ator') so again, the code suggests '|author='.
One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.) The value from the
capture replaces $1 in the 'correct' value.
]]
local patterns = {
= 'access-date',
+r$'] = 'author',
+r(%d+)$'] = 'author$1', -- enumerated
+ers?$'] = 'publisher',
}
return {suggestions = suggestions, patterns=patterns};