Module:Citation/CS1/Configuration: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Lingam No edit summary |
imported>Lingam No edit summary |
||
வரிசை 17:
local date_name_auto_xlate_enable = false; -- when true translates English month-names to the local-wiki's language month names; always false at en.wiki
local date_digit_auto_xlate_enable = false; -- when true translates Western date digit to the local-wiki's language digits (date_names['local_digits']); always false at en.wiki
வரி 38 ⟶ 37:
local uncategorized_subpages = {'/[Ss]andbox', '/[Tt]estcases', '/[^/]*[Ll]og', '/[Aa]rchive'}; -- list of Lua patterns found in page names of pages we should not categorize
--[[--------------------------< M E S S A G E S >--------------------------------------------------------------
வரி 131 ⟶ 114:
-- categories
['cat wikilink'] = '[[Category:$1]]', -- $1 is the category name
[':cat wikilink'] = '[[:Category:$1|link]]', -- category name as maintenance message wikilink; $1 is the category name
வரி 282 ⟶ 264:
['ASINTLD'] = 'asin-tld',
['At'] = 'at', -- Used by InternetArchiveBot
['Authors'] = {'authors', 'people', 'credits'},
['BookTitle'] = {'book-title', 'booktitle'},
['Cartography'] = 'cartography',
வரி 288 ⟶ 270:
['ChapterFormat'] = {'chapter-format', 'contribution-format', 'entry-format',
'article-format', 'section-format'};
['ChapterURL'] = {'chapter-url', 'contribution-url', 'entry-url', 'article-url', 'section-url', 'chapterurl'}, -- Used by InternetArchiveBot
['ChapterUrlAccess'] = {'chapter-url-access', 'contribution-url-access',
'entry-url-access', 'article-url-access', 'section-url-access'}, -- Used by InternetArchiveBot
வரி 470 ⟶ 452:
]]
local single_letter_2nd_lvl_domains_t = {'cash', 'company', 'foundation
வரி 692 ⟶ 674:
local function get_date_format ()
-- if title_object.namespace == 10 then -- not in template space so that unused templates appear in unused-template-reports;
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
வரி 698 ⟶ 681:
local start, _, match = content:find(pattern); -- match is the three letters indicating desired date format
if match then
local use_dates_template = content:match ('%b{}', start); -- get the whole template
if use_dates_template:match ('| *cs1%-dates *= *[lsy][sy]?') then -- look for |cs1-dates=publication date length access-/archive-date length
return match:lower() .. '-' .. use_dates_template:match ('| *cs1%-dates *= *([lsy][sy]?)');
else
வரி 915 ⟶ 898:
local function get_cs1_config ()
-- if title_object.namespace == 10 then -- not in template space so that unused templates appear in unused-template-reports;
if not content then -- nil content when we're in template
return nil; -- auto-formatting does not work in Template space so don't set global_df
வரி 1,051 ⟶ 1,035:
-- list of emoji that use a zwj character (U+200D) to combine with another emoji
-- from: https://unicode.org/Public/emoji/15.
-- table created by: [[:en:Module:Make emoji zwj table]]
local emoji_t = { -- indexes are decimal forms of the hex values in U+xxxx
[9760] = true, -- U+2620 ☠ skull and crossbones
[9792] = true, -- U+2640 ♀ female sign
வரி 1,065 ⟶ 1,047:
[10052] = true, -- U+2744 ❄ snowflake
[10084] = true, -- U+2764 ❤ heavy black heart
[11035] = true, -- U+2B1B ⬛ black large square
[127752] = true, -- U+1F308 🌈 rainbow
வரி 1,083 ⟶ 1,064:
[128105] = true, -- U+1F469 👩 woman
[128139] = true, -- U+1F48B 💋 kiss mark
[128168] = true, -- U+1F4A8 💨 dash symbol
[128171] = true, -- U+1F4AB 💫 dizzy symbol
வரி 1,094 ⟶ 1,074:
[128640] = true, -- U+1F680 🚀 rocket
[128658] = true, -- U+1F692 🚒 fire engine
[129309] = true, -- U+1F91D 🤝 handshake
[129455] = true, -- U+1F9AF 🦯 probing cane
வரி 1,106 ⟶ 1,084:
[129469] = true, -- U+1F9BD 🦽 manual wheelchair
[129489] = true, -- U+1F9D1 🧑 adult
[129657] = true, -- U+1FA79 🩹 adhesive bandage
[129778] = true, -- U+1FAF2 🫲 leftwards hand
வரி 1,187 ⟶ 1,164:
['ca-valencia'] = 'Valencian', -- IETF variant of Catalan
['fkv'] = 'Kven', -- MediaWiki returns Kvensk
['ilo'] = 'Ilocano', -- MediaWiki/IANA/ISO 639: Iloko; use en.wiki preferred name
['ksh'] = 'Kölsch', -- MediaWiki: Colognian; use IANA/ISO 639 preferred name
வரி 1,193 ⟶ 1,169:
['mis-x-ripuar'] = 'Ripuarian', -- override MediaWiki ksh; no IANA/ISO 639 code for Ripuarian; IETF private code created at Module:Lang/data
['nan-tw'] = 'Taiwanese Hokkien', -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese and support en.wiki preferred name
}
local lang_name_remap = { -- used for |language=; names require proper capitalization; tags must be lowercase
['alemannisch'] = {'Swiss German', 'gsw'}, -- not an ISO or IANA language name; MediaWiki uses 'als' as a subdomain name for Alemannic Wikipedia: als.wikipedia.org
['bangla'] = {'Bengali', 'bn'}, -- MediaWiki returns Bangla (the endonym) but we want Bengali (the exonym); here we remap
வரி 1,212 ⟶ 1,185:
['kvensk'] = {'Kven', 'fkv'}, -- ...they say to refer to IANA registry for English names
['ripuarian'] = {'Ripuarian', 'mis-x-ripuar'}, -- group of dialects; no code in MediaWiki or in IANA/ISO 639
['taiwanese hokkien'] = {'Taiwanese Hokkien', 'nan-tw'}, -- make room for MediaWiki/IANA/ISO 639 nan: Min Nan Chinese
['tosk albanian'] = {'Tosk Albanian', 'als'}, -- MediaWiki replaces 'Tosk Albanian' with 'Alemannisch' so 'Tosk Albanian' cannot be found
வரி 1,259 ⟶ 1,229:
['thesis'] = 'Thesis',
}
}) do▼
வரி 1,364 ⟶ 1,306:
},
err_archive_date_url_ts_mismatch = {
message = '<code class="cs1-code">|archive-date=</code> / <code class="cs1-code">|archive-url=</code> timestamp mismatch
anchor = 'archive_date_url_ts_mismatch',
category = 'CS1 errors: archive-url',
வரி 1,691 ⟶ 1,633:
anchor = 'extra_text_volume',
category = 'CS1 errors: extra text: volume',
hidden =
},
err_first_missing_last = {
வரி 1,745 ⟶ 1,687:
anchor = 'missing_periodical',
category = 'CS1 errors: missing periodical',
hidden =
},
err_missing_pipe = {
வரி 1,758 ⟶ 1,700:
category = 'CS1 errors: missing publisher',
hidden = false
anchor = 'numeric_names',▼
category = 'CS1 errors: numeric name',▼
hidden = false,▼
},
err_param_access_requires_param = {
வரி 1,856 ⟶ 1,792:
anchor = 'archived_copy',
category = 'CS1 maint: archived copy as title',
maint_authors = {
message = nil,▼
hidden = true,
},
வரி 1,910 ⟶ 1,852:
anchor = 'doi_inactive_dated',
category = 'CS1 maint: DOI inactive as of $2$3$1', -- $1 is year, $2 is month-name or empty string, $3 is space or empty string
▲ message = nil,
hidden = true,
},
வரி 2,266 ⟶ 2,202:
encode = true,
separator = ' ',
id_limit =
},
['OL'] = {
வரி 2,304 ⟶ 2,240:
encode = true,
separator = ' ',
id_limit =
access = 'free', -- free to read
},
வரி 2,317 ⟶ 2,253:
encode = false,
separator = ' ',
id_limit =
},
['RFC'] = {
வரி 2,351 ⟶ 2,287:
encode = true,
separator = ' ',
id_limit =
custom_access = 'ssrn-access',
},
வரி 2,364 ⟶ 2,300:
encode = false,
separator = ' ',
id_limit =
custom_access = 's2cid-access',
},
வரி 2,400 ⟶ 2,336:
date_name_auto_xlate_enable = date_name_auto_xlate_enable,
date_digit_auto_xlate_enable = date_digit_auto_xlate_enable,
-- tables and variables created when this module is loaded
வரி 2,407 ⟶ 2,342:
punct_skip = build_skip_table (punct_skip, punct_meta_params),
url_skip = build_skip_table (url_skip, url_meta_params),
aliases = aliases,
special_case_translation = special_case_translation,
| |||