Template:Ref supports2/sandbox: Difference between revisions
Account for inability to either have multiple refs with name="" or multiple unnamed parameters in {{#tag:ref |
Forgot to have the replaces for any double quotes in the text strings. Move pages= from cite template to rs2 template |
||
Line 1: | Line 1: | ||
{{abbr|{{#if:{{{name|}}}{{{refname|}}}|{{#tag:ref |{{#if:{{{ref|}}}|{{{ref}}}}}|name={{#if:{{{name|}}}|{{{name}}}}}{{#if:{{{refname|}}}|{{{refname}}}}}}}|{{#tag:ref |{{#if:{{{ref|}}}|{{{ref}}}}}}}}}{{#if:{{{pages|}}}|{{sup|:{{{pages}}}}}}}{{#if:{{{page|}}}|{{sup|:{{{page}}}}}}}|Supports: {{#if:{{{text|}}}|"{{{text}}}"}}{{#if:{{{text1|}}}|"{{{text1}}}"}}{{#if:{{{text2|}}}|, "{{{text2}}}"}}{{#if:{{{text3|}}}|, "{{{text3}}}"}}{{#if:{{{text4|}}}|, "{{{text4}}}"}}{{#if:{{{text5|}}}|, "{{{text5}}}"}}{{#if:{{{text6|}}}|, "{{{text6}}}"}}{{#if:{{{text7|}}}|, "{{{text7}}}"}}{{#if:{{{text8|}}}|, "{{{text8}}}"}}{{#if:{{{text9|}}}|, "{{{text9}}}"}}}} <noinclude> |
{{abbr|{{#if:{{{name|}}}{{{refname|}}}|{{#tag:ref |{{#if:{{{ref|}}}|{{{ref}}}}}|name={{#if:{{{name|}}}|{{{name}}}}}{{#if:{{{refname|}}}|{{{refname}}}}}}}|{{#tag:ref |{{#if:{{{ref|}}}|{{{ref}}}}}}}}}{{#if:{{{pages|}}}|{{sup|:{{{pages}}}}}}}{{#if:{{{page|}}}|{{sup|:{{{page}}}}}}}|Supports: {{#if:{{{text|}}}|"{{replace|{{{text}}}|"|"}}"}}{{#if:{{{text1|}}}|"{{replace|{{{text1}}}|"|"}}"}}{{#if:{{{text2|}}}|, "{{replace|{{{text2}}}|"|"}}"}}{{#if:{{{text3|}}}|, "{{replace|{{{text3}}}|"|"}}"}}{{#if:{{{text4|}}}|, "{{replace|{{{text4}}}|"|"}}"}}{{#if:{{{text5|}}}|, "{{replace|{{{text5}}}|"|"}}"}}{{#if:{{{text6|}}}|, "{{replace|{{{text6}}}|"|"}}"}}{{#if:{{{text7|}}}|, "{{replace|{{{text7}}}|"|"}}"}}{{#if:{{{text8|}}}|, "{{replace|{{{text8}}}|"|"}}"}}{{#if:{{{text9|}}}|, "{{replace|{{{text9}}}|"|"}}"}}}} <noinclude> |
||
The Cite error above is normal for this page. |
The Cite error above is normal for this page. |
||
Line 8: | Line 8: | ||
<nowiki> |
<nowiki> |
||
{{Ref supports2/sandbox |name=French |ref={{cite journal | last1 = French | first1 = P | last2 = James | first2 = E | last3 = Walsh | first3 = N | year = 2012 | title = Analysis of genetic variation in a disjunct, narcotic producing, population of Duboisia hopwoodii (F. Muell.) F. Muell | url = http://www.rbg.vic.gov.au/documents/Muelleria_30-1_6_French_James_Walsh.pdf | format = PDF | journal = Muelleria | volume = 30 | issue = 1 |
{{Ref supports2/sandbox |name=French |ref={{cite journal | last1 = French | first1 = P | last2 = James | first2 = E | last3 = Walsh | first3 = N | year = 2012 | title = Analysis of genetic variation in a disjunct, narcotic producing, population of Duboisia hopwoodii (F. Muell.) F. Muell | url = http://www.rbg.vic.gov.au/documents/Muelleria_30-1_6_French_James_Walsh.pdf | format = PDF | journal = Muelleria | volume = 30 | issue = 1}} |text=The population of Duboisia hopwoodii around the Mulligan River used in the production of a much sought after version of pituri is high in nicotine and low in nornicotine.| pages = 65–71 }} |
||
</nowiki><br/> |
</nowiki><br/> |
||
Then subsequent uses of the source could just be: |
Then subsequent uses of the source could just be: |
||
<nowiki> |
<nowiki> |
||
{{Ref supports2/sandbox |name=French | |
{{Ref supports2/sandbox |name=French | page = 70 |text=Aboriginal people frequently burnt pituri to promote new growth. }} |
||
</nowiki> |
</nowiki> |
||
Page number presentation could resemble that done using {{tl|rp}}. |
Page number presentation could resemble that done using {{tl|rp}}. |
||
This would then render as:<br/> |
This would then render as:<br/> |
||
The population of ''Duboisia hopwoodii'' around the Mulligan River used in the production of a much sought after version of pituri is high in nicotine and low in nornicotine.{{Ref supports2/sandbox |name=French |ref={{cite journal | last1 = French | first1 = P | last2 = James | first2 = E | last3 = Walsh | first3 = N | year = 2012 | title = Analysis of genetic variation in a disjunct, narcotic producing, population of Duboisia hopwoodii (F. Muell.) F. Muell | url = http://www.rbg.vic.gov.au/documents/Muelleria_30-1_6_French_James_Walsh.pdf | format = PDF | journal = Muelleria | volume = 30 | issue = 1 |
The population of ''Duboisia hopwoodii'' around the Mulligan River used in the production of a much sought after version of pituri is high in nicotine and low in nornicotine.{{Ref supports2/sandbox |name=French |ref={{cite journal | last1 = French | first1 = P | last2 = James | first2 = E | last3 = Walsh | first3 = N | year = 2012 | title = Analysis of genetic variation in a disjunct, narcotic producing, population of Duboisia hopwoodii (F. Muell.) F. Muell | url = http://www.rbg.vic.gov.au/documents/Muelleria_30-1_6_French_James_Walsh.pdf | format = PDF | journal = Muelleria | volume = 30 | issue = 1}} |text=The population of Duboisia hopwoodii around the Mulligan River used in the production of a much sought after version of pituri is high in nicotine and low in nornicotine.| pages = 65–71 }} Aboriginal people frequently burnt pituri to promote new growth.{{Ref supports2/sandbox |name=French | page = 70 |text=Aboriginal people frequently burnt pituri to promote new growth. }} |
||
Just some text with a simple ref supports without a name.{{Ref supports2/sandbox |ref=This is a reference for a simple ref supports without a name. |text=Just some text with a simple ref supports without a name.}} |
Just some text with a simple ref supports without a name.{{Ref supports2/sandbox |ref=This is a reference for a simple ref supports without a name. |text=Just some text with a simple ref supports without a name.}} |
Revision as of 10:23, 18 March 2016
Cite error: There are <ref>
tags on this page without content in them (see the help page).
The Cite error above is normal for this page.
Sandbox test documentation:
{{Ref supports2/sandbox |name=French |ref={{cite journal | last1 = French | first1 = P | last2 = James | first2 = E | last3 = Walsh | first3 = N | year = 2012 | title = Analysis of genetic variation in a disjunct, narcotic producing, population of Duboisia hopwoodii (F. Muell.) F. Muell | url = http://www.rbg.vic.gov.au/documents/Muelleria_30-1_6_French_James_Walsh.pdf | format = PDF | journal = Muelleria | volume = 30 | issue = 1}} |text=The population of Duboisia hopwoodii around the Mulligan River used in the production of a much sought after version of pituri is high in nicotine and low in nornicotine.| pages = 65–71 }}
Then subsequent uses of the source could just be: {{Ref supports2/sandbox |name=French | page = 70 |text=Aboriginal people frequently burnt pituri to promote new growth. }}
Page number presentation could resemble that done using {{rp}}.
This would then render as:
The population of Duboisia hopwoodii around the Mulligan River used in the production of a much sought after version of pituri is high in nicotine and low in nornicotine.[1]:65–71 Aboriginal people frequently burnt pituri to promote new growth.[1]:70
Just some text with a simple ref supports without a name.[2]
Some text with ref supports with two text segments.[3]
- ^ a b French, P; James, E; Walsh, N (2012). "Analysis of genetic variation in a disjunct, narcotic producing, population of Duboisia hopwoodii (F. Muell.) F. Muell" (PDF). Muelleria. 30 (1).
- ^ This is a reference for a simple ref supports without a name.
- ^ This is a reference for Some text with ref supports with two text segments.