Template:Position: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Removed SMW property settings)
(Switched to "Item full display" query template, and named args)
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
<big>'''[[:Category:Positions|Position]]: {{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|/}}+2}}|}}'''</big>
<big>'''[[:Category:Positions|Position]]: {{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|/}}+2}}|}}'''</big>


''This position addresses the topic {{#sub:{{PAGENAME}}|0|{{#expr:{{#pos:{{PAGENAME}}|/}}-1}}}}.''
''This position addresses the topic [[{{#sub:{{PAGENAME}}|0|{{#expr:{{#pos:{{PAGENAME}}|/}}-1}}}}]].''




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.