Saintapedia:Common errors: Difference between revisions

Jump to navigation Jump to search
(Created page with "This is a list of common errors on Saintapedia and how to fix them. ==Blue highglights==")
 
Line 1: Line 1:
This is a list of common errors on Saintapedia and how to fix them.
This is a list of common errors on Saintapedia and how to fix them.


==Blue highglights==
== Misplaced URL in References Causes Blue Highlighting ==
'''Issue:''' When a URL (e.g., a link to a PDF or external site) is placed directly after a reference tag (e.g., `<ref name="USCIRF"/>`) without being enclosed in the tag, MediaWiki renders it as a separate inline hyperlink. This results in unexpected blue (or purple if visited) text, often with a PDF icon if styled in the CSS, making it appear as "odd highlighting." This can occur due to copying and pasting URLs or improper reference formatting.
 
'''Example:'''
 
<nowiki>Significant event occurred.<ref name="Source"/> (https://example.com/report.pdf)</nowiki>
 
'''Result:''' The URL is displayed as a clickable link with blue text and a PDF icon, detached from the reference.
 
'''Fix:'''
* Move the URL inside the `<ref>` tag to ensure it is treated as part of the citation.
* Use a proper citation template (e.g., `<nowiki>{{cite web}}</nowiki>`) for better formatting and readability.
* Avoid placing URLs in parentheses immediately after a reference tag.
 
'''Corrected Example:'''
 
<nowiki>Significant event occurred.<ref name="Source">https://example.com/report.pdf</ref></nowiki>
 
'''Or with a citation template:'''
 
<nowiki>Significant event occurred.<ref name="Source">{{cite web |url=https://example.com/report.pdf |title=Report Title |publisher=Example Publisher |date=2025-03 |access-date=2025-09-02}}</ref>
</nowiki>
 
'''Result:''' The URL is properly included in the reference list (via `<nowiki>{{reflist}}</nowiki>`) without appearing as a standalone link in the text.
 
'''Notes:'''
* Ensure the URL is correctly encoded (e.g., use `%20` for spaces, not `%2520`).
* Clear your browser cache after updating to see the changes.

Navigation menu