Line 52: |
Line 52: |
| |unofficial url = https://community.playstarbound.com/attachments/201345000 | | |unofficial url = https://community.playstarbound.com/attachments/201345000 |
| |unofficial version = 1.18.2-unofficial.1-example | | |unofficial version = 1.18.2-unofficial.1-example |
− | |pull request = https://github.com/Pathoschild/Example/pull/1
| |
| </pre> | | </pre> |
| {{#invoke:SMAPI compatibility|header}} | | {{#invoke:SMAPI compatibility|header}} |
Line 65: |
Line 64: |
| |unofficial url = https://community.playstarbound.com/attachments/201345000 | | |unofficial url = https://community.playstarbound.com/attachments/201345000 |
| |unofficial version = 1.18.2-unofficial.1-example | | |unofficial version = 1.18.2-unofficial.1-example |
− | |pull request = https://github.com/Pathoschild/Example/pull/1
| |
| }} | | }} |
| {{#invoke:SMAPI compatibility|footer}} | | {{#invoke:SMAPI compatibility|footer}} |
Line 115: |
Line 113: |
| | <code>unofficial version</code> | | | <code>unofficial version</code> |
| | The unofficial update's version number, if any. | | | The unofficial update's version number, if any. |
− | |-
| |
− | | <code>pull request</code>
| |
− | | The URL of the pull request which submits changes for an unofficial update to the author, if any.
| |
| |- | | |- |
| | <code>cf id</code> | | | <code>cf id</code> |
Line 136: |
Line 131: |
| | <code>source</code> | | | <code>source</code> |
| | An arbitrary source code URL, if not on GitHub. Avoid if possible, since this makes crossreferencing more difficult. | | | An arbitrary source code URL, if not on GitHub. Avoid if possible, since this makes crossreferencing more difficult. |
− | |-
| |
− | | <code>links</code>
| |
− | | A comma-delimited list of URLs to add as superscript links. Mainly useful for linking to pull requests.
| |
| |- | | |- |
| | <code>warnings</code> | | | <code>warnings</code> |
Line 172: |
Line 164: |
| | <code>beta unofficial version</code> | | | <code>beta unofficial version</code> |
| | The unofficial update's version number, if any. | | | The unofficial update's version number, if any. |
− | |}
| |
− |
| |
− | ===Override fields===
| |
− | These fields override information provided by the author in the <samp>manifest.json</samp> or mod page, so they should only be used as a last resort.
| |
− |
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! field
| |
− | ! purpose
| |
− | |-
| |
− | | <code>change update keys</code>
| |
− | | Overrides the [[Modding:Modder Guide/APIs/Update checks|update keys]] from the <samp>manifest.json</samp> or other compatibility list fields. Remove a key with <code>-</code>, add a key with an optional <code>+</code>, and separate keys with commas. For example:
| |
− | <pre>
| |
− | |override update keys = -Nexus:991, +Nexus:991@CFA
| |
− | </pre>
| |
− | |-
| |
− | | <code>map remote version</code>
| |
− | | When SMAPI performs an update check for the mod, this field overrides the version returned by the server. SMAPI will match the original version using [https://semver.org/ semantic rules] if it's parseable (''e.g.,'' <code>1.0</code> and <code>1.0.0</code> are equivalent), else it'll fallback to case-insensitive string comparison (''e.g.,'' <code>1.01</code> and <code>1.01.0</code> are ''not'' equivalent). If an invalid format is specified or the new version can't be parsed, the mapping will be ignored.
| |
− |
| |
− | '''This is a specialised field; it's better to correct the mod page if possible.'''
| |
− |
| |
− | Mappings are specified with an arrow, and multiple mappings can be separated by a semi-colon:
| |
− | <pre>
| |
− | |map remote versions = 0.01 → 0.0.1; 0.0.1-beta → 0.0.1
| |
− | </pre>
| |
− | |-
| |
− | | <code>map local version</code>
| |
− | | Equivalent to <code>map remote version</code>, but for the manifest version.
| |
| |} | | |} |
| | | |