Jump to content

Template:Cite web: Difference between revisions

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|}}}|<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}}}|}}). |}}}}{{#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}}}|}}</ref>|<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>
<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 and creates proper reference footnotes.
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=  
|name=
}}</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
=== Reference name ===
* '''name''' - Reference name for reuse with <ref name="example"/>


== 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>


=== Named reference for reuse ===
== Important notes ==
First use:
* This template only generates the citation text - you must wrap it in <ref> tags
<pre>{{cite web
* The template does NOT create reference tags automatically
|name=patch1.2
* Your existing references section code should work correctly with this template
|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
}}</pre>
 
Subsequent uses:
<pre><ref name="patch1.2"/></pre>


== Error handling ==
== Error handling ==