More actions
Added webref citation option. |
m Attempting to fix the <pre> bug by moving formatting into the if clause. |
||
Line 3: | Line 3: | ||
<span class="citation web"> | <span class="citation web"> | ||
{{#if:{{{author|}}}|{{{author}}}. }} | {{#if:{{{author|}}}|{{{author}}}. }} | ||
{{#if:{{{title|}}|''{{{title}}}''.| (no title).}}. | |||
[{{{url}}} {{{site|Website}}}] | [{{{url}}} {{{site|Website}}}] | ||
{{#if:{{{date|}}}|, {{{date}}}}}. | {{#if:{{{date|}}}|, {{{date}}}}}. | ||
Line 52: | Line 52: | ||
|site=Twitch | |site=Twitch | ||
|access=2025-08-20}}</ref> | |access=2025-08-20}}</ref> | ||
And then renders in the references list as: | |||
<references /> | <references /> | ||
[[Category:Citation templates]] | [[Category:Citation templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 16:26, 18 September 2025
Purpose[edit]
Webref is a lightweight alternative to {{Cite web}} for wikis where that template is not available.
It formats basic web citations for use inside <ref>
tags.
Usage[edit]
<ref>{{Webref
|url=https://example.com/article
|title=Example Article
|site=Example News
|author=John Doe
|date=2024-05-12
|access=2025-08-20
}}</ref>
Parameters[edit]
url
– (required) the full link.title
– the page/video/article title (italicized).site
– website/platform name (defaults to "Website").author
– optional author/uploader name.date
– publication/upload date.access
– date accessed.
Example[edit]
Hefest streams regularly on Twitch.<ref>{{Webref
|url=https://www.twitch.tv/hefest
|title=Hefest on Twitch
|site=Twitch
|access=2025-08-20}}</ref>
== References ==
<references />
Renders as: [1]
And then renders in the references list as: