Template:Runes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Fix SMW syntax) |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | {{#if:{{{1|aam,taar}}}|<!-- | ||
-->{{#arraydefine:Runes_params|{{{#userparam|}}},{{{2|}}},<!-- | |||
-->icons,noicons,<!-- | |||
-->names,nonames,<!-- | |||
-->meanings,nomeanings,<!-- | |||
-->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}} |<!-- | |||
--> <!-- | |||
-->}}<!-- | |||
-->{{#arrayprint:Runes_runes| |@|{{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}}) |<!-- | |||
--> <!-- | |||
-->{{#ifexpr: {{#arraysearch:Runes_params|paren}} < {{#arraysearch:Runes_params|dash}} |<!-- | |||
-->(|- <!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#arrayprint:Runes_runes| |@|{{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> | |||
<hr> | |||
A list of runes with names and descriptions | |||
Rune | 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
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