Module:CS1 translator/data: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
--[[--------------------------< P A R A M S _ M A I N _ T >----------------------------------------------------
 
table of k/v_t pair tables where k/v_t in the outer table is:
tables of k/v pairs where k is the non-English parameter name and v is the directly translatable cs1|2 equivalent
k – the Wikimedia subdomain (language code; 'en' in 'en.wikipedia.org')
parameter name. Parameter names that do not have any cs1|2 equivalency or that are treated as special cases in
v_t – a k/v table where
the various exported functions are also listed here for completeness and to document them; these are asigned nil
k – the non-English parameter name
for a value (same as not present in the table).
v – the directly translatable cs1|2 equivalent parameter name. Parameter names that do not have any cs1|2
the equivalency variousor exportedthat functionsare treated as special cases are also listed here for completeness and to document them; these are asigned nil
them; these are asigned nil for a value (same as not present in the table).
 
All key values (non-English parameter names) are normalized to lowercase.
 
TODO: move to a data module with data from other translatable citation templates
 
]]
Line 1,652 ⟶ 1,653:
--[[--------------------------< P A R A M S _ D A T E S _ T >--------------------------------------------------
 
<date_params_t> is a k/v_t table where k is the ISOthe 639-1Wikimedia subdomain (language code; and v_t is a k/v_t table where'en' kin identifies'en.wikipedia.org')
and v_t is a k/v_t table where k identifies the 'date' or 'date-part' and v_t is a sequence table of associated non-English parameter names
non-English parameter alias names
 
non-English parameter names are normalized to lowercase.
Line 1,746 ⟶ 1,748:
--[[--------------------------< P A R A M S _ M I S C _ D A T E S _ T >----------------------------------------
 
German otherFor date-holding parameters that are not |date=, |year=, |month=, or |yearday= equivalents.
 
table of k/v_t pairs where k/v_t in the outer table is:
k – the Wikimedia subdomain (language code; 'en' in 'en.wikipedia.org')
v_t – a table of k/v pairs where
k – the non-English parameter name
v – the directly translatable cs1|2 equivalent date-holding parameters that are not |date=, |year=, |month=,
or |day= equivalents.
 
All key values (German parameter names) normalized to lowercase.
 
]]
Line 1,888 ⟶ 1,897:
['origår'] = 'orig-date', -- actually |orig-year=
['origdatum'] = 'orig-date',
-- ['origmånad'] = nil, -- no cs1|2 equivalent; |orig-month=
['utgivningsdatum'] = 'publication-date',
},
Line 1,921 ⟶ 1,930:
miscellaneous identifiers that, at en.wiki, are grouped together in |id=
 
A sequence table of sequencek/v_t tablespairs where k/v_t in the outer table is:
k – the Wikimedia subdomain (language code; 'en' in 'en.wikipedia.org')
[1] is the parameter name normalized to lower case
v_t – a sequence table of sequence tables where:
[2] is the associated wikitext label to be used in the rendering
[1] is the parameter name normalized to lower case
[3] is the url-prefix to be attached to the identifier value from the template parameter
[42] is the url-postfixassociated wikitext label to be attachedused toin the identifier valuerendering
[3] is the url-prefix to be attached to the identifier value from the template parameter
[4] is the url-postfix to be attached to the identifier value
parameter names are normalized to lowercase.
Line 1,960 ⟶ 1,971:
--[[--------------------------< P A R A M S _ L A N G U A G E _ T >--------------------------------------------
 
table of sequencek/v_t tablespairs ofwhere languagek/v_t parameterin namesthe outer table is:
k – the Wikimedia subdomain (language code; 'en' in 'en.wikipedia.org')
v_t – a sequence table of non-English equivalents to the en.wiki |language= parameter
 
]]