Modul:Citation/CS1/peskovnik: Razlika med redakcijama
Izbrisana vsebina Dodana vsebina
mBrez povzetka urejanja |
mBrez povzetka urejanja |
||
Vrstica 5:
]]
local dates, year_date_check, reformat_dates -- functions in
local is_set, in_array, substitute, error_comment, set_error, select_one, -- functions in
add_maint_cat, wrap_style, safe_for_italics, remove_wiki_link;
local z ={}; -- tables in
local extract_ids, build_id_list, is_embargoed; -- functions in
local make_coins_title, get_coins_pages, COinS; -- functions in
local cfg = {}; -- table of configuration tables that are defined in
local whitelist = {}; -- table of tables listing valid template parameter names; defined in
--[[--------------------------< F I R S T _ S E T >------------------------------------------------------------
Vrstica 1.065:
When an author or editor parameter contains some form of 'et al.', the 'et al.' is stripped from the parameter and a flag (etal) returned
that will cause list_people() to add the static 'et al.' text from
template's metadata. When this occurs, the page is added to a maintenance category.
Vrstica 1.132:
and the associated code is not two or three characters, this function returns only the Wikimedia language name.
Adapted from code taken from
]]
Vrstica 1.375:
--[[--------------------------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >------------------------------
Adds page to
abbreviation in the first characters of the parameter content.
Vrstica 1.961:
local this_page = mw.title.getCurrentTitle(); -- also used for COinS and for language
local anchor_year; -- used in the CITEREF identifier
local COinS_date = {}; -- holds date info extracted from |date= for the COinS metadata by
local DF = A['DF']; -- date format set in cs1|2 template
Vrstica 2.275:
we get the date used in the metadata.
Date validation supporting code is in
]]
do -- create defined block to contain local variables error_message, date_parameters_list, mismatch
Vrstica 3.065:
text = text .. '<span class="citation-comment" style="display:none; color:#33aa33">';
for _, v in ipairs( z.maintenance_cats ) do -- append maintenance categories
text = text .. ' ' .. v .. ' ([[:
end
text = text .. '</span>'; -- maintenance mesages (realy just the names of the categories for now)
Vrstica 3.073:
if in_array(no_tracking_cats, {"", "no", "false", "n"}) then
for _, v in ipairs( z.error_categories ) do
text = text .. '[[
end
for _, v in ipairs( z.maintenance_cats ) do -- append maintenance categories
text = text .. '[[
end
for _, v in ipairs( z.properties_cats ) do -- append maintenance categories
text = text .. '[[
end
end
Vrstica 3.096:
local validation, utilities, identifiers, metadata;
if nil ~= string.find (frame:getTitle(), '
cfg = mw.loadData ('
whitelist = mw.loadData ('
utilities = require ('
validation = require ('
identifiers = require ('
metadata = require ('
else -- otherwise
cfg = mw.loadData ('
whitelist = mw.loadData ('
utilities = require ('
validation = require ('
identifiers = require ('
metadata = require ('
end
Vrstica 3.118:
metadata.set_selected_modules (cfg, utilities); -- so that functions in COinS can see the selected cfg tables and selected Utilities module
dates = validation.dates; -- imported functions from
year_date_check = validation.year_date_check;
reformat_dates = validation.reformat_dates;
is_set = utilities.is_set; -- imported functions from
in_array = utilities.in_array;
substitute = utilities.substitute;
Vrstica 3.133:
remove_wiki_link = utilities.remove_wiki_link;
z = utilities.z; -- table of error and category tables in
extract_ids = identifiers.extract_ids; -- imported functions from
build_id_list = identifiers.build_id_list;
is_embargoed = identifiers.is_embargoed;
make_coins_title = metadata.make_coins_title; -- imported functions from
get_coins_pages = metadata.get_coins_pages;
COinS = metadata.COinS;
Vrstica 3.168:
else
if nil == suggestions.suggestions then -- if this table is nil then we need to load it
if nil ~= string.find (frame:getTitle(), '
suggestions = mw.loadData( '
else
suggestions = mw.loadData( '
end
end
|