Template:Citation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(fix error when archive-url is present but url isn't, causing a broken and missing link) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<includeonly><onlyinclude><div id="ref{{{cite id|}}}" style="padding: 0px 5px"> | <includeonly><onlyinclude><div id="ref{{{cite id|}}}" style="padding: 0px 5px"> | ||
:{| style="background:transparent" | :{| style="background:transparent" | ||
|- | |- style="vertical-align:top;" | ||
|[[#cite{{{cite id|}}}|{{{cite id|}}}.]] | |{{#if:{{{cite id|}}}|[[#cite{{{cite id|}}}|{{{cite id|}}}.]]|{{tpl error|missing necessary {{param|cite id}}!}}}} | ||
|{{{1|}}}{{#if:{{{ | || <!-- | ||
author/date | |||
--> {{#if:{{{last|}}}{{{first|}}}{{{date|}}}{{{author|}}} | |||
| {{{author|{{#if:{{{last|}}}|{{{last|}}}{{#if:{{{first|}}}|, |}}}}{{{first|}}}}}}{{#if:{{{date|{{{year|}}}}}}| ({{{date|{{{year|No date set. How???}}}}}})|}}, <!-- | |||
-->|}}<!-- | |||
title | |||
-->{{#if:{{{title|{{{1|}}}}}} | |||
| {{#if:{{{url|}}} | |||
| [{{#if:{{{archive-url|}}} | |||
| {{#switch:{{{url-status}}} | |||
| live = {{{url}}} | |||
| #default = {{{archive-url}}}}}<!-- | |||
-->| {{{url}}}<!-- | |||
-->}} {{{title|{{{1|No title set. How???}}}}}}]{{#if:{{{archive-url|}}}|{{#switch:{{{url-status}}}|live=|deviated|dead|#default|= (Archived)|}}|}}<!-- | |||
-->|{{#if:{{{archive-url|}}}|[{{{archive-url}}} {{{title|{{{1|}}}}}}]|{{{title|{{{1|}}}}}}}}}}<!-- | |||
-->|{{tpl error|missing necessary {{param|title}}!}}}}. <!-- | |||
Website/work | |||
-->{{#if:{{{website|{{{work|}}}}}}|<i>{{{website|{{{work}}}}}}</i>. |}}<!-- | |||
Location | |||
-->{{#if:{{{location|}}}|{{{location}}}{{#if:{{{publisher|}}}|<nowiki>:</nowiki>|.}} |}}<!-- | |||
Publisher | |||
-->{{#if:{{{publisher|}}}|{{{publisher}}}. |}}<!-- | |||
Archived text | |||
-->{{#if:{{{archive-url|}}} | |||
| {{#switch:{{{url-status|}}} | |||
| live = [{{{archive-url}}} Archived] from the original | |||
| dead | deviated | #default = Archived from the {{#if:{{{url|}}}|[{{{url}}} original]|original}}{{#ifeq:{{{url-status|}}}|deviated| (Deviated)|}}}}<!-- | |||
-->{{#if:{{{archive-date|}}}| on {{{archive-date|}}}|}}. }}<!-- | |||
Retrieved | |||
-->{{#if:{{{access-date|}}}|Retrieved on {{{access-date}}}.}} | |||
|}</div></onlyinclude></includeonly> | |}</div></onlyinclude></includeonly> |
Latest revision as of 23:13, 4 September 2025
The above documentation is transcluded from Template:Citation/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.