Template:Position: Difference between revisions
Jump to navigation
Jump to search
LarryGilbert (talk | contribs) (Undo revision 15141 by Yaron Koren (talk) -- did the restructure not happen?) |
Yaron Koren (talk | contribs) (Switched to "Item full display" query template, and named args) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Edit the page to see the source code. | Edit the page to see the source code. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<big>'''[[:Category:Positions|Position]]: | <big>'''[[:Category:Positions|Position]]: {{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|/}}+2}}|}}'''</big> | ||
''This position addresses the topic [[ | ''This position addresses the topic [[{{#sub:{{PAGENAME}}|0|{{#expr:{{#pos:{{PAGENAME}}|/}}-1}}}}]].'' | ||
<font size="+1">For this position</font> | <font size="+1">For this position</font> | ||
<hr> | <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> | ||
Line 29: | Line 26: | ||
<font size="+1">Against this position</font> | <font size="+1">Against this position</font> | ||
<hr> | <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> | ||
Line 45: | Line 39: | ||
<font size="+1">Mixed on this position</font> | <font size="+1">Mixed on this position</font> | ||
<hr> | <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> | ||
[[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.