Template:Runes: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Created page with "{{#if: {{{1|}}}| [[File:Rune_{{{1}}}.png|32px|{{ucfirst:{{{1}}}}} Rune]] |}} {{#if: {{{2|}}}| [[File:Rune_{{{2}}}.png|32px|{{ucfirst:{{{2}}}}} Rune]] |}} {{#if: {{{3|}}}| [[File:...")
 
m (Fix SMW syntax)
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{1|}}}| [[File:Rune_{{{1}}}.png|32px|{{ucfirst:{{{1}}}}} Rune]] |}}
{{#if:{{{1|aam,taar}}}|<!--
{{#if: {{{2|}}}| [[File:Rune_{{{2}}}.png|32px|{{ucfirst:{{{2}}}}} Rune]] |}}
  -->{{#arraydefine:Runes_params|{{{#userparam|}}},{{{2|}}},<!--
{{#if: {{{3|}}}| [[File:Rune_{{{3}}}.png|32px|{{ucfirst:{{{3}}}}} Rune]] |}}
    -->icons,noicons,<!--
{{#if: {{{4|}}}| [[File:Rune_{{{4}}}.png|32px|{{ucfirst:{{{4}}}}} Rune]] |}}
    -->names,nonames,<!--
{{#if: {{{5|}}}| [[File:Rune_{{{5}}}.png|32px|{{ucfirst:{{{5}}}}} Rune]] |}}
    -->meanings,nomeanings,<!--
{{#if: {{{6|}}}| [[File:Rune_{{{6}}}.png|32px|{{ucfirst:{{{6}}}}} Rune]] |}}
    -->paren,dash<!--
  -->}}<!--
  -->{{#arraydefine:Runes_runes|{{{1|aam,taar}}}}}<!--
i -->{{#ifexpr: {{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}} |<!--
    -->{{#arrayprint:Runes_runes||@|{{RuneIcon|@|{{{2|}}}|#userparam={{{#userparam|}}}}}}}<!--
  -->}}<!--
n -->{{#ifexpr: {{#arraysearch:Runes_params|names}} < {{#arraysearch:Runes_params|nonames}} |<!--
    -->{{#ifexpr: {{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}} |<!--
      -->&nbsp;<!--
    -->}}<!--
    -->{{#arrayprint:Runes_runes|&nbsp;|@|{{RuneName|@|{{{2|}}}|#userparam={{{#userparam|}}}}}}}<!--
  -->}}<!--
m -->{{#ifexpr: {{#arraysearch:Runes_params|meanings}} < {{#arraysearch:Runes_params|nomeanings}} |<!--
  ( -->{{#ifexpr: ({{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}}) <!--
          --> or ({{#arraysearch:Runes_params|names}} < {{#arraysearch:Runes_params|nonames}}) |<!--
      -->&nbsp;<!--
      -->{{#ifexpr: {{#arraysearch:Runes_params|paren}} < {{#arraysearch:Runes_params|dash}} |<!--
        -->(|-&nbsp;<!--
      -->}}<!--
    -->}}<!--
    -->{{#arrayprint:Runes_runes|&nbsp;|@|{{RuneMeaning|@}}}}<!--
  ) -->{{#ifexpr: {{#arraysearch:Runes_params|icons}} < {{#arraysearch:Runes_params|noicons}} <!--
          --> or {{#arraysearch:Runes_params|names}} < {{#arraysearch:Runes_params|nonames}} |<!--
      -->{{#ifexpr: {{#arraysearch:Runes_params|paren}} < {{#arraysearch:Runes_params|dash}} |<!--
        -->)<!--
      -->}}<!--
    -->}}<!--
  -->}}<!--
-->|n/a}}<noinclude>


{{ucfirst:{{{1|}}}}} |}} {{ucfirst:{{{2|}}}}} |}} {{ucfirst:{{{3|}}}}} |}} {{ucfirst:{{{4|}}}}} |}} {{ucfirst:{{{1|}}}}} |}}
<hr>
 
A list of runes with names and descriptions
 
Parameters:
* #1: Rune names as a comma-separated list without spaces! (output above is for <code><nowiki>{{Runes|aam,taar}}</nowiki></code>)
* #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

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