Template:Newsoverview: Difference between revisions

From OIAr
Jump to navigation Jump to search
(prettybox)
(line instead of 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>
{| {{prettybox}}
----
{{#show:{{{1}}}|?Newsblurb|link=none}}
{{#show:{{{1}}}|?Newsblurb|link=none}}<br>
|}<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>

Latest revision as of 08: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.