Template:Cite web: Difference between revisions
Appearance
Created page with "<includeonly>{{#if:{{{url|}}}|{{#if:{{{title|}}}|<ref{{#if:{{{name|}}}| name="{{{name}}}"|}}>{{#if:{{{author|}}}|{{{author}}}{{#if:{{{last|}}}|{{#if:{{{first|}}}|, {{{first}}}|}}|}}{{#if:{{{author2|}}}|; {{{author2}}}|}}{{#if:{{{author3|}}}|; {{{author3}}}|}}{{#if:{{{authorlink|}}}|| }}. |}}{{#if:{{{last|}}}|{{#if:{{{author|}}}||{{{last}}}{{#if:{{{first|}}}|, {{{first}}}|}}. |}}|}}{{#if:{{{date|}}}|({{{date}}}). |{{#if:{{{year|}}}|({{{year}}}{{#if:{{{month|}}}|, {{{month..." |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{url|}}}|{{#if:{{{title|}}}| | <includeonly>{{#if:{{{url|}}}|{{#if:{{{title|}}}|{{#if:{{{author|}}}|{{{author}}}{{#if:{{{last|}}}|{{#if:{{{first|}}}|, {{{first}}}|}}|}}{{#if:{{{author2|}}}|; {{{author2}}}|}}{{#if:{{{author3|}}}|; {{{author3}}}|}}{{#if:{{{authorlink|}}}|| }}. |}}{{#if:{{{last|}}}|{{#if:{{{author|}}}||{{{last}}}{{#if:{{{first|}}}|, {{{first}}}|}}. |}}|}}{{#if:{{{date|}}}|({{{date}}}). |{{#if:{{{year|}}}|({{{year}}}{{#if:{{{month|}}}|, {{{month}}}|}}). |}}}}{{#if:{{{url|}}}|[{{{url}}} {{#if:{{{title|}}}|"{{{title}}}"|{{{url}}}}}]|"{{{title}}}"}}{{#if:{{{format|}}}| ({{{format}}})|}}{{#if:{{{work|}}}|. ''{{{work}}}''|{{#if:{{{website|}}}|. {{{website}}}|{{#if:{{{publisher|}}}|. {{{publisher}}}|}}}}}}{{#if:{{{pages|}}}|: {{{pages}}}|{{#if:{{{page|}}}|: {{{page}}}|}}}}{{#if:{{{language|}}}| (in {{{language}}})|}}{{#if:{{{archiveurl|}}}|{{#if:{{{archivedate|}}}|. [{{#if:{{{deadurl|{{{url-status|}}}}}}|{{#ifeq:{{{deadurl|{{{url-status|}}}}}}|no|{{{archiveurl}}} Archived|{{{archiveurl}}} Archived}}|{{{archiveurl}}} Archived}} from the original] on {{{archivedate}}}|}}|}}{{#if:{{{quote|}}}|: "{{{quote}}}"|}}{{#if:{{{accessdate|{{{access-date|}}}}}}|. Retrieved {{{accessdate|{{{access-date}}}}}}|}}{{#if:{{{doi|}}}|. [[doi]]:{{{doi}}}|}}|<span class="error">Error: Template:Cite web requires both '''url''' and '''title''' parameters</span>[[Category:Pages with citation errors]]|}}|<span class="error">Error: Template:Cite web requires both '''url''' and '''title''' parameters</span>[[Category:Pages with citation errors]]|}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
== Usage == | == Usage == | ||
This template is used to cite web sources in Chrono Odyssey Wiki articles. It formats citations consistently | This template is used to cite web sources in Chrono Odyssey Wiki articles. It formats citations consistently for use in references. | ||
=== Basic usage === | === Basic usage === | ||
<pre>{{cite web | For inline citations: | ||
<pre><ref>{{cite web | |||
|url= | |||
|title= | |||
|access-date= | |||
}}</ref></pre> | |||
For named references: | |||
<pre><ref name="example">{{cite web | |||
|url= | |url= | ||
|title= | |title= | ||
|access-date= | |access-date= | ||
}}</pre> | }}</ref></pre> | ||
=== Full parameters === | === Full parameters === | ||
Line 37: | Line 45: | ||
|access-date= | |access-date= | ||
|quote= | |quote= | ||
}}</pre> | }}</pre> | ||
Line 74: | Line 81: | ||
* '''archivedate''' - Date when the page was archived | * '''archivedate''' - Date when the page was archived | ||
* '''deadurl''' or '''url-status''' - Set to "no" if original URL still works | * '''deadurl''' or '''url-status''' - Set to "no" if original URL still works | ||
== Examples == | == Examples == | ||
=== Basic web citation === | === Basic web citation === | ||
<pre>{{cite web | <pre><ref>{{cite web | ||
|url=https://chronoodyssey.com/news/update-1.2 | |url=https://chronoodyssey.com/news/update-1.2 | ||
|title=Update 1.2: New Dungeon Released | |title=Update 1.2: New Dungeon Released | ||
|website=Official Chrono Odyssey Website | |website=Official Chrono Odyssey Website | ||
|access-date=January 15, 2024 | |access-date=January 15, 2024 | ||
}}</pre> | }}</ref></pre> | ||
=== Named reference === | |||
<pre><ref name="patch1.2">{{cite web | |||
|url=https://chronoodyssey.com/patch-notes/1.2 | |||
|title=Patch Notes 1.2 | |||
|website=Official Chrono Odyssey Website | |||
|date=January 5, 2024 | |||
|access-date=January 15, 2024 | |||
}}</ref></pre> | |||
Subsequent uses: | |||
<pre><ref name="patch1.2"/></pre> | |||
=== In references section === | |||
Your current code should work fine: | |||
<pre>==References== | |||
<references> | |||
<ref name="questlog">{{cite web|url=https://questlog.gg/article|title=Combat Guide|website=questlog.gg|access-date=2025-06-09}}</ref> | |||
</references></pre> | |||
=== Citation with author and date === | === Citation with author and date === | ||
<pre>{{cite web | <pre><ref>{{cite web | ||
|url=https://mmorpg.com/previews/chrono-odyssey-preview | |url=https://mmorpg.com/previews/chrono-odyssey-preview | ||
|title=Chrono Odyssey Preview: Time-Bending Combat | |title=Chrono Odyssey Preview: Time-Bending Combat | ||
Line 96: | Line 119: | ||
|date=December 20, 2023 | |date=December 20, 2023 | ||
|access-date=January 15, 2024 | |access-date=January 15, 2024 | ||
}}</pre> | }}</ref></pre> | ||
=== Archived source === | === Archived source === | ||
<pre>{{cite web | <pre><ref>{{cite web | ||
|url=https://oldgamesite.com/chrono-odyssey-announcement | |url=https://oldgamesite.com/chrono-odyssey-announcement | ||
|title=Chrono Odyssey First Announced | |title=Chrono Odyssey First Announced | ||
Line 107: | Line 130: | ||
|deadurl=yes | |deadurl=yes | ||
|access-date=January 15, 2024 | |access-date=January 15, 2024 | ||
}}</pre> | }}</ref></pre> | ||
=== Korean language source === | === Korean language source === | ||
<pre>{{cite web | <pre><ref>{{cite web | ||
|url=https://chronoodyssey.co.kr/update | |url=https://chronoodyssey.co.kr/update | ||
|title=크로노 오디세이 업데이트 | |title=크로노 오디세이 업데이트 | ||
Line 117: | Line 140: | ||
|date=January 10, 2024 | |date=January 10, 2024 | ||
|access-date=January 15, 2024 | |access-date=January 15, 2024 | ||
}}</pre> | }}</ref></pre> | ||
== | == Important notes == | ||
* This template only generates the citation text - you must wrap it in <ref> tags | |||
* The template does NOT create reference tags automatically | |||
* Your existing references section code should work correctly with this template | |||
== Error handling == | == Error handling == |
Latest revision as of 07:26, 9 June 2025
Usage
This template is used to cite web sources in Chrono Odyssey Wiki articles. It formats citations consistently for use in references.
Basic usage
For inline citations:
<ref>{{cite web |url= |title= |access-date= }}</ref>
For named references:
<ref name="example">{{cite web |url= |title= |access-date= }}</ref>
Full parameters
{{cite web |url= |title= |last= |first= |author= |authorlink= |author2= |author3= |date= |year= |month= |website= |publisher= |work= |page= |pages= |language= |format= |archiveurl= |archivedate= |deadurl= |accessdate= |access-date= |quote= }}
Parameters
Required parameters
- url - The URL of the web page being cited
- title - The title of the web page or article
Author parameters
- author - Full name of author (alternative to using last/first)
- last - Last name of primary author
- first - First name of primary author
- authorlink - Wiki article about the author (without brackets)
- author2, author3 - Additional authors
Date parameters
- date - Full date of publication (preferred format: January 1, 2024)
- year - Year of publication (if date is not used)
- month - Month of publication (used with year)
- access-date or accessdate - Date when the URL was accessed
Source parameters
- website - Name of the website (e.g., "Official Chrono Odyssey Website")
- publisher - Publisher of the website if different from website name
- work - Name of the larger work (shown in italics)
Optional parameters
- page - Specific page number
- pages - Page range (e.g., "5-7")
- language - Language if not English (e.g., "Korean", "Japanese")
- format - File format if not HTML (e.g., "PDF", "Video")
- quote - Relevant quote from the source
Archive parameters
- archiveurl - URL of archived version (from Wayback Machine, etc.)
- archivedate - Date when the page was archived
- deadurl or url-status - Set to "no" if original URL still works
Examples
Basic web citation
<ref>{{cite web |url=https://chronoodyssey.com/news/update-1.2 |title=Update 1.2: New Dungeon Released |website=Official Chrono Odyssey Website |access-date=January 15, 2024 }}</ref>
Named reference
<ref name="patch1.2">{{cite web |url=https://chronoodyssey.com/patch-notes/1.2 |title=Patch Notes 1.2 |website=Official Chrono Odyssey Website |date=January 5, 2024 |access-date=January 15, 2024 }}</ref>
Subsequent uses:
<ref name="patch1.2"/>
In references section
Your current code should work fine:
==References== <references> <ref name="questlog">{{cite web|url=https://questlog.gg/article|title=Combat Guide|website=questlog.gg|access-date=2025-06-09}}</ref> </references>
Citation with author and date
<ref>{{cite web |url=https://mmorpg.com/previews/chrono-odyssey-preview |title=Chrono Odyssey Preview: Time-Bending Combat |last=Smith |first=John |website=MMORPG.com |date=December 20, 2023 |access-date=January 15, 2024 }}</ref>
Archived source
<ref>{{cite web |url=https://oldgamesite.com/chrono-odyssey-announcement |title=Chrono Odyssey First Announced |website=Old Game Site |archiveurl=https://web.archive.org/web/20230101/https://oldgamesite.com/chrono-odyssey-announcement |archivedate=January 1, 2023 |deadurl=yes |access-date=January 15, 2024 }}</ref>
Korean language source
<ref>{{cite web |url=https://chronoodyssey.co.kr/update |title=크로노 오디세이 업데이트 |website=Chrono Odyssey Korea |language=Korean |date=January 10, 2024 |access-date=January 15, 2024 }}</ref>
Important notes
- This template only generates the citation text - you must wrap it in <ref> tags
- The template does NOT create reference tags automatically
- Your existing references section code should work correctly with this template
Error handling
- If url or title are missing, an error message is displayed
- Pages with citation errors are added to Category:Pages with citation errors
See also
- Template:Cite book - For citing books
- Template:Cite journal - For citing academic journals
- Template:Cite video game - For citing other video games
- Template:Cite press release - For citing press releases
- ChronoOdysseyWiki:Citation guidelines - Wiki citation policies
Notes
- Always include access-date for online sources
- Use archiveurl when citing pages that might change or disappear
- Prefer the official Chrono Odyssey website as a source when possible
- For game updates, include the patch number in the title