Template:Argument: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(signature -> sign)
(added some html tag parameters)
Line 1: Line 1:
<font color={{#switch: {{{relat1|relevant comment}}}
<span class="argument" id="{{{id}}}"><font color={{#switch: {{{relat1|relevant comment}}}
|relevant attack = red
|relevant attack = red
|relevant defend = green
|relevant defend = green
|relevant comment = blue
|relevant comment = blue
|gray}}
|gray}}
><big><big>{{#switch: {{{relat1|relevant comment}}}
><big><big class="{{{relat1|relevant comment}}}">{{#switch: {{{relat1|relevant comment}}}
|relevant attack = &#8676;--
|relevant attack = &#8676;--
|irrelevant attack = &#8676;--
|irrelevant attack = &#8676;--
Line 12: Line 12:
|irrelevant comment = ----
|irrelevant comment = ----
|
|
}}</big></big></font><font color={{#switch: {{{truth1|true}}} {{{relat1|relevant comment}}}
}}</big></big>'''{{{id}}}''': </font><font class="{{{truth1|true}}}" color={{#switch: {{{truth1|true}}} {{{relat1|relevant comment}}}
|true relevant attack = red
|true relevant attack = red
|true relevant defend = green
|true relevant defend = green
Line 20: Line 20:
|true irrelevant comment = blue
|true irrelevant comment = blue
|gray
|gray
}}>'''{{{id}}}''': {{{content}}}</font> (type: {{{type|}}}) <small>{{{sign}}}</small>{{#if:{{{parad2|}}}|<font color={{#switch: {{{relat2|{{{relat1}}}}}}
}}>{{{content}}}</font> (type: <i class="type">{{{type|}}}</i>) <small class="sign">{{{sign}}}</small>{{#if:{{{parad2|}}}|<font color={{#switch: {{{relat2|{{{relat1}}}}}}
|relevant attack = red
|relevant attack = red
|relevant defend = green
|relevant defend = green
Line 76: Line 76:
|
|
}}</big></big><font {{#ifeq: {{{truth5|{{{truth1}}}}}}|true||color=gray}}
}}</big></big><font {{#ifeq: {{{truth5|{{{truth1}}}}}}|true||color=gray}}
>{{{parad5|}}}</font></font>|}}<noinclude>
>{{{parad5|}}}</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:

Revision as of 20:35, 12 July 2018

----{{{id}}}: {{{content}}} (type: ) {{{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, defend, 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 (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.

<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>