Module:Citation/CS1: Difference between revisions

m Text replacement - "Category:([A-Za-z]+)\s*(.*)" to "Category:$1 {{lc:$2}}"
Tag: Reverted
m Text replacement - "{{lc:}}" to ""
Tag: Reverted
Line 2,295: Line 2,295:
There is an exception.  There are three ISO639-1 codes for Norewegian language variants.  There are two official variants: Norwegian Bokmål (code 'nb') and
There is an exception.  There are three ISO639-1 codes for Norewegian language variants.  There are two official variants: Norwegian Bokmål (code 'nb') and
Norwegian Nynorsk (code 'nn').  The third, code 'no',  is defined by ISO639-1 as 'Norwegian' though in Norway this is pretty much meaningless.  However, it appears
Norwegian Nynorsk (code 'nn').  The third, code 'no',  is defined by ISO639-1 as 'Norwegian' though in Norway this is pretty much meaningless.  However, it appears
that on enwiki, editors are for the most part unaware of the nb and nn variants (compare page counts for these variants at Category:A {{lc:}}rticles with non-English-language external links.
that on enwiki, editors are for the most part unaware of the nb and nn variants (compare page counts for these variants at Category:A rticles with non-English-language external links.


Because Norwegian Bokmål is the most common language variant, Media wiki has been modified to return Norwegian Bokmål for ISO639-1 code 'no'. Here we undo that and
Because Norwegian Bokmål is the most common language variant, Media wiki has been modified to return Norwegian Bokmål for ISO639-1 code 'no'. Here we undo that and
Line 2,302: Line 2,302:
See Help talk:Citation Style_1#An ISO 639-1 language name test
See Help talk:Citation Style_1#An ISO 639-1 language name test


When |language= contains a valid ISO639-1 code, the page is assigned to the category for that code: Category:N {{lc:}}orwegian-language sources (no) if
When |language= contains a valid ISO639-1 code, the page is assigned to the category for that code: Category:N orwegian-language sources (no) if
the page is a mainspace page and the ISO639-1 code is not 'en'.  Similarly, if the  parameter is |language=Norwegian, it will be categorized in the same way.
the page is a mainspace page and the ISO639-1 code is not 'en'.  Similarly, if the  parameter is |language=Norwegian, it will be categorized in the same way.


Line 2,502: Line 2,502:
--[[--------------------------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >------------------------------
--[[--------------------------< E X T R A _ T E X T _ I N _ P A G E _ C H E C K >------------------------------


Adds page to Category:C {{lc:}}S1 maint: extra text if |page= or |pages= has what appears to be some form of p. or pp.  
Adds page to Category:C S1 maint: extra text if |page= or |pages= has what appears to be some form of p. or pp.  
abbreviation in the first characters of the parameter content.
abbreviation in the first characters of the parameter content.