Template:Cite compare: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
("WT" does not actually save space unless "Sandbox" is suppressed, so we can just write "Wikitext" instead of using < abbr >. Actually, since "Wikitext" is (just slightly) the longest text, this ensures that the width of the first column is always the same for multiple invocations of the template with different parameters)
 
imported>Trappist the monk
(|template= to alias |mode= so that cs1|2 |mode= parameter can be demo'd / tested;)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable"
|+{{#ifeq:{{lc:{{{mode}}}}}|citation|Citation |Cite {{{mode}}}}} comparison{{#if:{{{header|}}}|&#32;{{{header}}}}}
|+{{#ifeq:{{lc:{{{template|{{{mode}}}}}}}}|citation|Citation |Cite {{{template|{{{mode}}}}}}}} comparison{{#if:{{{header|}}}|&#32;{{{header}}}}}
! scope="row" | Wikitext
! scope="row" | Wikitext
| {{#invoke:Template wrapper|list|_template={{#ifeq:{{lc:{{{mode}}}}}|citation|citation |cite {{{mode}}}}}|_exclude=old,mode,comment,nosandbox,header}}
| {{#invoke:Template wrapper|list|_template={{#ifeq:{{lc:{{{template|{{{mode}}}}}}}}|citation|citation |cite {{{template|{{{mode}}}}}}}}|_exclude=old, {{#if:{{{template|}}}||mode,}} template, comment,nosandbox,header}}
{{#ifeq:{{{old|}}}|yes|
{{#ifeq:{{{old|}}}|yes|
{{!}}-
{{!}}-
! scope="row" {{!}} Old
! scope="row" {{!}} Old
{{!}} <includeonly>{{#invoke:Template wrapper|wrap|_template=cite {{{mode|}}}/old|_exclude=mode,comment,nosandbox,header,old }}</includeonly>}}
{{!}} <includeonly>{{#invoke:Template wrapper|wrap|_template=cite {{{template|{{{mode}}}}}}/old|_exclude={{#if:{{{template|}}}||mode,}} template, comment,nosandbox,header,old }}</includeonly>}}
|-
|-
! scope="row" | Live
! scope="row" | Live
| <includeonly>{{#invoke:Template wrapper|wrap|_template=cite {{{mode|}}}|_exclude=mode,comment,nosandbox,header,old }}</includeonly>{{#if:{{{nosandbox|}}}||<nowiki/>
| <includeonly>{{#invoke:Template wrapper|wrap|_template=cite {{{template|{{{mode}}}}}}|_exclude={{#if:{{{template|}}}||mode,}} template, comment,nosandbox,header,old }}</includeonly>{{#if:{{{nosandbox|}}}||<nowiki/>
{{!}}-
{{!}}-
! scope="row" {{!}} Sandbox
! scope="row" {{!}} Sandbox
{{!}} class="cs1-sandbox" {{!}} <includeonly>{{#invoke:Template wrapper|wrap|_template=cite {{{mode|}}}/new|_exclude=mode,comment,nosandbox,header,old }}</includeonly>}}{{#if:{{{comment|}}}|<nowiki/>
{{!}} class="cs1-sandbox" {{!}} <includeonly>{{#invoke:Template wrapper|wrap|_template=cite {{{template|{{{mode}}}}}}/new|_exclude={{#if:{{{template|}}}||mode,}} template, comment,nosandbox,header,old }}</includeonly>}}{{#if:{{{comment|}}}|<nowiki/>
{{!}}-
{{!}}-
{{!}} colspan="2" {{!}} {{{comment}}}}}
{{!}} colspan="2" {{!}} {{{comment}}}}}

Latest revision as of 19:06, 10 April 2023

Cite {{{mode}}} comparison
Wikitext {{cite {{{mode}}}}}
Live
Sandbox