Template:Citation: Difference between revisions
Jump to navigation
Jump to search
(updated archiveurl) |
(fix error when archive-url is present but url isn't, causing a broken and missing link) |
||
Line 22: | Line 22: | ||
-->| {{{url}}}<!-- | -->| {{{url}}}<!-- | ||
-->}} {{{title|{{{1|No title set. How???}}}}}}]{{#if:{{{archive-url|}}}|{{#switch:{{{url-status}}}|live=|deviated|dead|#default|= (Archived)|}}|}}<!-- | -->}} {{{title|{{{1|No title set. How???}}}}}}]{{#if:{{{archive-url|}}}|{{#switch:{{{url-status}}}|live=|deviated|dead|#default|= (Archived)|}}|}}<!-- | ||
-->|{{{title|{{{1|}}}}}}}}<!-- | -->|{{#if:{{{archive-url|}}}|[{{{archive-url}}} {{{title|{{{1|}}}}}}]|{{{title|{{{1|}}}}}}}}}}<!-- | ||
-->|{{tpl error|missing necessary {{param|title}}!}}}}. <!-- | -->|{{tpl error|missing necessary {{param|title}}!}}}}. <!-- | ||
Line 50: | Line 50: | ||
| {{#switch:{{{url-status|}}} | | {{#switch:{{{url-status|}}} | ||
| live = [{{{archive-url}}} Archived] from the original | | live = [{{{archive-url}}} Archived] from the original | ||
| dead | deviated | #default = Archived from the [{{{url}}} original]{{#ifeq:{{{url-status|}}}|deviated| (Deviated)|}}}}<!-- | | dead | deviated | #default = Archived from the {{#if:{{{url|}}}|[{{{url}}} original]|original}}{{#ifeq:{{{url-status|}}}|deviated| (Deviated)|}}}}<!-- | ||
-->{{#if:{{{archive-date|}}}| on {{{archive-date|}}}|}}. }}<!-- | -->{{#if:{{{archive-date|}}}| on {{{archive-date|}}}|}}. }}<!-- | ||
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.