Vorlage:Cite tweet: Unterschied zwischen den Versionen
use <noinclude> and <includeonly> tags to prevent error messages / categories on the template page itself
(categorise "no title" errors in Category:Cite tweet templates with errors, and add semicolon when there are other errors) |
(use <noinclude> and <includeonly> tags to prevent error messages / categories on the template page itself) |
||
| Zeile 1: | Zeile 1: | ||
{{cite web | {{cite web | ||
| url = {{#ifeq: {{{number|}}}{{{user|}}} | {{{number}}}{{{user}}} | https://twitter.com/{{{user}}}/status/{{{number}}} | https://twitter.com/ }} | | url = {{#ifeq: {{{number|}}}{{{user|}}} | {{{number}}}{{{user}}} | https://twitter.com/{{{user}}}/status/{{{number}}} | https://twitter.com/ }} | ||
| title = {{{title|}}} | | title = {{{title|<noinclude><nowiki>{{{title}}}</nowiki></noinclude>}}} | ||
| author = {{#if: {{{author|}}} | {{{author}}} {{#if:{{{user|}}}|[{{{user}}}]}} | {{{user|}}} }} | | author = {{#if: {{{author|}}} | {{{author}}} {{#if:{{{user|}}}|[{{{user}}}]}} | {{{user|<noinclude><nowiki>{{{user}}} ({{{date}}})</nowiki></noinclude>}}} }} | ||
| author-link = {{{author-link|{{{authorlink|}}} }}} | | author-link = {{{author-link|{{{authorlink|}}} }}} | ||
| others = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}} | | others = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}} | ||
| Zeile 8: | Zeile 8: | ||
| type = Tweet | | type = Tweet | ||
| access-date = {{{access-date|{{{accessdate|}}} }}} | | access-date = {{{access-date|{{{accessdate|}}} }}} | ||
}}<!-- | }}<includeonly><!-- | ||
====== Error checking ====== | ====== Error checking ====== | ||
No title -->{{#if:{{{title|}}}||{{#ifeq: {{{user|}}}{{{number|}}}{{{date|}}} | {{{user}}}{{{number}}}{{{date}}}||<span style="font-size:100%" class="error citation-comment">;</span>}}{{main other|[[Category:Cite tweet templates with errors]]}} }}<!-- | No title -->{{#if:{{{title|}}}||{{#ifeq: {{{user|}}}{{{number|}}}{{{date|}}} | {{{user}}}{{{number}}}{{{date}}}||<span style="font-size:100%" class="error citation-comment">;</span>}}{{main other|[[Category:Cite tweet templates with errors]]}} }}<!-- | ||
| Zeile 19: | Zeile 19: | ||
No date --> {{#if:{{{date|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>|date=</kbd> ([[Template:Cite_tweet#Error_detection|help]])</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>|date=</kbd> ([[Template:Cite_tweet#Error_detection|help]])</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!-- | ||
=========================--><noinclude>{{documentation}}</noinclude> | =========================--></includeonly><noinclude>{{documentation}}</noinclude> | ||