{{cite encyclopedia|ISSN=1573-3912|encyclopedia=Encyclopedia of Islam|first=Veccia|last=Vaglieri|location=Leiden, The Netherlands|page=Vol. 2 844–850|publisher=Brill|sandbox=true|title=Fatima}}
Live
Vaglieri, Veccia. "Fatima". Encyclopedia of Islam. Leiden, The Netherlands: Brill. p. Vol. 2 844–850. ISSN1573-3912. {{cite encyclopedia}}: Unknown parameter |sandbox= ignored (help)
Sandbox
Vaglieri, Veccia. "Fatima". Encyclopedia of Islam. Leiden, The Netherlands: Brill. p. Vol. 2 844–850. ISSN1573-3912. {{cite encyclopedia}}: Unknown parameter |sandbox= ignored (help)
{{cite compare |old=no |mode=report |last=Burkley |first=George Gregory |title=Certificate of Death |work=The President John F. Kennedy Assassination Records Collection |publisher=[[National Archives and Records Administration]] |pages=[http://media.nara.gov/dc-metro/rg-272/605417-key-persons/kennedy_john_f_4-1_autopsy/kennedy_john_f_4-1_autopsy-0078.jpg front], [http://media.nara.gov/dc-metro/rg-272/605417-key-persons/kennedy_john_f_4-1_autopsy/kennedy_john_f_4-1_autopsy-0079.jpg back]|id=NAVMED Form M |date=23 November 1963}}
currently produces:
Cite report comparison
Wikitext
{{cite report|date=23 November 1963|first=George Gregory|id=NAVMED Form M|last=Burkley|pages=[http://media.nara.gov/dc-metro/rg-272/605417-key-persons/kennedy_john_f_4-1_autopsy/kennedy_john_f_4-1_autopsy-0078.jpg front], [http://media.nara.gov/dc-metro/rg-272/605417-key-persons/kennedy_john_f_4-1_autopsy/kennedy_john_f_4-1_autopsy-0079.jpg back]|publisher=[[National Archives and Records Administration]]|title=Certificate of Death|work=The President John F. Kennedy Assassination Records Collection}}
Live
Burkley, George Gregory (23 November 1963). Certificate of Death. The President John F. Kennedy Assassination Records Collection (Report). National Archives and Records Administration. pp. front, back. NAVMED Form M.
Sandbox
Burkley, George Gregory (23 November 1963). Certificate of Death. The President John F. Kennedy Assassination Records Collection (Report). National Archives and Records Administration. pp. front, back. NAVMED Form M.
Would it be possible to have the first box display the actual code (maybe with <nowiki> tags) to make it easier to see what code is contained in each parameter, such as this?
{{ cite report | last=Burkley | id=NAVMED Form M | first=George Gregory | publisher=[[National Archives and Records Administration]] | title=Certificate of Death | work=The President John F. Kennedy Assassination Records Collection | pages=[http://media.nara.gov/dc-metro/rg-272/605417-key-persons/kennedy_john_f_4-1_autopsy/kennedy_john_f_4-1_autopsy-0078.jpg front], [http://media.nara.gov/dc-metro/rg-272/605417-key-persons/kennedy_john_f_4-1_autopsy/kennedy_john_f_4-1_autopsy-0079.jpg back] | date=23 November 1963 }}
Partially. If the citation contains any templates, they are processed before {{cite compare}} does it's thing. For example, were I to use |date={{date}} in a comparison, you wouldn't see the template but rather the template's output:
Cite book comparison
Wikitext
{{cite book|date=11 September 2025|title=Title}}
Live
Title. 11 September 2025.
Sandbox
Title. 11 September 2025.
You might get around that by doing this:
Cite book comparison
Wikitext
{{cite book|date={{date}}|title=Title}}
Live
Title. {{date}}. {{cite book}}: Check date values in: |date= (help)
Sandbox
Title. {{date}}. {{cite book}}: Check date values in: |date= (help)
but, as you can see, that method presents its own set of problems.
@Trappist the monk: I don't think I worded my question properly. Would it be possible to change the {{cite compare}} template so that editors could use it exactly the same way, and the old/live/sandbox rows would output the same results, but the first row would output the exact code (as if it was wrapped in {{nowiki}}? Thanks! GoingBatty (talk) 02:18, 6 January 2015 (UTC)[reply]
Draw me a picture because I can't tell the difference between this question and the original. In all of the the {{cite compare}} templates on this page, do not the top rows show all of the 'unprocessed' code that an editor would write to get the rendered results in the lower rows? (excepting, as I noted, templates inside the {{cite compare}} template which are processed before {{cite compare}} is processed)
Sorry - I could have sworn that the |pages= parameter was showing the links in the top rows instead of the unprocessed code. My bad. Off to trout myself.... GoingBatty (talk) 03:43, 6 January 2015 (UTC)[reply]
Add listnowiki option to /sandbox of Module:PassArguments
I added a "listnowiki" option to Module:PassArguments/sandbox and modified the cite/compare/sandbox to use it. It doesn't work, though, because I don't know how to program in Lua.
Cite web compare
{{cite web|author=author|date=6 Nov 1995|title=Title}}
Live
author (6 Nov 1995). "Title". {{cite web}}: |author= has generic name (help); Missing or empty |url= (help)
Sandbox
author (6 Nov 1995). "Title". {{cite web}}: |author= has generic name (help); Missing or empty |url= (help)
Cite web compare
{{cite web|author=author|date=6 Nov 1995|title=Review of ''Title''}}
Live
author (6 Nov 1995). "Review of Title". {{cite web}}: |author= has generic name (help); Missing or empty |url= (help)
Sandbox
author (6 Nov 1995). "Review of Title". {{cite web}}: |author= has generic name (help); Missing or empty |url= (help)
Cite web compare
{{cite web|author=author|date=6 Nov 1995|title=''Title''<span class="nowrap" style="padding-left:0.1em;">'</span>s influence on popular culture}}
Live
author (6 Nov 1995). "Title's influence on popular culture". {{cite web}}: |author= has generic name (help); Missing or empty |url= (help)
Sandbox
author (6 Nov 1995). "Title's influence on popular culture". {{cite web}}: |author= has generic name (help); Missing or empty |url= (help)
I've removed the last <nowiki /> tag (which replaced the </span> tag) and done some cleanup. Initial white-space after the pipe in the {{#if:{{{comment|}}}| is ignored so the <nowiki /> tag, immediately following the pipe maintains subsequent newline whitespace so that {{!}}- are the first characters on the line as required by the wiki table markup.
Trappist the monk : Thank you. I did several checks, and your changes look good. FWIW, {{Cite compare2}} also has lint errors of missing end tag (<span>) and stripped tag (</span>). This time I won't even try, since you or others have the skills to do this quickly. —Anomalocaris (talk) 21:16, 24 December 2017 (UTC)[reply]
I have tweaked this template so that its |mode= parameter is aliased with |template=. I did this so that the cs1|2 |mode= parameter can be used in the comparisons. For example, this does not work:
because two |mode= parameters, MediaWiki uses the right most and discards any other |mode= and, because {{cite cs2}} and {{cite cs2/new}} do not exist, Module:Template wrapper vomits Lua errors: