Difference between revisions of "Template:Newsoverview"

From OIAr Archive 2013
Jump to navigation Jump to search
(debug)
(namespace link)
 
Line 6: Line 6:
 
----
 
----
 
</noinclude><includeonly>{{#vardefine:author|{{#show:{{{1}}}|?Newsauthor# -|link=none}}}}{{#vardefine:authorname|{{#show: User:{{#var:author}}| ?displayname|link=none}}}}
 
</noinclude><includeonly>{{#vardefine:author|{{#show:{{{1}}}|?Newsauthor# -|link=none}}}}{{#vardefine:authorname|{{#show: User:{{#var:author}}| ?displayname|link=none}}}}
DEBUG{{{1}}}}DEBUG
+
'''[[:{{{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>
 
<br></includeonly>

Latest revision as of 11:32, 16 February 2013

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.