Template:Argument: Difference between revisions

From Opasnet
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<font color={{#switch: {{{relat1}}} {{{valid1}}}
<font color={{#switch: {{{relat1|comment}}} {{{valid1|valid}}}
|attack valid = red
|attack valid = red
|attack invalid = gray
|attack invalid = gray
Line 7: Line 7:
|comment invalid = gray
|comment invalid = gray
|gray}}
|gray}}
  id={{{id}}}><big><big>{{#switch: {{{relat1}}}
  id={{{id}}}><big><big>{{#switch: {{{relat1|comment}}}
|attack = &#8676;
|attack = &#8676;
|defend = &larr;
|defend = &larr;
|comment = --
|comment = --
|
|
}}</big></big>'''{{{id}}}''': {{{content}}}</font> <small>{{{signature}}}</small>{{#if:{{{parad2|}}}|<font color={{#switch: {{{relat2|{{{relat1}}}}}} {{{valid2|{{{valid1}}}}}}
}}</big></big>'''{{{id|{{CURRENTTIME}}}}}''': {{{content}}}</font> <small>{{{signature|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 08:32, 10 July 2018 (UTC)}}}</small>{{#if:{{{parad2|}}}|<font color={{#switch: {{{relat2|{{{relat1}}}}}} {{{valid2|{{{valid1}}}}}}
|attack valid = red
|attack valid = red
|attack invalid = gray
|attack invalid = gray
Line 68: Line 68:
|
|
}}</big></big>{{{parad5|}}}</font>|}}<noinclude>
}}</big></big>{{{parad5|}}}</font>|}}<noinclude>
'''Template:Argument''' aims to replace all argument templates so that it would be generic and could express any argument relation. Then, it would be possible to switch formatting, e.g. colour without changing the template, i.e. without editing the page where the template is used. 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:
<pre>
<pre>
{{argument
{{argument
| id = identifier of the argument, unique on this page
| id = identifier of the argument, unique on this page, default: current time in HH:MM
| content = content of the argument
| content = content of the argument
| signature = signature of the speaker, default: --~~~
| signature = signature of the speaker, default: --~~~~
| parad1 = main paradigm used for the. This is used to format the argument.
| 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: either attack, defend, or comment.
| relat1 = relation type between the argument and its target according to the first paradigm: either attack, defend, or comment.
| valid1 = validity of the argument according to the first paragism: either valid or invalid.
| valid1 = validity of the argument according to the first paragism: either valid or invalid.

Revision as of 08:32, 10 July 2018

--14:09: {{{content}}} --Jouni (talk) 08:32, 10 July 2018 (UTC)

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
| signature = signature of the speaker, default: --~~~~
| 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: either attack, defend, or comment.
| valid1 = validity of the argument according to the first paragism: either valid or invalid.
| parad2 = the second paradigm used.
| relat2 = the second relation type according to paradigm2. Default: relat1
| valid2 = the second validity according to paradigm2. Default: valid1
| 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">{{{signature}}}</span>
    <span class="{{{parad1}}}" title="{{{relat1}}},{{{valid1}}}"></span>
    <span class="{{{parad2}}}" title="{{{relat2}}},{{{valid2}}}"></span>
    <span class="{{{parad3}}}" title="{{{relat3}}},{{{valid3}}}"></span>
    <span class="{{{parad4}}}" title="{{{relat4}}},{{{valid4}}}"></span>
    <span class="{{{parad5}}}" title="{{{relat5}}},{{{valid5}}}"></span>
  </span>
  <span class="argument">etc</span>
</div>