Line 8: |
Line 8: |
| ! source | | ! source |
| ! </noinclude> | | ! </noinclude> |
− | |- id="{{{name}}}" data-status="{{{status|ok}}}" {{#if:{{{source|}}}|data-has-source}} style="line-height: 1em; {{#switch:{{{status|ok}}} |ok|optional=background: #9F9; |workaround=background: #CF9; |broken|soon-official=background: #F99; |obsolete=background: #999}}" | + | |- id="{{{name}}}" {{#if:{{{nexus id|}}}|nexus-id="{{{nexus id|}}}"}} {{#if:{{{chucklefish id|}}}|chucklefish-id="{{{chucklefish id|}}}"}} data-status="{{{status|ok}}}" {{#if:{{{github|{{{source|}}}}}}|data-has-source}} style="line-height: 1em; {{#switch:{{{status|ok}}} |ok|optional=background: #9F9; |workaround=background: #CF9; |broken|soon-official=background: #F99; |obsolete=background: #999}}" |
− | | {{#if:{{{url|}}}|[{{{url}}} {{{name}}}]|{{{name}}}}}{{#if:{{{name2|}}}|<br /><small style="font-size:0.75em;">(aka {{{name2}}})</small>}} | + | | {{#if:{{{nexus id|}}}|[{{nexus url|{{{nexus id}}}}}|{{#if:{{{chucklefish id|}}}|https://community.playstarbound.com/resources/{{urlencode:{{{chucklefish id}}}}}|{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]|{{{name}}}}}}}}}{{#if:{{{name2|}}}|<br /><small style="font-size:0.75em;">(aka {{{name2}}})</small>}} |
| | {{{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}}} |ok|optional=✓ |workaround=⚠ |soon-official=↻ |broken={{#if:{{{source|}}}|↻|✖}}|obsolete=✖}} {{#switch:{{{status|ok}}} | + | | {{#switch:{{{status|ok}}} |ok|optional=✓ |workaround=⚠ |soon-official=↻ |broken={{#if:{{{#github|{{{source|}}}}}}|↻|✖}}|obsolete=✖}} {{#switch:{{{status|ok}}} |
| |ok = {{#if:{{{summary|}}}|{{{summary}}}|use latest version.}} | | |ok = {{#if:{{{summary|}}}|{{{summary}}}|use latest version.}} |
| |optional = {{#if:{{{summary|}}}|{{{summary}}}|use optional download<ref name="optional-update" />.}} | | |optional = {{#if:{{{summary|}}}|{{{summary}}}|use optional download<ref name="optional-update" />.}} |
| |obsolete = {{#if:{{{summary|}}}|{{{summary}}}|obsolete.}} | | |obsolete = {{#if:{{{summary|}}}|{{{summary}}}|obsolete.}} |
− | |#default = broken{{#if:{{{summary|}}}|, {{{summary}}}|{{#switch:{{{status|ok}}}|broken={{#if:{{{source|}}}|, not updated yet|, not open-source}}|soon-official=, author will update it soon}}.}} | + | |#default = broken{{#if:{{{summary|}}}|, {{{summary}}}|{{#switch:{{{status|ok}}}|broken={{#if:{{{github|{{{source|}}}}}}|, not updated yet|, not open-source}}|soon-official=, author will update it soon}}.}} |
| }} | | }} |
| | <small>{{{broke in|}}}</small> | | | <small>{{{broke in|}}}</small> |
− | | {{#if:{{{source|}}}|[{{{source}}} source]|<span style="color: red; font-size: 0.85em; opacity: 0.5;">closed source</span>}} | + | | {{#if:{{{github|}}}|[https://github.com/{{{github}}} source]|{{#if:{{{source|}}}|[{{{source}}} source]|<span style="color: red; font-size: 0.85em; opacity: 0.5;">closed source</span>}}}} |
| | {{#if:{{{hide-url|}}}| [{{{hide-url}}} <sup>o</sup>]}}{{#if:{{{links|}}}| {{#arraydefine:linkArray|{{{links}}}}}{{#arrayprint:linkArray| |@@@@|<sup>[@@@@ {{#expr:{{#arraysearch:linkArray|@@@@}} + 1}}]</sup>}}}}<noinclude> | | | {{#if:{{{hide-url|}}}| [{{{hide-url}}} <sup>o</sup>]}}{{#if:{{{links|}}}| {{#arraydefine:linkArray|{{{links}}}}}{{#arrayprint:linkArray| |@@@@|<sup>[@@@@ {{#expr:{{#arraysearch:linkArray|@@@@}} + 1}}]</sup>}}}}<noinclude> |
| |} | | |} |
Line 28: |
Line 28: |
| |name = Lookup Anything | | |name = Lookup Anything |
| |author = Pathoschild | | |author = Pathoschild |
− | |url = http://www.nexusmods.com/stardewvalley/mods/541 | + | |nexus id = 541 |
− | |source = https://github.com/Pathoschild/StardewMods | + | |github = Pathoschild/StardewMods |
| }} | | }} |
| </pre> | | </pre> |
Line 38: |
Line 38: |
| |name = Lookup Anything | | |name = Lookup Anything |
| |author = Pathoschild | | |author = Pathoschild |
− | |url = http://www.nexusmods.com/stardewvalley/mods/541 | + | |nexus id = 541 |
− | |source = https://github.com/Pathoschild/StardewMods | + | |github = Pathoschild/StardewMods |
| |status = broken | | |status = broken |
| |summary = | | |summary = |
Line 46: |
Line 46: |
| }} | | }} |
| </pre> | | </pre> |
| + | |
| + | Alternative options: |
| + | * can replace <tt>nexus id</tt> with <tt>chucklefish id</tt> or <tt>url</tt>; |
| + | * can replace <tt>github</tt> with <tt>source url</tt>. |
| | | |
| Valid statuses: | | Valid statuses: |