Template:Opinion: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
m (Reverted edits by 216.66.149.209 (talk) to last revision by 194.29.99.50)
mNo edit summary
 
(38 intermediate revisions by the same user not shown)
Line 5: Line 5:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Opinions|_parentTables=Items (_alias=Item)|_drilldownTabs=Main (format=category;fields=_pageName),Table (format=table;fields=_pageName=Item,Topic,Items.Source),Default tab|Topic=Page|Position_fragment=String (hidden)|Position=Page (dependent fields=Stance)|Position_link=Wikitext (hidden)|Stance=String (allowed values=for,mixed,against)}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifeq:{{{3|}}}||This item addresses the topic [[{{{1|}}}]].}}{{#ifeq:{{{3|}}}|for|This item argues for the position [[{{{1|}}} / {{{2|}}}|{{{2|}}}]] on the topic [[{{{1|}}}]].}}{{#ifeq:{{{3|}}}|against|This item argues against the position [[{{{1|}}} / {{{2|}}}|{{{2|}}}]] on the topic [[{{{1|}}}]].}}{{#ifeq:{{{3|}}}|mixed|This item takes a mixed stance on the position [[{{{1|}}} / {{{2|}}}|{{{2|}}}]] on the topic [[{{{1|}}}]].}}{{#set:Addresses topic={{{1|}}} }}{{#ifeq:{{{3|}}}|for|{{#set:Is for={{{1}}} / {{{2}}}}} }}{{#ifeq:{{{3|}}}|against|{{#set:Is against={{{1}}} / {{{2}}}}} }}{{#ifeq:{{{3|}}}|mixed|{{#set:Is mixed on={{{1}}} / {{{2}}}}} }}{{#set_internal:Is opinion in
{{#ifeq:{{{3|}}}||This item addresses the topic {{#formredlink:target={{{1|}}}|form=Topic}}.}}{{#ifeq:{{{3|}}}|for|This item argues for the position {{#formredlink:target={{{1|}}} / {{{2|}}}|form=Position|existing page link text={{{2|}}}}} on the topic {{#formredlink:target={{{1|}}}|form=Topic}}.}}{{#ifeq:{{{3|}}}|against|This item argues against the position {{#formredlink:target={{{1|}}} / {{{2|}}}|form=Position|existing page link text={{{2|}}}}} on the topic {{#formredlink:target={{{1|}}}|form=Topic}}.}}{{#ifeq:{{{3|}}}|mixed|This item takes a mixed stance on the position {{#formredlink:target={{{1|}}} / {{{2|}}}|form=Position|existing page link text={{{2|}}}}} on the topic {{#formredlink:target={{{1|}}}|form=Topic}}.}}{{#ifeq:{{{3|}}}|for| }}{{#ifeq:{{{3|}}}|against| }}{{#ifeq:{{{3|}}}|mixed| }} {{#cargo_store:_table=Opinions|Topic={{{1|}}}|Position_fragment={{{2|}}}|Position={{#ifeq:{{{2|}}}|||{{{1}}} / {{{2}}} }}|Position_link={{#ifeq:{{{2|}}}|||[[{{{1}}} / {{{2}}}|{{{2}}}]] }}|Stance={{{3|}}} }}
|Covers topic={{{1|}}}|Has position fragment={{{2|}}}|Has position={{{1|}}} / {{{2|}}}
</includeonly>
|Has stance={{{3|}}}
|Has full item display=<div style="border: 1px #cccccc solid; padding: 4px; margin: 10px 15px 4px 15px; background-color: #fafaea">{{#show:{{PAGENAME}}|?Has quote}}</div>
<div style="margin: 0px 0px 20px 35px;">From [[{{PAGENAME}}]], by {{#show:{{PAGENAME}}|?Was written by}} (<em>{{#show:{{PAGENAME}}|?Was published by}}</em>, {{#show:{{PAGENAME}}|?Was published on}}) ([{{#show:{{PAGENAME}}|?Has URL|link=none}} view])</div>
|Has item summary=[[{{PAGENAME}}]] by {{#show:{{PAGENAME}}|?Was written by}} (<em>{{#show:{{PAGENAME}}|?Was published by}}</em>, {{#show:{{PAGENAME}}|?Was published on}}) ([{{#show:{{PAGENAME}}|?Has URL|link=none}} view])
|Item was published on={{#show:{{PAGENAME}}|?Was published on}}
}}</includeonly>

Latest revision as of 19:09, July 13, 2018

This is the template for an opinion instance. It should be called in the following format:

{{Opinion|topic|position fragment|stance}}

Edit the page to see the template text. This template defines the table "Opinions". View table.