Template:Argument: Difference between revisions

From Opasnet
Jump to navigation Jump to search
No edit summary
(idea of span and div to organise discussions)
Line 83: Line 83:
}}
}}
</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.
<pre><nowiki>
<div class="discussion">
  <span class="statement">Statement written here.</span>
  <span class="resolution">Resolution written here.</span>
  <span class="argument" id={{{id}}}>{{{content}}}
    <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>
</nowiki></pre>
</noinclude>
</noinclude>

Revision as of 05:56, 10 July 2018

{{{id}}}: {{{content}}} {{{signature}}} 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:

{{argument
| id = identifier of the argument, unique on this page
| content = content of the argument
| signature = signature of the speaker, default: --~~~
| parad1 = main paradigm used for the. 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}}}>{{{content}}}
    <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>