Changes

Jump to navigation Jump to search
add array function to support any number of extra links
Line 10: Line 10:  
| {{{author}}}{{#if:{{{author2|}}}|<br /><small style="font-size:0.75em;">(aka {{{author2}}})</small>}}
 
| {{{author}}}{{#if:{{{author2|}}}|<br /><small style="font-size:0.75em;">(aka {{{author2}}})</small>}}
 
| {{#switch:{{{status}}} |ok=✓ |workaround=⚠ |soon|soon-official=↻ |broken|obsolete=✖}} {{#if:{{{summary|}}}|{{{summary}}}|{{#switch:{{{status}}}|ok=use latest version. |broken=broken, not open-source. |soon=update coming soon. |soon-official=author will update it soon. }}}}
 
| {{#switch:{{{status}}} |ok=✓ |workaround=⚠ |soon|soon-official=↻ |broken|obsolete=✖}} {{#if:{{{summary|}}}|{{{summary}}}|{{#switch:{{{status}}}|ok=use latest version. |broken=broken, not open-source. |soon=update coming soon. |soon-official=author will update it soon. }}}}
| {{#if:{{{source|}}}|[{{{source}}} source]}}{{#if:{{{hide-url|}}}|&#32;[{{{hide-url}}} ᵒ]}}{{#if:{{{link1|}}}|&#32;[{{{link1}}} ¹]}}{{#if:{{{link2|}}}|&#32;[{{{link2}}} ²]}}<noinclude>
+
| {{#if:{{{source|}}}|[{{{source}}} source]}}{{#if:{{{hide-url|}}}|&#32;[{{{hide-url}}} ᵒ]}}{{#if:{{{links|}}}|{{#arraydefine:linkArray|{{{links}}}}}{{#arrayprint:linkArray|&#32;|@@@@|<sup>[@@@@ {{#expr:{{#arraysearch:linkArray|@@@@}} + 1}}]</sup>}}}}<noinclude>
 
|}
 
|}
   Line 61: Line 61:  
* <code>|name2=name</code> and <code>|author2=name</code> add also-known-as lines for the mod name & author respectively.
 
* <code>|name2=name</code> and <code>|author2=name</code> add also-known-as lines for the mod name & author respectively.
 
* <code>|hide-url=URL</code> (replacing <code>|url=</code>) moves the URL into a superscript link. Mainly useful for broken mods with a workaround, so players don't automatically click through to the old mod.
 
* <code>|hide-url=URL</code> (replacing <code>|url=</code>) moves the URL into a superscript link. Mainly useful for broken mods with a workaround, so players don't automatically click through to the old mod.
* <code>|link1=URL</code> and <code>|link2=URL</code> adds superscript links. Mainly useful for linking to pull requests.
+
* <code>|links=URLs</code> adds superscript links (comma-separated). Mainly useful for linking to pull requests.
    
==Script==
 
==Script==
translators
8,445

edits

Navigation menu