Template:Position: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
(Switched to "Item full display" query template, and named args)
 
Line 16: Line 16:
|join on=Items._pageName=Opinions._pageName
|join on=Items._pageName=Opinions._pageName
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'for'
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'for'
|fields=Items._pageName,Author,Source,date_format(Date, '%M %e, %Y'),URL,Quote
|fields=Items._pageName=Title,Author,Source,date_format(Date, '%M %e, %Y')=Date,URL,Quote
|format=template
|format=template
|template=ItemQuery
|template=Item full display
|named args=yes
|order by=Date DESC
|order by=Date DESC
}}
}}
Line 28: Line 29:
|join on=Items._pageName=Opinions._pageName
|join on=Items._pageName=Opinions._pageName
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'against'
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'against'
|fields=Items._pageName,Author,Source,date_format(Date, '%M %e, %Y'),URL,Quote
|fields=Items._pageName=Title,Author,Source,date_format(Date, '%M %e, %Y')=Date,URL,Quote
|format=template
|format=template
|template=ItemQuery
|template=Item full display
|named args=yes
|order by=Date DESC
|order by=Date DESC
}}
}}
Line 40: Line 42:
|join on=Items._pageName=Opinions._pageName
|join on=Items._pageName=Opinions._pageName
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'mixed'
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'mixed'
|fields=Items._pageName,Author,Source,date_format(Date, '%M %e, %Y'),URL,Quote
|fields=Items._pageName=Title,Author,Source,date_format(Date, '%M %e, %Y')=Date,URL,Quote
|format=template
|format=template
|template=ItemQuery
|template=Item full display
|named args=yes
|order by=Date DESC
|order by=Date DESC
}}
}}
<div style="clear:both;"></div>
<div style="clear:both;"></div>
[[Category:Positions]]</includeonly>
[[Category:Positions]]</includeonly>

Latest revision as of 20:21, January 29, 2016

This is the 'Position' template; it should be called in the following format:

{{Position}}

Edit the page to see the source code.