Difference between revisions of "Template:News item header"

From DoomWiki.org

m (Undo revision 111594 by Quasar (talk) - it's allowed but it isn't working in the validator...)
m (Try here.)
Line 7: Line 7:
 
|-
 
|-
 
|  
 
|  
<div class="dw-div-dl" style="font-size: 95%;">''By <span class="author vcard" itemscope itemprop="author publisher" itemtype="http://schema.org/Person"><span class="fn nickname" itemprop="name givenName">{{#ifexist:User:{{{author}}}|[[User:{{{author}}}|{{{author}}}]]|{{{author}}}}}</span> for <span itemscope itemprop="memberOf" itemtype="http://schema.org/Organization"><span class="org" itemprop="name">{{SITENAME}}</span></span></span>''</div>
+
<div class="dw-div-dl" style="font-size: 95%;">''By <span class="author vcard" itemscope itemprop="author publisher" itemtype="http://schema.org/Person"><span class="fn nickname" itemprop="name givenName">{{#ifexist:User:{{{author}}}|[[User:{{{author}}}|{{{author}}}]]|{{{author}}}}}</span> for <span itemscope itemprop="memberOf" itemtype="http://schema.org/Organization"><span class="org" itemprop="name">{{SITENAME}}</span><meta itemprop="logo" content="/w/skins/Wiki.png" /></span></span>''</div>
 
<div class="entry-content" itemprop="articleBody"><noinclude>
 
<div class="entry-content" itemprop="articleBody"><noinclude>
 
</div>
 
</div>

Revision as of 17:05, 11 April 2016

By {{{author}}} for DoomWiki.org

Usage

Create a news item container. This container acts as an hAtom microformat feed entry, and is understood by search engines as a news item when properly filled out.

Parameters:

  • title: Title of the news article. This should be in newspaper headline format.
  • author: Your DoomWiki.org user account name. If you have created a User page, it will be automatically linked. This is used to create a vcard.
  • timestamp: Date and/or time of the article's authorship, in any acceptable ISO date format. The input timestamp will be normalized to Day Month Year format regardless of the input format. Invalid timestamps will be suppressed from appearing in the hAtom, and an error message may appear on page.

Author your article content inline using regular MediaWiki markup after the {{News item header}} transclusion, and follow it with {{News item end}} to properly close the entry.