Vorlage:Cite tweet: Unterschied zwischen den Versionen
Simplify code
(Make code legible, add "@" marker for Twitter handle, fix bug when only handle is provided) |
(Simplify code) |
||
| Zeile 7: | Zeile 7: | ||
| author = {{#if: {{{last|}}} | | | author = {{#if: {{{last|}}} | | ||
{{#if: {{{first|}}} | | {{#if: {{{first|}}} | | ||
{{{last}}}, {{{first}}} | {{{last}}}, {{{first}}} [@{{{user|}}}] | | ||
{{{last}}} | {{{last}}} [@{{{user|}}}] | ||
}} | | }} | | ||
{{#if: {{{author|}}} | | {{#if: {{{author|}}} | | ||
{{{author}}} | {{{author}}} [@{{{user|}}}] | | ||
{{#if: {{{author-link|}}} | | {{#if: {{{author-link|}}} | | ||
{{{author-link}}} | {{{author-link}}} [@{{{user|}}}] | | ||
@{{{user|<noinclude>{{{user}}} ({{{date}}})</noinclude>}}} | @{{{user|<noinclude>{{{user}}} ({{{date}}})</noinclude>}}} | ||
}} | }} | ||