تفاوت میان نسخه‌های «الگو:Cite tweet»

۹۳۳ بایت اضافه‌شده ،  ۲ سال پیش
بدون خلاصه ویرایش
(ایجادشده به کمک به ویکی‌فا، از https://en.wikipedia.org/w/index.php?title=Template:Cite_tweet&oldid=672668988)
 
{{cite web
| url = {{#ifeq: {{{number|}}}{{{user|}}} | {{{number}}}{{{user}}} | https://twitter.com/{{{user}}}/status/{{{number}}} | https://twitter.com/ }}
| title = {{#invoke:String|replace|source={{{title|<noinclude>&#123;&#123;&#123;title&#125;&#125;&#125;<nowiki/noinclude>{{{title}}}< |pattern=https*:/nowiki></noinclude>} |replace=|plain=false}}
| script-title = {{{script-title|}}}
| author = {{#if: {{{author|}}} | {{{author}}} {{#if:{{{user|}}}|[{{{user}}}]}} | {{{user|<noinclude><nowiki>{{{user}}} ({{{date}}})</nowiki></noinclude>}}} }}
| trans-title = {{{trans-title|}}}
| language = {{{language|}}}
| author = {{#if: {{{last|}}} |
{{#if: {{{first|}}} |
{{{last}}}, {{{first}}} [@{{{user|}}}] |
{{{last}}} [@{{{user|}}}]
}} |
{{#if: {{{author|}}} |
{{{author}}} [@{{{user|}}}] |
{{#if: {{{author-link|}}} |
{{{author-link}}} [@{{{user|}}}] |
@{{{user|<noinclude>{{{user}}} ({{{date}}})</noinclude>}}}
}}
}}
}}
| author-link = {{{author-link|{{{authorlink|}}} }}}
| others = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}}
| date = {{{date|}}}
| via = {{#ifeq:{{{link|}}}|no|Twitter|[[Twitter]]}}
| type = Tweet
| location = {{{location|}}}
| access-date = {{{access-date|{{{accessdate|}}} }}}
| language archive-date = {{{languagearchive-date|{{{archivedate|}}} }}}
| archive-url = {{{archive-url|{{{archiveurl|}}} }}}
| dead-url = {{{dead-url|{{{deadurl|}}} }}}
| ref = {{{ref|}}}
}}<includeonly><!--
 
====== Error checking ======
No title -->{{#if:{{{title|}}}{{{script-title|}}}||{{#ifeq: {{{user|}}}{{{number|}}}{{{date|}}} | {{{user}}}{{{number}}}{{{date}}}||<span style="font-size:100%" class="error citation-comment">&#59;</span>}}{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
(Note: error message is provided by CS1 module)
 
No user --> {{#if:{{{user|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;user=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#ifeq: {{{number|}}}{{{date|}}} | {{{number}}}{{{date}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
 
Noref=harv instead of numberharvid --> {{#ififeq:{{{numberref|}}}|harv|<span style="font-size:100%" class="error citation-comment">MissingHarvid template must be orused emptywith <kbd>&#124;numberref=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#if:{{{date|}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
 
No date number --> {{#if:{{{datenumber|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;datenumber=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#if:{{{date|}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
 
No date --> {{#if:{{{date|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;date=</kbd> ([[Template:Cite_tweet#Error_detection|help]])</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}</includeonly><noinclude>{{documentation}}</noinclude>
=========================--></includeonly><noinclude>{{documentation}}</noinclude>