Template:Opinion: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) No edit summary |
Yaron Koren (talk | contribs) (Added Position_link field) |
||
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|Topic=Page|Position_fragment=Text (hidden)|Position=Page|Stance=Text}} | {{#cargo_declare:_table=Opinions|Topic=Page|Position_fragment=Text (hidden)|Position=Page|Position_link=Wikitext (hidden)|Stance=Text}} | ||
</noinclude><includeonly>{{#set_internal:Is opinion in | </noinclude><includeonly>{{#set_internal:Is opinion in | ||
|Covers topic={{{1|}}}|Has position fragment={{{2|}}} | |Covers topic={{{1|}}}|Has position fragment={{{2|}}} | ||
|Has position={{{1|}}} / {{{2|}}} | |Has position={{{1|}}} / {{{2|}}} | ||
|Has stance={{{3|}}} }} | |Has stance={{{3|}}} }} | ||
{{#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}}}}} }} {{#cargo_store:_table=Opinions|Topic={{{1|}}}|Position_fragment={{{2|}}}|Position={{#ifeq:{{{1 | {{#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}}}}} }} {{#cargo_store:_table=Opinions|Topic={{{1|}}}|Position_fragment={{{2|}}}|Position={{#ifeq:{{{2|}}}|||{{{1}}} / {{{2}}} }}|Position_link={{#ifeq:{{{2|}}}|||[[{{{1}}} / {{{2}}}|{{{2}}}]] }}|Stance={{{3|}}} }}</includeonly> |
Revision as of 16:37, November 12, 2014
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.