Difference between revisions of "Template:Cite web"
From LFS Manual
Jump to navigationJump to search (archive-url and archive-date) |
(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) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><cite style="font-style: normal">{{#if:{{{last|}}}|{{{last}}}, |}}{{#if:{{{first|}}}|{{{first}}}{{#if:{{{date|}}}| ({{{date}}})}}. }}{{#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}}} | + | <includeonly><cite style="font-style: normal">{{#if:{{{last|}}}|{{{last}}}, |}}{{#if:{{{first|}}}|{{{first}}}{{#if:{{{date|}}}| ({{{date}}})}}. }}{{#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 11:44, 30 July 2024
Template documentation
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. |