Template:Argument: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(defend -> defence)
(new class names: paradigm relation truth)
Line 1: Line 1:
<span class="argument" id="{{{id}}}"><font class="relat1" color={{#switch: {{{relat1|relevant comment}}}
<span class="argument" id="{{{id}}}"><font id="{{{id}}}" class="relation" color={{#switch: {{{relat1|relevant comment}}}
|relevant attack = red
|relevant attack = red
|relevant defense = green
|relevant defense = green
Line 12: Line 12:
|irrelevant comment = ----
|irrelevant comment = ----
|
|
}}</big></big>'''{{{id}}}''': </font><font class="truth1" truth1v="{{{truth1|true}}}" color={{#switch: {{{truth1|true}}} {{{relat1|relevant comment}}}
}}</big></big>'''{{{id}}}''': </font><font id="{{{id}}}" class="truth" color={{#switch: {{{truth1|true}}} {{{relat1|relevant comment}}}
|true relevant attack = red
|true relevant attack = red
|true relevant defense = green
|true relevant defense = green
Line 20: Line 20:
|true irrelevant comment = blue
|true irrelevant comment = blue
|gray
|gray
}}><font class="content">{{{content}}}</font></font> (type: <i class="type">{{{type|both}}}</i>, paradigm: <i class="parad1">{{{parad1|science}}}</i>) <small class="sign">{{{sign}}}</small>{{#if:{{{parad2|}}}|<font color={{#switch: {{{relat2|{{{relat1}}}}}}
}}><font class="content">{{{content}}}</font></font> (type: <i class="type">{{{type|both}}}</i>, paradigm: <i id="{{{id}}}" class="paradigm">{{{parad1|science}}}</i>) <small class="sign">{{{sign}}}</small>{{#if:{{{parad2|}}}|<font id="{{{id}}}" class="relation" color={{#switch: {{{relat2|{{{relat1}}}}}}
|relevant attack = red
|relevant attack = red
|relevant defense = green
|relevant defense = green
Line 33: Line 33:
|irrelevant comment = ----
|irrelevant comment = ----
|
|
}}</big></big><font {{#ifeq: {{{truth2|{{{truth1}}}}}}|true||color=gray}}
}}</big></big><font id="{{{id}}}" class="truth" {{#ifeq: {{{truth2|{{{truth1}}}}}}|true||color=gray}}
>{{{parad2|}}}</font></font>|}}{{#if:{{{parad3|}}}|<font color={{#switch: {{{relat3|{{{relat1}}}}}}
><i id="{{{id}}}" class="paradigm">{{{parad2|}}}</i></font></font>|}}{{#if:{{{parad3|}}}|<font id="{{{id}}}" class="relation" color={{#switch: {{{relat3|{{{relat1}}}}}}
|relevant attack = red
|relevant attack = red
|relevant defense = green
|relevant defense = green
Line 47: Line 47:
|irrelevant comment = ----
|irrelevant comment = ----
|
|
}}</big></big><font {{#ifeq: {{{truth3|{{{truth1}}}}}}|true||color=gray}}
}}</big></big><font id="{{{id}}}" class="truth" {{#ifeq: {{{truth3|{{{truth1}}}}}}|true||color=gray}}
>{{{parad3|}}}</font></font>|}}{{#if:{{{parad4|}}}|<font color={{#switch: {{{relat4|{{{relat1}}}}}}
><i id="{{{id}}}" class="paradigm">{{{parad3|}}}</i></font></font>|}}{{#if:{{{parad4|}}}|<font id="{{{id}}}" class="relation" color={{#switch: {{{relat4|{{{relat1}}}}}}
|relevant attack = red
|relevant attack = red
|relevant defense = green
|relevant defense = green
Line 61: Line 61:
|irrelevant comment = ----
|irrelevant comment = ----
|
|
}}</big></big><font {{#ifeq: {{{truth4|{{{truth1}}}}}}|true||color=gray}}
}}</big></big><font id="{{{id}}}" class="truth" {{#ifeq: {{{truth4|{{{truth1}}}}}}|true||color=gray}}
>{{{parad4|}}}</font></font>|}}{{#if:{{{parad5|}}}|<font color={{#switch: {{{relat5|{{{relat1}}}}}}
><i id="{{{id}}}" class="paradigm">{{{parad4|}}}</i></font></font>|}}{{#if:{{{parad5|}}}|<font id="{{{id}}}" class="relation" color={{#switch: {{{relat5|{{{relat1}}}}}}
|relevant attack = red
|relevant attack = red
|relevant defense = green
|relevant defense = green
Line 75: Line 75:
|irrelevant comment = ----
|irrelevant comment = ----
|
|
}}</big></big><font {{#ifeq: {{{truth5|{{{truth1}}}}}}|true||color=gray}}
}}</big></big><font id="{{{id}}}" class="truth" {{#ifeq: {{{truth5|{{{truth1}}}}}}|true||color=gray}}
>{{{parad5|}}}</font></font>|}}</span><noinclude>
><i id="{{{id}}}" class="paradigm">{{{parad5|}}}</i></font></font>|}}</span><noinclude>


