Difference between revisions of "Template:News item header"
From DoomWiki.org
m (Darker blue color scheme?) |
(Tweaks: timestamp "optional" (but encouraged), don't generate invalid HTML in the case the timestamp provided is invalid, and check author page for existence) |
||
Line 3: | Line 3: | ||
| | | | ||
{| style="width: 100%; color: inherit; background-color: #cedff2" class="plainlinks" | {| style="width: 100%; color: inherit; background-color: #cedff2" class="plainlinks" | ||
− | | style="text-align: left; font-size:11pt; font-weight:bold; padding:5px; margin-left:0px; width:100%;"| <span class="entry-title">{{{title}}}</span> - <time class="published" datetime="{{#time:Y-m-d|{{{timestamp}}}}}">{{#time:d F Y|{{{timestamp}}}}}</time> | + | | style="text-align: left; font-size:11pt; font-weight:bold; padding:5px; margin-left:0px; width:100%;"| <span class="entry-title">{{{title}}}</span>{{#if:{{{timestamp|}}}| - <time class="published" datetime="{{#iferror:{{#time:Y-m-d|{{{timestamp}}}}}}}">{{#time:d F Y|{{{timestamp}}}}}</time>}} |
|} | |} | ||
|- | |- | ||
| | | | ||
− | <div class="dw-div-dl" style="font-size: 95%;">''By <span class="author vcard"><span class="fn nickname">[[User:{{{author}}}|{{{author}}}]]</span> for <span class="org">DoomWiki.org</span></span>''</div> | + | <div class="dw-div-dl" style="font-size: 95%;">''By <span class="author vcard"><span class="fn nickname">{{#ifexist:User:{{{author}}}|[[User:{{{author}}}|{{{author}}}]]|{{{author}}}}}</span> for <span class="org">DoomWiki.org</span></span>''</div> |
<div class="entry-content"><noinclude> | <div class="entry-content"><noinclude> | ||
</div> | </div> | ||
|}</noinclude> | |}</noinclude> |
Revision as of 09:18, 11 August 2015
| |
By
|