Module:Citation/CS1: Difference between revisions

m
→‎top: clean up, replaced: Wikipedia → Bharatpedia (3), WP → BP (3)
m (→‎top: clean up, replaced: Wikipedia: → Bharatpedia:)
m (→‎top: clean up, replaced: Wikipedia → Bharatpedia (3), WP → BP (3))
Line 227: Line 227:
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 Wikipedia article, so none of the WP:TITLESPECIALCHARACTERS are allowed:
Link parameters are to hold the title of a Bharatpedia article, so none of the BP: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
Line 2,221: Line 2,221:
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 Wikipedia should not allow
archive.org saves a snapshot of the target page in the URL.  That is something that Bharatpedia should not allow
unwitting readers to do.
unwitting readers to do.


When the archive.org URL does not have a complete timestamp, archive.org chooses a snapshot according to its own
When the archive.org URL does not have a complete timestamp, archive.org chooses a snapshot according to its own
algorithm or provides a calendar 'search' result.  [[WP:ELNO]] discourages links to search results.
algorithm or provides a calendar 'search' result.  [[BP:ELNO]] discourages links to search results.


This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and
This function looks at the value assigned to |archive-url= and returns empty strings for |archive-url= and
Bots, trusted
7,437

edits