Template:Position: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Undo revision 15141 by Yaron Koren (talk) -- did the restructure not happen?)
(Changed queries)
Line 13: Line 13:
<font size="+1">For this position</font>
<font size="+1">For this position</font>
<hr>
<hr>
{{#ask: [[is for::{{PAGENAME}}]]
{{#cargo_query:tables=Items,Opinions
  |format=template
|join on=Items._pageName=Opinions._pageName
  |template=ItemQuery
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'for'
  |sort=Was published on
|fields=Items._pageName,Author,Source,date_format(Date, '%M %e, %Y'),URL,Quote
  |order=descending
|format=template
  |link=subject
|template=ItemQuery
  |? Was written by
|order by=Date DESC
  |? Was published by
  |? Was published on
  |? Has URL
  |? Has quote
}}
}}
<div style="clear:both;"></div>
<div style="clear:both;"></div>
Line 29: Line 25:
<font size="+1">Against this position</font>
<font size="+1">Against this position</font>
<hr>
<hr>
{{#ask: [[is against::{{PAGENAME}}]]
{{#cargo_query:tables=Items,Opinions
  |format=template
|join on=Items._pageName=Opinions._pageName
  |template=ItemQuery
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'against'
  |sort=Was published on
|fields=Items._pageName,Author,Source,date_format(Date, '%M %e, %Y'),URL,Quote
  |order=descending
|format=template
  |link=subject
|template=ItemQuery
  |? Was written by
|order by=Date DESC
  |? Was published by
  |? Was published on
  |? Has URL
  |? Has quote
}}
}}
<div style="clear:both;"></div>
<div style="clear:both;"></div>
Line 45: Line 37:
<font size="+1">Mixed on this position</font>
<font size="+1">Mixed on this position</font>
<hr>
<hr>
{{#ask: [[is mixed on::{{PAGENAME}}]]
{{#cargo_query:tables=Items,Opinions
  |format=template
|join on=Items._pageName=Opinions._pageName
  |template=ItemQuery
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'mixed'
  |sort=Was published on
|fields=Items._pageName,Author,Source,date_format(Date, '%M %e, %Y'),URL,Quote
  |order=descending
|format=template
  |link=subject
|template=ItemQuery
  |? Was written by
|order by=Date DESC
  |? Was published by
  |? Was published on
  |? Has URL
  |? Has quote
}}
}}
<div style="clear:both;"></div>
<div style="clear:both;"></div>
[[Category:Positions]]</includeonly>
[[Category:Positions]]</includeonly>

Revision as of 17:39, November 13, 2014

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

{{Position}}

Edit the page to see the source code.