Template:Runes: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Add description to)
m (Fix SMW syntax)
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
{{#if:{{{1|aam,taar}}}|<!--
 
  -->{{#arraydefine:Runes_params|{{{#userparam|}}},{{{2|}}},<!--
Rune icons if {{{icons}}} was not set to 0.
    -->icons,noicons,<!--
-->{{If|{{{icons|1}}}|<!--
    -->names,nonames,<!--
   -->{{RuneIcon|{{{1|aam}}}}}<!--
    -->meanings,nomeanings,<!--
  -->{{If|{{{2|}}}|{{RuneIcon|{{{2|}}}}}}}<!--
    -->paren,dash<!--
  -->{{If|{{{3|}}}|{{RuneIcon|{{{3|}}}}}}}<!--
  -->}}<!--
   -->{{If|{{{4|}}}|{{RuneIcon|{{{4|}}}}}}}<!--
   -->{{#arraydefine:Runes_runes|{{{1|aam,taar}}}}}<!--
  -->{{If|{{{5|}}}|{{RuneIcon|{{{5|}}}}}}}<!--
i -->{{#ifexpr: {{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}} |<!--
  -->{{If|{{{6|}}}|{{RuneIcon|{{{6|}}}}}}}<!--
    -->{{#arrayprint:Runes_runes||@|{{RuneIcon|@|{{{2|}}}|#userparam={{{#userparam|}}}}}}}<!--
-->|}}<!--
   -->}}<!--
 
n -->{{#ifexpr: {{#arraysearch:Runes_params|names}} < {{#arraysearch:Runes_params|nonames}} |<!--
Rune names if {{{names}}} was not set to 0.
    -->{{#ifexpr: {{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}} |<!--
-->{{If|{{{names|1}}}|<!--
      -->&nbsp;<!--
  -->&nbsp;{{RuneName|{{{1|aam}}}}}<!--
    -->}}<!--
  -->{{If|{{{2|}}}|&nbsp;{{RuneName|{{{2|}}}}}}}<!--
    -->{{#arrayprint:Runes_runes|&nbsp;|@|{{RuneName|@|{{{2|}}}|#userparam={{{#userparam|}}}}}}}<!--
   -->{{If|{{{3|}}}|&nbsp;{{RuneName|{{{3|}}}}}}}<!--
   -->}}<!--
   -->{{If|{{{4|}}}|&nbsp;{{RuneName|{{{4|}}}}}}}<!--
m -->{{#ifexpr: {{#arraysearch:Runes_params|meanings}} < {{#arraysearch:Runes_params|nomeanings}} |<!--
  -->{{If|{{{5|}}}|&nbsp;{{RuneName|{{{5|}}}}}}}<!--
   ( -->{{#ifexpr: ({{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}}) <!--
  -->{{If|{{{6|}}}|&nbsp;{{RuneName|{{{6|}}}}}}}<!--
          --> or ({{#arraysearch:Runes_params|names}} < {{#arraysearch:Runes_params|nonames}}) |<!--
-->|}}<!--
      -->&nbsp;<!--
 
      -->{{#ifexpr: {{#arraysearch:Runes_params|paren}} < {{#arraysearch:Runes_params|dash}} |<!--
Rune meanings if {{{meanings}}} was not set to 0.
        -->(|-&nbsp;<!--
-->{{If|{{{meanings|1}}}|&nbsp;(<!--
      -->}}<!--
  -->{{RuneMeaning|{{{1|aam}}}|}}<!--
    -->}}<!--
  -->{{If|{{{2|}}}|&nbsp;{{RuneMeaning|{{{2|}}}}}}}<!--
    -->{{#arrayprint:Runes_runes|&nbsp;|@|{{RuneMeaning|@}}}}<!--
   -->{{If|{{{3|}}}|&nbsp;{{RuneMeaning|{{{3|}}}}}}}<!--
   ) -->{{#ifexpr: {{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}} <!--
  -->{{If|{{{4|}}}|&nbsp;{{RuneMeaning|{{{4|}}}}}}}<!--
          --> or {{#arraysearch:Runes_params|names}} < {{#arraysearch:Runes_params|nonames}} |<!--
  -->{{If|{{{5|}}}|&nbsp;{{RuneMeaning|{{{5|}}}}}}}<!--
      -->{{#ifexpr: {{#arraysearch:Runes_params|paren}} < {{#arraysearch:Runes_params|dash}} |<!--
  -->{{If|{{{6|}}}|&nbsp;{{RuneMeaning|{{{6|}}}}}}}<!--
        -->)<!--
-->)|}}<!--
      -->}}<!--
 
    -->}}<!--
--><noinclude>
  -->}}<!--
-->|n/a}}<noinclude>


<hr>
<hr>
Line 38: Line 39:


Parameters:
Parameters:
* 1-5: Lowercase rune names (output above is for <code><nowiki>{{Runes|aam}}</nowiki></code>)
* #1: Rune names as a comma-separated list without spaces! (output above is for <code><nowiki>{{Runes|aam,taar}}</nowiki></code>)
* icons - show icons [default: 1]
* #userparam and #2: Comma-sparated list of additional info (default: (empty list))
* names - show names [default: 1]
** icons or noicons: enable/disable icons (first wins, default: enabled)
* meanings - show meanings [default: 1]
** names or nonames: enable/disable names (first wins, default: enabled)
</noinclude><!--
** meanings or nomeanings: enable/disable meanings (first wins, default: enabled)
** paren or dash: use parentheses vs. dash for meanings (first wins, default: paren)
** if icons are enabled, [[:Template:RuneIcon]] parameters
** if names are enabled, [[:Template:RuneName]] parameters
** other entries are ignored
 
Special case: if the list of runes is empty this expands to n/a

Latest revision as of 11:19, 27 October 2019

Aam Rune (create)Taar Rune (missile) Aam Taar (create missile)


A list of runes with names and descriptions

Parameters:

  • #1: Rune names as a comma-separated list without spaces! (output above is for {{Runes|aam,taar}})
  • #userparam and #2: Comma-sparated list of additional info (default: (empty list))
    • icons or noicons: enable/disable icons (first wins, default: enabled)
    • names or nonames: enable/disable names (first wins, default: enabled)
    • meanings or nomeanings: enable/disable meanings (first wins, default: enabled)
    • paren or dash: use parentheses vs. dash for meanings (first wins, default: paren)
    • if icons are enabled, Template:RuneIcon parameters
    • if names are enabled, Template:RuneName parameters
    • other entries are ignored

Special case: if the list of runes is empty this expands to n/a