User:Dross/sandbox/cite author: Difference between revisions
Content added Content deleted
(rm <code>) |
(second testing round; adding addtl author fields) |
||
Line 2: | Line 2: | ||
<onlyinclude> |
<onlyinclude> |
||
<!-- FIRST AUTHOR --> |
|||
{{#if:{{{author1|{{{author|{{{last1|{{{last|{{{first1|{{{first|}}}}}}}}}}}}}}}}}}| |
|||
{{#if:{{{author1|{{{author|{{{last1|{{{last|{{{first1|{{{first|}}}}}}}}}}}}}}}}}}|<!-- CHECK FOR ANY 1ST AUTHOR DETAILS --> |
|||
{{{author1|{{{author|{{#if:{{{last1|{{{last|}}}}}}|<!-- DETERMINE AUTHOR OR LAST, FIRST FORMAT --> |
|||
{{#if:{{{first1|{{{first|}}}}}}|<!-- ERROR CHECKING FOR ANY MISSING PARAMS --> |
|||
{{{last1|{{{last}}}}}}, {{{first1|{{{first}}}}}}| |
{{{last1|{{{last}}}}}}, {{{first1|{{{first}}}}}}| |
||
<span style="color:red;">Missing parameter {{para|first1}}. If author does not have a first name, use {{para|author1}} instead.</span> |
<span style="color:red;">Missing parameter <code>{{para|first1}}</code>. If author does not have a first name, use <code>{{para|author1}}</code> instead.</span> |
||
}}| |
}}| |
||
<span style="color:red;">Missing parameter {{para|last1}}. If author does not have a last name, use {{para|author1}} instead.</span> |
<span style="color:red;">Missing parameter <code>{{para|last1}}</code>. If author does not have a last name, use <code>{{para|author1}}</code> instead.</span> |
||
}} |
}} |
||
}}}}}} |
}}}}}} |
||
}} |
}} |
||
<!-- SECOND AUTHOR --> |
|||
{{#if:{{{author1|}}}|<!-- ENSURE THAT THERE IS A FIRST AUTHOR BEFORE ADDING A SECOND --> |
|||
{{#if:{{{author2|{{{last2|{{{first2|}}}}}}}}}|<!-- CHECK FOR ANY 2ND AUTHOR DETAILS --> |
|||
{{{author2|{{#if:{{{last2|}}}|<!-- DETERMINE AUTHOR OR LAST, FIRST FORMAT --> |
|||
{{#if:{{{first2|}}}|<!-- ERROR CHECKING FOR ANY MISSING PARAMS --> |
|||
{{{last2}}}, {{{first2}}}| |
|||
<span style="color:red;">Missing parameter {{para|first2}}. If author does not have a first name, use {{para|author2}} instead.</span> |
|||
}}| |
|||
<span style="color:red;">Missing parameter {{para|last2}}. If author does not have a last name, use {{para|author2}} instead.</span> |
|||
}} |
|||
}}} |
|||
}} |
|||
|}} |
|||
</onlyinclude> |
</onlyinclude> |