'''Template:Argument''' aims to replace all argument templates so that it would be generic and could express any argument relation, including several paradigms. Usage:
'''Template:Argument''' aims to replace all argument templates so that it would be generic and could express any argument relation, including several paradigms. Usage:
Line 95: Line 95:
</pre>
</pre>


This syntax is used for discussions and arguments (first draft). This syntax does NOT solve the problem of identifying the thread, i.e. the argument to which an argument points to. On a page it is visually intuitive but in code some tricks must be done.
This syntax is used for discussions and arguments. It DOES solve the problem of identifying the thread, i.e. the argument to which an argument points to.


<pre><nowiki>
<div class="discussion">
  <span class="statement">Statement written here.</span>
  <span class="resolution">Resolution written here.</span>
  <span class="argument" id={{{id}}}>
    <span class="id">id</span>
    {{{content}}}
    <span class="signature">{{{sign}}}</span>
    <span class="{{{parad1}}}" title="{{{relat1}}},{{{true1}}}"></span>
    <span class="{{{parad2}}}" title="{{{relat2}}},{{{true2}}}"></span>
    <span class="{{{parad3}}}" title="{{{relat3}}},{{{true3}}}"></span>
    <span class="{{{parad4}}}" title="{{{relat4}}},{{{true4}}}"></span>
    <span class="{{{parad5}}}" title="{{{relat5}}},{{{true5}}}"></span>
  </span>
  <span class="argument">etc</span>
</div>
</nowiki></pre>
</noinclude>
</noinclude>

Revision as of 04:56, 14 July 2018

----{{{id}}}: {{{content}}} (type: both, paradigm: science) {{{sign}}}

Template:Argument aims to replace all argument templates so that it would be generic and could express any argument relation, including several paradigms. Usage:

{{argument
| id = identifier of the argument, unique on this page, default: current time in HH:MM
| content = content of the argument
| sign = signature of the speaker, default: --~~~~
| type = type of the relation to the target argument, i.e. what is attacked or defended. Either truth or relevance.
| parad1 = main paradigm used to derive the relation between this argument and its target. This is used to format the argument.
| relat1 = relation type between the argument and its target according to the first paradigm: it has two words separated by a single space. The first is either relevant or irrelevant and the second either attack, defense, or comment.
| true1 = truthlikeness of the argument according to the first paragism: either true or untrue.
| parad2 = the second paradigm used.
| relat2 = the second relation type according to paradigm2. Default: relat1
| true2 = the second truthlikeness according to paradigm2. Default: true1
| parad3 etc. up to parad5 in this wiki
}}

This syntax is used for discussions and arguments. It DOES solve the problem of identifying the thread, i.e. the argument to which an argument points to.