Template:Cite web: Difference between revisions
From WikiMD's Wellness Encyclopedia
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if:{{{ | <span class="citation"> | ||
{{#if:{{{author|{{{last|}}}}}}|{{#if:{{{last|}}}|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}|{{{author}}}}}. }}<!-- Author or Last/First --> | |||
''{{{title}}}''{{#if:{{{url|}}}| ([{{{url}}} link])}}.<!-- Title and optional URL --> | |||
{{#if:{{{website|}}|''{{{website}}}''. }}<!-- Website --> | |||
{{#if:{{{publisher|}}}|{{{publisher}}}. }}<!-- Publisher --> | |||
{{#if:{{{date|}}}|{{{date}}}. }}<!-- Date --> | |||
{{#if:{{{location|}}}|{{{location}}}. }}<!-- Location --> | |||
{{#if:{{{access-date|}}}|Accessed {{{access-date}}}.}}<!-- Access date --> | |||
</span> | |||
</includeonly> | |||
</includeonly><noinclude> | |||
<noinclude> | |||
== Documentation == | == Documentation == | ||
This template is used to cite web pages. | This template is used to cite web pages simply without Lua. | ||
=== Parameters === | === Parameters === | ||
* '''title''' – Title of the web page (required). | * '''title''' – Title of the web page (required). | ||
* '''author''' – | * '''author''' – Author name(s) (alternative to first/last). | ||
* '''first''' – First name(s) of the author | * '''first''' – First name(s) of the author. | ||
* '''last''' – Last name(s) of the author | * '''last''' – Last name(s) of the author. | ||
* '''website''' – Name of the website. | * '''website''' – Name of the website. | ||
* '''publisher''' – Publisher of the | * '''publisher''' – Publisher of the site. | ||
* '''date''' – Publication date | * '''date''' – Publication date. | ||
* '''location''' – Location of | * '''location''' – Location of publisher. | ||
* '''url''' – URL | * '''url''' – Web page URL. | ||
* '''access-date''' – Date | * '''access-date''' – Date accessed. | ||
=== Example Usage === | === Example Usage === | ||
<pre> | |||
{{Cite web | {{Cite web | ||
| title = The Future of Renewable Energy | | title = The Future of Renewable Energy | ||
| Line 35: | Line 39: | ||
| access-date = 2023-09-01 | | access-date = 2023-09-01 | ||
}} | }} | ||
</pre> | |||
=== Result === | |||
* Jane Doe. ''The Future of Renewable Energy'' ([https://example.com/renewable-energy link]). ''Green Insights''. Eco Media. 2023-08-01. London, UK. Accessed 2023-09-01. | |||
</noinclude> | </noinclude> | ||
Latest revision as of 05:11, 28 April 2025
Documentation[edit]
This template is used to cite web pages simply without Lua.
Parameters[edit]
- title – Title of the web page (required).
- author – Author name(s) (alternative to first/last).
- first – First name(s) of the author.
- last – Last name(s) of the author.
- website – Name of the website.
- publisher – Publisher of the site.
- date – Publication date.
- location – Location of publisher.
- url – Web page URL.
- access-date – Date accessed.
Example Usage[edit]
{{Cite web
| title = The Future of Renewable Energy
| author = Jane Doe
| website = Green Insights
| publisher = Eco Media
| date = 2023-08-01
| location = London, UK
| url = https://example.com/renewable-energy
| access-date = 2023-09-01
}}
Result[edit]
- Jane Doe. The Future of Renewable Energy (link). Green Insights. Eco Media. 2023-08-01. London, UK. Accessed 2023-09-01.