Template:Newsoverview: Difference between revisions

From OIAr
Jump to navigation Jump to search
m (Jan Schoonderbeek moved page Newsoverview to Template:Newsoverview without leaving a redirect: paste error)
(prettybox)
Line 1: Line 1:
<includeonly>{{#vardefine:author|{{#show:{{{1}}}|?Newsauthor# -|link=none}}}}{{#vardefine:authorname|{{#show: User:{{#var:author}}| ?displayname|link=none}}}}
<includeonly>{{#vardefine:author|{{#show:{{{1}}}|?Newsauthor# -|link=none}}}}{{#vardefine:authorname|{{#show: User:{{#var:author}}| ?displayname|link=none}}}}
'''[[:{{{1}}}|{{#show:{{{1}}}|?Headline|link=none}}]]''' <small>by [[User:{{#var:author}}|{{#var:authorname}}]] on {{#show:{{{1}}}|?Newsdate|link=none}}</small><br>
'''[[:{{{1}}}|{{#show:{{{1}}}|?Headline|link=none}}]]''' <small>by [[User:{{#var:author}}|{{#var:authorname}}]] on {{#show:{{{1}}}|?Newsdate|link=none}}</small><br>
{{#show:{{{1}}}|?Newsblurb|link=none}}<br>
{| {{prettybox}}
{{#show:{{{1}}}|?Newsblurb|link=none}} }}<br>
<br></includeonly><noinclude>
<br></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 08:59, 17 April 2013

Template documentation

This template takes a pages from a query for news articles, and prints it. It can be called from a semantic query, or stand-alone:

{{Newsoverview|<pagename>}}

It is assumed that the pagename is in the News: namespace, and contains all the necessary semantic properties.