Template:Position: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(More formatting attempts)
(Switched to "Item full display" query template, and named args)
 
(37 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>
<noinclude>
[[is of type::Type:Position| ]]
This is the 'Position' template; it should be called in the following format:
<big>'''[[Name:={{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|/|}}+2}}|}}]]'''</big>
<pre>
{{Position}}
</pre>
Edit the page to see the source code.
</noinclude><includeonly>
<big>'''[[:Category:Positions|Position]]: {{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|/}}+2}}|}}'''</big>


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


'''For this position'''
 
<ask format="OpinionQuery">[[is for::{{PAGENAME}}]][[Title::*]][[Was written by::*]][[Published by::*]][[Published on:=*]][[Url:=*]][[Quote:=*]]</ask>
<font size="+1">For this position</font>
<hr>
{{#cargo_query:tables=Items,Opinions
|join on=Items._pageName=Opinions._pageName
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'for'
|fields=Items._pageName=Title,Author,Source,date_format(Date, '%M %e, %Y')=Date,URL,Quote
|format=template
|template=Item full display
|named args=yes
|order by=Date DESC
}}
<div style="clear:both;"></div>
<div style="clear:both;"></div>


'''Against this position'''
<font size="+1">Against this position</font>
<ask format="OpinionQuery">[[is against::{{PAGENAME}}]][[Title::*]][[Was written by::*]][[Published by::*]][[Published on:=*]][[Url:=*]][[Quote:=*]]</ask>
<hr>
{{#cargo_query:tables=Items,Opinions
|join on=Items._pageName=Opinions._pageName
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'against'
|fields=Items._pageName=Title,Author,Source,date_format(Date, '%M %e, %Y')=Date,URL,Quote
|format=template
|template=Item full display
|named args=yes
|order by=Date DESC
}}
<div style="clear:both;"></div>
<div style="clear:both;"></div>


'''Mixed on this position'''
<font size="+1">Mixed on this position</font>
<ask format="OpinionQuery">[[is mixed on::{{PAGENAME}}]][[Title::*]][[Was written by::*]][[Published by::*]][[Published on:=*]][[Url:=*]][[Quote:=*]]</ask>
<hr>
{{#cargo_query:tables=Items,Opinions
|join on=Items._pageName=Opinions._pageName
|where=Opinions.Position="{{PAGENAME}}" AND Opinions.Stance = 'mixed'
|fields=Items._pageName=Title,Author,Source,date_format(Date, '%M %e, %Y')=Date,URL,Quote
|format=template
|template=Item full display
|named args=yes
|order by=Date DESC
}}
<div style="clear:both;"></div>
<div style="clear:both;"></div>
</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.