Template:Cite court/sandbox
{{#if:{{{ref|}}}
|
}}{{#if:{{{litigants|}}}
|{{if all|{{#ifexist:{{{litigants|}}}|article by this name}}
|{{#ifeq:{{#invoke:Redirect|main|{{{litigants}}}}}|{{FULLPAGENAME}}||not a self-redirect}}
|{{#ifeq:{{{litigants|}}}|{{PAGENAMEBASE}}||not a self-link or link to DAB for self}}
|{{#if:{{{litigants-force-plain|}}}||not overridden}}
|n=4
|then={{{litigants}}}
|else={{{litigants}}}
}}{{#if:{{{vol|}}}{{{reporter|}}}{{{opinion|}}}
|,
}}
}}{{#if:{{{url|}}}
|{{#if:{{{vol|}}}{{{reporter|}}}{{{opinion|}}}
|[{{#ifeq: {{{url-status}}}|live
|{{{url}}}
|{{if empty|{{{archive-url|}}}|{{{url|}}}}}
}} {{#if:{{{vol|}}}
|{{{vol}}}
}}{{#if:{{{reporter|}}}
| {{delink|{{{reporter}}}}}
}}{{#if:{{{opinion|}}}
| {{{opinion}}}
}}]
}}
|{{#if:{{{vol|}}}
|{{{vol}}}
}}{{#if:{{{reporter|}}}
| {{delink|{{{reporter}}}}}
}}{{#if:{{{opinion|}}}
| {{{opinion}}}
}}
}}{{#if:{{{pinpoint|}}}
|, {{{pinpoint}}}
}}{{#if:{{{court|}}}{{{date|}}}{{{year|}}}
| ({{#if:{{{court|}}}
|{{{court}}}
}}{{#if:{{{date|{{{year|}}}}}}
|{{#if:{{{court|}}}
|
}}{{{date|{{{year}}}}}}
}})
}}{{#if:{{{quote|}}}
| ("{{{quote}}}")
|
}}{{#if:{{{url|}}}
|{{#if:{{{vol|}}}{{{reporter|}}}{{{opinion|}}}
|
|, [{{#ifeq: {{{url-status}}}|live
|{{{url}}}
|{{if empty|{{{archive-url|}}}|{{{url|}}}}}
}} {{{text|Text}}}]
}}
}}{{#if:{{{archive-url|}}}|{{
#ifeq:{{{url-status}}}|live
|, [{{{archive-url|}}} archived] from the original
|, archived from [{{{url}}} the original]}}{{
#if:{{{archive-date|}}}| on {{{archive-date}}}
}}
}}{{#switch:{{{postscript|}}}
|none=
|=.
|{{{postscript}}}
}}{{#if:{{{ref|}}}|}}{{#invoke:Check for unknown parameters|check|unknown={{main other|_VALUE_{{PAGENAME}}}}|preview=Page using Template:Cite court with unknown parameter "_VALUE_"|ignoreblank=y | archive-date | archive-url| court | date | litigants | litigants-force-plain | opinion | pinpoint | postscript | quote | reporter | text | url | url-status | vol | year | ref | accessdate | access-date}}
{{Documentation}}