Difference between revisions of "Modding:Mod compatibility/entry"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (fix)
(automate "use latest version" summary for OK status if not specified, update example)
Line 9: Line 9:
 
| {{#if:{{{url|}}}|[{{{url}}} {{{name}}}]|{{{name}}}}}
 
| {{#if:{{{url|}}}|[{{{url}}} {{{name}}}]|{{{name}}}}}
 
| {{{author}}}
 
| {{{author}}}
| {{#switch:{{{status}}} |ok=✓ |workaround=⚠ |broken=✖}} {{{summary}}}
+
| {{#switch:{{{status}}} |ok=✓ |workaround=⚠ |broken=✖}} {{#if:{{{summary|}}}|{{{summary}}}|{{#switch:{{{status}}}|ok=use latest version.}}}}
 
| {{#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:{{{link1|}}}|&#32;[{{{link1}}} ¹]}}{{#if:{{{link2|}}}|&#32;[{{{link2}}} ²]}}<noinclude>
 
|}
 
|}
Line 15: Line 15:
 
==Usage==
 
==Usage==
 
Basic fields:
 
Basic fields:
<pre>{{/entry |name=Lookup Anything |author=Pathoschild |url=http://www.nexusmods.com/stardewvalley/mods/541 |status=ok |summary=use latest version }}</pre>
+
<pre>
 +
{{/entry
 +
  |name   = Lookup Anything
 +
  |author = Pathoschild
 +
  |url     = http://www.nexusmods.com/stardewvalley/mods/541
 +
  |status = ok
 +
  |summary = use latest version.
 +
  |source  = https://github.com/Pathoschild/StardewMods
 +
}}
 +
</pre>
  
 
Other fields:
 
Other fields:
* <code>|source=URL</code> adds a link to the source code.
 
 
* <code>|hide-url=URL</code> (replacing <code>|url=</code>) moves the URL into a superscript link.
 
* <code>|hide-url=URL</code> (replacing <code>|url=</code>) moves the URL into a superscript link.
 
* <code>|link1=URL</code> and <code>|link2=URL</code> adds superscript links.
 
* <code>|link1=URL</code> and <code>|link2=URL</code> adds superscript links.
  
 
[[Category:Modding]]</noinclude>
 
[[Category:Modding]]</noinclude>

Revision as of 17:45, 11 July 2017

Usage

Basic fields:

{{/entry
  |name    = Lookup Anything
  |author  = Pathoschild
  |url     = http://www.nexusmods.com/stardewvalley/mods/541
  |status  = ok
  |summary = use latest version.
  |source  = https://github.com/Pathoschild/StardewMods
}}

Other fields:

  • |hide-url=URL (replacing |url=) moves the URL into a superscript link.
  • |link1=URL and |link2=URL adds superscript links.