Difference between revisions of "Template:Citation/core/sandbox3"
< Template:Citation | core
Jump to navigation
Jump to search
imported>Wikid77 (reloaded from August 2012; put 14 gated-if structures to speed the check of rare options, such as Surname2 as 16x faster to skip Surname3+, or 3x faster by if {JSTOR|JFM|LCCN|.. PMID..|SSRN |ZBL|ID}.) |
imported>Wikid77 (on 14 gated-if structures, unnested the gateway parameters.) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <span class="citation {{{Citation class|{{{Citation type|}}}}}}" | + | <noinclude><!-- |
| + | -- | ||
| + | -- This version, Template:Citation/core/sandbox3, is being used to | ||
| + | -- test faster techniques for checking the parameters. Due to major | ||
| + | -- changes, it might not always work like {Citation/core}. | ||
| + | -- | ||
| + | -- As of 13 August 2012, this ran 30% faster than {Citation/core}. | ||
| + | -- | ||
| + | * core now: {{Citation/core |Title=Rarrgl | Series=Ser34 |URL=x.com}} | ||
| + | * core/sb3: {{Citation/core/sandbox3 |Title=Rarrgl | Series=Ser34 |URL=x.com}} | ||
| + | -- | ||
| + | --></noinclude><span class="citation {{{Citation class|{{{Citation type|}}}}}}" | ||
{{ | {{ | ||
#switch:{{{Ref|}}} | #switch:{{{Ref|}}} | ||
| Line 250: | Line 261: | ||
#if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}} | #if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}} | ||
|{{ | |{{ | ||
| − | #if:{{{Surname1|{{{EditorSurname1| | + | #if:{{{Surname1|}}}{{{EditorSurname1|}}} |
|{{{Sep|,}}}  | |{{{Sep|,}}}  | ||
}}{{Citation/make link | }}{{Citation/make link | ||
| Line 351: | Line 362: | ||
|{{{Sep|,}}} {{{Other|}}} | |{{{Sep|,}}} {{{Other|}}} | ||
}}{{ | }}{{ | ||
| − | #if: {{{Surname1|{{{EditorSurname1|{{{IncludedWorkTitle| | + | #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}} |
|{{{Sep|,}}} }}{{ | |{{{Sep|,}}} }}{{ | ||
| − | #if: {{{Title|{{{TransTitle| | + | #if: {{{Title|}}}{{{TransTitle|}}} |
|{{Citation/make link | |{{Citation/make link | ||
| 1={{ | | 1={{ | ||
| Line 382: | Line 393: | ||
}} | }} | ||
}}{{ | }}{{ | ||
| − | #if: {{{language|{{{format| | + | #if: {{{language|}}}{{{format|}}}|{{ |
#if: {{{language|}}} | #if: {{{language|}}} | ||
| (in {{{language}}}) | | (in {{{language}}}) | ||
| Line 392: | Line 403: | ||
#if: {{{Periodical|}}} | #if: {{{Periodical|}}} | ||
|{{ | |{{ | ||
| − | #if:{{{Title|{{{IncludedWorkTitle|{{{TransTitle| | + | #if:{{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} |
|{{{Sep|,}}}  | |{{{Sep|,}}}  | ||
}}''<nowiki />{{{Periodical}}}<nowiki />''{{ | }}''<nowiki />{{{Periodical}}}<nowiki />''{{ | ||
| Line 410: | Line 421: | ||
}}{{ | }}{{ | ||
#if: {{{Volume|}}} | #if: {{{Volume|}}} | ||
| − | |  | + | | '''<nowiki />{{{Volume}}}''' |
| − | + | }}{{ | |
| − | + | #if: {{{Issue|}}} | |
| − | + | | ({{{Issue}}}) | |
| − | |||
| − | |||
| − | |||
| − | |||
}}{{ | }}{{ | ||
#if: {{{At|}}} | #if: {{{At|}}} | ||
| Line 424: | Line 431: | ||
|{{ | |{{ | ||
<!--============ Anything else with a title, including books ============--> | <!--============ Anything else with a title, including books ============--> | ||
| − | #if: {{{Title|{{{TransItalic| | + | #if: {{{Title|}}}{{{TransItalic|}}} |
|{{ | |{{ | ||
| − | #if: {{{Surname1|{{{EditorSurname1|{{{IncludedWorkTitle|<!-- | + | #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}<!-- |
| − | -->{{{Periodical| | + | -->{{{Periodical|}}} |
|{{{Sep|,}}} | |{{{Sep|,}}} | ||
}} {{Citation/make link | }} {{Citation/make link | ||
| Line 449: | Line 456: | ||
}} | }} | ||
}}{{ | }}{{ | ||
| − | #if: {{{Volume|{{{TitleType|{{{Series| | + | #if: {{{Volume|}}}{{{TitleType|}}}{{{Series|}}}{{{Edition|}}}<!-- |
| − | --> | + | -->{{{Other|}}} |
|{{ | |{{ | ||
#if: {{{TitleType|}}} | #if: {{{TitleType|}}} | ||
| Line 467: | Line 474: | ||
| ({{{Edition}}} ed.) | | ({{{Edition}}} ed.) | ||
}} | }} | ||
| − | }}<!--endif {Volume | + | }}<!--endif {Volume/TitleType/Series/Edition/Other} |
-->{{ | -->{{ | ||
#if: {{{PublicationPlace|}}} | #if: {{{PublicationPlace|}}} | ||
| Line 481: | Line 488: | ||
}}{{ | }}{{ | ||
<!--============ Date (if no author/editor) ============--> | <!--============ Date (if no author/editor) ============--> | ||
| − | #if: {{{Surname1|{{{EditorSurname1| | + | #if: {{{Surname1|}}}{{{EditorSurname1|}}} |
| | | | ||
|{{ | |{{ | ||
| Line 519: | Line 526: | ||
}} | }} | ||
}}{{ | }}{{ | ||
| − | #if: {{{ | + | #if: {{{DOI|}}}{{{ARXIV|}}}{{{ASIN|}}}{{{BIBCODE|}}} |
|{{ | |{{ | ||
<!--============ arXiv ==============--> | <!--============ arXiv ==============--> | ||
| Line 537: | Line 544: | ||
|{{{Sep|,}}} {{citation/identifier |identifier=doi |input1={{{DOI|}}} |input2={{{DoiBroken|}}} |input3={{{template doc demo|}}}}} | |{{{Sep|,}}} {{citation/identifier |identifier=doi |input1={{{DOI|}}} |input2={{{DoiBroken|}}} |input3={{{template doc demo|}}}}} | ||
}} | }} | ||
| − | }}<!--endif {ARXIV | + | }}<!--endif {ARXIV/ASIN/BIBCODE/DOI}-->{{ |
<!--============ ISBN ===============--> | <!--============ ISBN ===============--> | ||
#if: {{{ISBN|}}} | #if: {{{ISBN|}}} | ||
| Line 546: | Line 553: | ||
|{{{Sep|,}}} {{citation/identifier |identifier=issn |input1={{{ISSN|}}} }} | |{{{Sep|,}}} {{citation/identifier |identifier=issn |input1={{{ISSN|}}} }} | ||
}}{{ | }}{{ | ||
| − | #if:{{{JSTOR|{{{JFM|{{{LCCN|{{{MR|{{{OCLC|{{{OL| | + | #if:{{{JSTOR|}}}{{{JFM|}}}{{{LCCN|}}}{{{MR|}}}{{{OCLC|}}}{{{OL|}}}<!-- |
| − | -->{{{PMC|{{{PMID|{{{RFC|{{{SSRN| | + | -->{{{OSTI|}}}{{{PMC|}}}{{{PMID|}}}{{{RFC|}}}{{{SSRN|}}}<!-- |
| − | -->}}} | + | -->{{{ZBL|}}}{{{ID|}}} |
|{{ | |{{ | ||
<!--============ JFM ================--> | <!--============ JFM ================--> | ||
| Line 602: | Line 609: | ||
|{{{Sep|,}}} {{{ID}}} | |{{{Sep|,}}} {{{ID}}} | ||
}} | }} | ||
| − | }}<!--endif {JSTOR | + | }}<!--endif {JSTOR/JFM/LCCN/...PMID../SSRN/ZBL/ID}-->{{ |
<!--============ Archive data, etc ===========--> | <!--============ Archive data, etc ===========--> | ||
#if: {{{Archive|}}} | #if: {{{Archive|}}} | ||
|{{{Sep|,}}} {{{Archive}}}[[Category:Pages using deprecated citation archive parameters]] | |{{{Sep|,}}} {{{Archive}}}[[Category:Pages using deprecated citation archive parameters]] | ||
|{{ | |{{ | ||
| − | #if:{{{ArchiveURL|{{{ArchiveDate| | + | #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}} |
| {{{Sep|,}}} {{#ifeq: {{{DeadURL|}}} | no | | {{{Sep|,}}} {{#ifeq: {{{DeadURL|}}} | no | ||
| {{#if:{{{ArchiveURL|}}} | | {{#if:{{{ArchiveURL|}}} | ||
| Line 624: | Line 631: | ||
}}{{ | }}{{ | ||
<!--============ URL and AccessDate ============--> | <!--============ URL and AccessDate ============--> | ||
| − | #if: {{{URL|{{{IncludedWorkURL| | + | #if: {{{URL|}}}{{{IncludedWorkURL|}}}{{#ifeq:{{{DeadURL|}}}|no|{{{ArchiveURL|}}}|}} |
|{{ | |{{ | ||
| − | #if: {{{Title|{{{IncludedWorkTitle|{{{TransTitle| | + | #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}} |
|<span class="printonly">{{{Sep|,}}} {{ | |<span class="printonly">{{{Sep|,}}} {{ | ||
#if: {{{IncludedWorkURL|}}} | #if: {{{IncludedWorkURL|}}} | ||
| Line 712: | Line 719: | ||
#if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}} | #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}} | ||
}}{{ | }}{{ | ||
| − | #if:{{{Volume|{{{Series|{{{Issue|{{{Edition|{{{ARXIV|<!-- | + | #if:{{{Volume|}}}{{{Series|}}}{{{Issue|}}}{{{Edition|}}}{{{ARXIV|}}}<!-- |
| − | -->{{{ASIN|{{{BIBCODE|{{{DOI| | + | -->{{{ASIN|}}}{{{BIBCODE|}}}{{{DOI|}}} |
| − | |||
|{{ | |{{ | ||
#if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}} | #if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}} | ||
| Line 732: | Line 738: | ||
#if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}} | #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}} | ||
}} | }} | ||
| − | }}<!--endif {Volume | + | }}<!--endif {Volume/Series/.../DOI}-->{{ |
#if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}} | #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}} | ||
}}{{ | }}{{ | ||
#if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}} | #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}} | ||
}}{{ | }}{{ | ||
| − | #if:{{{JSTOR|{{{JFM|{{{LCCN|{{{MR|{{{OCLC|{{{OL| | + | #if:{{{JSTOR|}}}{{{JFM|}}}{{{LCCN|}}}{{{MR|}}}{{{OCLC|}}}{{{OL|}}}<!-- |
| − | -->{{{PMC|{{{PMID|{{{RFC|{{{SSRN|{{{ZBL| | + | -->{{{OSTI|}}}{{{PMC|}}}{{{PMID|}}}{{{RFC|}}}{{{SSRN|}}}{{{ZBL|}}} |
| − | |||
|{{ | |{{ | ||
#if: {{{JFM|}}} |&rft.jfm={{urlencode:{{{JFM}}}}} | #if: {{{JFM|}}} |&rft.jfm={{urlencode:{{{JFM}}}}} | ||
| Line 765: | Line 770: | ||
#if: {{{ZBL|}}} |&rft_id=info:zbl/{{urlencode:{{{ZBL}}}}} | #if: {{{ZBL|}}} |&rft_id=info:zbl/{{urlencode:{{{ZBL}}}}} | ||
}} | }} | ||
| − | }}<!--endif {JSTOR | + | }}<!--endif {JSTOR/JFM/LCCN/...PMID../SSRN/ZBL}-->{{ |
#if: {{{URL|}}}{{{IncludedWorkURL|}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}} | #if: {{{URL|}}}{{{IncludedWorkURL|}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}} | ||
}}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;"> </span></span><noinclude> | }}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;"> </span></span><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 13:01, 13 August 2012
| This template is experimental. It should not be used in article space until it has been fully developed and tested. |
Usage
See also
| The above documentation is transcluded from Template:Citation/core/sandbox3/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |