Vorlage:Cite tweet: Unterschied zwischen den Versionen
implement automatic date insertion, copied from sandbox
(change to use url-status instead) |
(implement automatic date insertion, copied from sandbox) |
||
| Zeile 20: | Zeile 20: | ||
| author-link = {{{author-link|{{{authorlink|}}} }}} | | author-link = {{{author-link|{{{authorlink|}}} }}} | ||
| others = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}} | | others = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}} | ||
| date = {{{date|}}} | | date = {{{date|{{#if:{{{number|}}}|{{TwitterSnowflake|{{{number}}}}}}}}}} | ||
| via = {{#ifeq:{{{link|}}}|no|Twitter|[[Twitter]]}} | | via = {{#ifeq:{{{link|}}}|no|Twitter|[[Twitter]]}} | ||
| type = Tweet | | type = Tweet | ||
| Zeile 42: | Zeile 42: | ||
No number --> {{#if:{{{number|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>|number=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#if:{{{date|}}}||;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!-- | No number --> {{#if:{{{number|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>|number=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#if:{{{date|}}}||;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!-- | ||
Date doesn't match timestamp -->{{TwitterSnowflake/datecheck | |||
|id_str={{{number|}}} | |||
|date={{{date|}}} | |||
|error1=<span style="font-size:100%" class="error citation-comment"><kbd>|date=</kbd> mismatches calculated date from <kbd>|number=</kbd> by two or more days ([[Template:Cite_tweet#Error_detection|help]])</span>{{main other|[[Category:Cite tweet templates with errors]]}} | |||
|error2=<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>|date=</kbd>, and posted before November 4, 2010 ([[Template:Cite_tweet#Error_detection|help]])</span>{{main other|[[Category:Cite tweet templates with errors]]}} | |||
}}</includeonly><noinclude>{{documentation}}</noinclude> | |||