کاربر ناشناس
استفاده از ref=harv به صورت پیشفرض
imported>Mensis Mirabilis (ترجمه نام ماهها به انگلیسی) |
(استفاده از ref=harv به صورت پیشفرض) |
||
خط ۲۳۸: | خط ۲۳۸: | ||
checks the content of |title-link=, |series-link=, |author-link= etc for properly formatted content: no wikilinks, no urls | checks the content of |title-link=, |series-link=, |author-link= etc for properly formatted content: no wikilinks, no urls | ||
Link parameters are to hold the title of a | Link parameters are to hold the title of a Imamatpedia article so none of the WP:TITLESPECIALCHARACTERS are allowed: | ||
# < > [ ] | { } _ | # < > [ ] | { } _ | ||
except the underscore which is used as a space in wiki urls and # which is used for section links | except the underscore which is used as a space in wiki urls and # which is used for section links | ||
خط ۱٬۳۴۲: | خط ۱٬۳۴۲: | ||
extensions. For example, code 'cbk-zam' and its associated name 'Chavacano de Zamboanga' (MediaWiki does not support | extensions. For example, code 'cbk-zam' and its associated name 'Chavacano de Zamboanga' (MediaWiki does not support | ||
code 'cbk' or name 'Chavacano'. Most (all?) of these languages are not used a 'language' codes per se, rather they | code 'cbk' or name 'Chavacano'. Most (all?) of these languages are not used a 'language' codes per se, rather they | ||
are used as sub-domain names: cbk-zam. | are used as sub-domain names: cbk-zam.Imamatpedia.org. These names can be found (for the time being) at | ||
https://phabricator.wikimedia.org/diffusion/ECLD/browse/master/LocalNames/LocalNamesEn.php | https://phabricator.wikimedia.org/diffusion/ECLD/browse/master/LocalNames/LocalNamesEn.php | ||
خط ۱٬۹۴۳: | خط ۱٬۹۴۳: | ||
Check archive.org urls to make sure they at least look like they are pointing at valid archives and not to the | Check archive.org urls to make sure they at least look like they are pointing at valid archives and not to the | ||
save snapshot url or to calendar pages. When the archive url is 'https://web.archive.org/save/' (or http://...) | save snapshot url or to calendar pages. When the archive url is 'https://web.archive.org/save/' (or http://...) | ||
archive.org saves a snapshot of the target page in the url. That is something that | archive.org saves a snapshot of the target page in the url. That is something that Imamatpedia should not allow | ||
unwitting readers to do. | unwitting readers to do. | ||
خط ۲٬۲۷۹: | خط ۲٬۲۷۹: | ||
local sepc; -- separator between citation elements for CS1 a period, for CS2, a comma | local sepc; -- separator between citation elements for CS1 a period, for CS2, a comma | ||
local PostScript; | local PostScript; | ||
local Ref; | local Ref = A['Ref']; | ||
if not is_set (Ref) then | |||
Ref = 'harv'; -- set as default when not set externally | |||
end | |||
local Ref2 = A['Ref2']; --falocalization | local Ref2 = A['Ref2']; --falocalization | ||
sepc, PostScript, Ref = set_style (Mode:lower(), A['PostScript'], | sepc, PostScript, Ref = set_style (Mode:lower(), A['PostScript'], Ref, config.CitationClass); | ||
use_lowercase = ( sepc == ',' ); -- used to control capitalization for certain static text | use_lowercase = ( sepc == ',' ); -- used to control capitalization for certain static text | ||