Vorlage:Tweet: Unterschied zwischen den Versionen
tidy
(add error catching) |
(tidy) |
||
| Zeile 1: | Zeile 1: | ||
<blockquote style="{{#if: {{{block|}}}|display:block; margin:12.25px 40px;|{{#if: {{{left|}}}|clear:left; float:left; margin:0.5em 1.4em 0.8em 0|clear:right; float:right; margin:0.5em 0 0.8em 1.4em}}}}; background-color:white; border: 1px solid #e1e8ed; border-radius:3px; max-width:{{#if: {{{block|}}}|{{{width|650px}}}|{{{width|280px}}}}}; padding:10px;"> | <blockquote style=" | ||
{{#if: {{{name|}}}||{{Formatting error|Missing name parameter.<br>}}}}{{#if: {{{username|}}}||{{Formatting error|Missing username parameter.<br>}}}}{{#if: {{{date|}}}||{{Formatting error|Missing date parameter.<br>}}}}{{#if: {{{text|}}}||{{Formatting error|Missing text parameter.<br>}}}} | {{#if: {{{block|}}} | ||
|display:block; margin:12.25px 40px; | |||
|{{#if: {{{left|}}} | |||
|clear:left; float:left; margin:0.5em 1.4em 0.8em 0 | |||
|clear:right; float:right; margin:0.5em 0 0.8em 1.4em | |||
}} | |||
}}; | |||
background-color:white; border: 1px solid #e1e8ed; border-radius:3px; max-width: | |||
{{#if: {{{block|}}} | |||
|{{{width|650px}}} | |||
|{{{width|280px}}} | |||
}}; | |||
padding:10px;"> | |||
{{#if: {{{name|}}}||{{Formatting error|Missing name parameter.<br>}}}}<!-- | |||
-->{{#if: {{{username|}}}||{{Formatting error|Missing username parameter.<br>}}}}<!-- | |||
-->{{#if: {{{date|}}}||{{Formatting error|Missing date parameter.<br>}}}}<!-- | |||
-->{{#if: {{{text|}}}||{{Formatting error|Missing text parameter.<br>}}}} | |||
<table style="line-height:1em; width:100%; font-size:11px;"> | <table style="line-height:1em; width:100%; font-size:11px;"> | ||
<tr> | <tr> | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}} | ||
|<td rowspan=2 style="padding-right:5px; width:28px;">[[File:{{{image|}}}|28px]]</td> | |||
|}} | |}} | ||
<th style="text-align:left;">{{{name|}}}{{#if: {{{unverified|}}}||<span title="Verified Twitter account" style="color:#1DA1F2; padding-left:5px;">✓</span>}}</th> | <th style="text-align:left;">{{{name|}}} | ||
{{#if: {{{unverified|}}}| | |||
|<span title="Verified Twitter account" style="color:#1DA1F2; padding-left:5px;">✓</span> | |||
}} | |||
</th> | |||
<td rowspan=2 style="text-align:right">{{v|t|e|template=Tweet}}</td> | <td rowspan=2 style="text-align:right">{{v|t|e|template=Tweet}}</td> | ||
</tr> | </tr> | ||
| Zeile 14: | Zeile 34: | ||
</table> | </table> | ||
{{#if: {{{replyto|}}}| | {{#if: {{{replyto|}}}| | ||
<p style="color:#697882; font-size:11px;"> | |||
Replying to @{{{replyto|}}} | |||
</p> | |||
|}} | |||
<p style="font-size:11.75px;"> | <p style="font-size:11.75px;"> | ||
{{{text|}}} | {{{text|}}} | ||
</p> | </p> | ||
<p style="color:rgb(105, 120, 130); font-size:11px;"> | <p style="color:rgb(105, 120, 130); font-size:11px;"> | ||
{{{date|}}} via [[Twitter]]{{{reference|{{#tag:ref|{{cite tweet|user= {{{username}}} |number= {{{id}}} |date= {{{date}}} |title= {{{text}}} }}}}}}} | {{{date|}}} via [[Twitter]] | ||
{{{reference| | |||
{{#tag:ref|{{cite tweet|user= {{{username}}} |number= {{{id}}} |date= {{{date}}} |title= {{{text}}} }} }} | |||
}}} | |||
</p> | </p> | ||
</blockquote><noinclude> | </blockquote><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||