Difference between revisions of "Template:Cite web"

From LFS Manual
Jump to navigationJump to search
m (fix)
(in case of no author, date was omitted. added a condition to show date even if first= is not given. after publisher, before archive-date fields)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><cite style="font-style: normal">{{#if:{{{last|}}}|{{{last}}},&nbsp;|}}{{#if:{{{first|}}}|{{{first}}}{{#if:{{{date|}}}| &nbsp;({{{date}}})}}.&nbsp;}}{{#if:{{{url|}}}|{{#if:{{{archive-url|}}}|[{{{archive-url}}}{{#if:{{{title|}}}| "{{{title}}}"|}}]|[{{{url}}}{{#if:{{{title|}}}| "{{{title}}}"|}}]}}{{#if:{{{website|}}}|<em>. {{{website}}}</em>}}{{#if:{{{archive-date|}}}|. Archived from the [{{{url}}} original] on {{{archive-date}}}}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}}} }}.</cite></includeonly><noinclude>
+
<includeonly><cite style="font-style: normal">{{#if:{{{last|}}}|{{{last}}},&nbsp;|}}{{#if:{{{first|}}}|{{{first}}}{{#if:{{{date|}}}| &nbsp;({{{date}}})}}.&nbsp;}}{{#if:{{{url|}}}|{{#if:{{{archive-url|}}}|[{{{archive-url}}}{{#if:{{{title|}}}| "{{{title}}}"|}}]|[{{{url}}}{{#if:{{{title|}}}| "{{{title}}}"|}}]}}{{#if:{{{website|}}}|<em>. {{{website}}}</em>}}{{#if:{{{publisher|}}}|. {{{publisher}}}}}{{#if:{{{first|}}}||{{#if:{{{date|}}}|. {{{date}}}}}}}{{#if:{{{archive-date|}}}|. Archived from the [{{{url}}} original] on {{{archive-date}}}}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}}} }}.</cite></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:44, 30 July 2024

Template Info-Icon.png

Template documentation

View - Edit

Basic usage

Markup Renders as
{{cite web |url=https://www.example.org/ |title=My Favorite Things, Part II |last=Doe |first=John |publisher=Open Publishing |date=April 30, 2005 |website=Encyclopedia of Things |access-date=July 24, 2024}}

Doe, John (April 30, 2005). "My Favorite Things, Part II". Encyclopedia of Things. Open Publishing. Retrieved July 24, 2024.

Markup Renders as
{{cite web |url=https://www.example.org/ |title=My Favorite Things, Part II |last=Doe |first=John |publisher=Open Publishing |date=April 30, 2005 |website=Encyclopedia of Things |access-date=July 24, 2024 |archive-url=https://web.archive.org/web/20140827000000/http://www.example.org |archive-date=August 27, 2014}}

Doe, John (April 30, 2005). "My Favorite Things, Part II". Encyclopedia of Things. Open Publishing. Archived from the original on August 27, 2014. Retrieved July 24, 2024.

Markup Renders as
{{cite web |url=https://www.example.org/ |title=My Favorite Things, Part II |last=Doe |first=John |date=2005-04-30 |access-date=2024-07-24}}

Doe, John (2005-04-30). "My Favorite Things, Part II". Retrieved 2024-07-24.

Markup Renders as
{{cite web |url=https://www.example.org/ |title=My Favorite Things, Part II |last=Doe |first=John |access-date=24 July 2024}}

Doe, John. "My Favorite Things, Part II". Retrieved 24 July 2024.

Markup Renders as
{{cite web |url=https://www.example.org/ |title=My Favorite Things, Part II}}
Markup Renders as
{{cite web |url=https://www.example.org/ |title=My Favorite Things, Part II |access-date=2024-07-24}}

"My Favorite Things, Part II". Retrieved 2024-07-24.