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)
(line instead of prettybox)
 
(2 intermediate revisions by the same user not shown)
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>
{{#show:{{{1}}}|?Newsblurb|link=none}}<br>
<br></includeonly><noinclude>
<br></includeonly><noinclude>

Latest revision as of 09:01, 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.