Vorlage:Cite tweet: Unterschied zwischen den Versionen

Make code legible, add "@" marker for Twitter handle, fix bug when only handle is provided
(Display full name by author-link if provided)
(Make code legible, add "@" marker for Twitter handle, fix bug when only handle is provided)
Zeile 5: Zeile 5:
| trans-title    = {{{trans-title|}}}
| trans-title    = {{{trans-title|}}}
| language      = {{{language|}}}
| language      = {{{language|}}}
| author        = {{#if: {{{last|}}} | {{#if: {{{first|}}} | {{{last}}}, {{{first}}} {{#if:{{{user|}}}|[{{{user}}}]}} | {{{last}}} {{#if:{{{user|}}}|[{{{user}}}]}} }} | {{#if: {{{author|}}} | {{{author}}} {{#if:{{{user|}}}|[{{{user}}}]}} | {{#if: {{{author-link|{{{authorlink|}}}}}} | {{{author-link|{{{authorlink|}}}}}} {{#if:{{{user|}}}|[{{{user}}}]}} }} | {{{user|<noinclude>{{{user}}} ({{{date}}})</noinclude>}}} }} }}
| author        = {{#if: {{{last|}}} |  
{{#if: {{{first|}}} |  
{{{last}}}, {{{first}}} {{#if: {{{user|}}} | [@{{{user}}}] }} |  
{{{last}}} {{#if: {{{user|}}} | [@{{{user}}}] }}
}} |  
{{#if: {{{author|}}} |  
{{{author}}} {{#if: {{{user|}}} | [@{{{user}}}] }} |  
{{#if: {{{author-link|}}} |  
{{{author-link}}} {{#if: {{{user|}}} | [@{{{user}}}] }} |  
@{{{user|<noinclude>{{{user}}} ({{{date}}})</noinclude>}}}
}}
}}
}}
| author-link    = {{{author-link|{{{authorlink|}}} }}}  
| author-link    = {{{author-link|{{{authorlink|}}} }}}  
| others        = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}}
| others        = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}}
Anonymer Benutzer