Template:Executable name/doc

From Stardew Valley Wiki
< Template:Executable name
Revision as of 21:01, 8 January 2023 by Margotbean (talk | contribs) (Text replacement - "==Usage==" to "==Use==")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This template formats an executable file's name & icon for consistency in documentation pages.

Use

The template can be used by placing {{executable name|executable name without file extension|wiki icon name}} on the page. If the icon field is omitted, it'll be auto-populated if the name is Stardew Valley, StardewValley, or StardewModdingAPI.

For example:

code result
{{executable name|Stardew Valley|Stardew Valley executable icon.png}}
Stardew Valley executable icon.png Stardew Valley.exe
{{executable name|Stardew Valley}}
Stardew Valley executable icon.png Stardew Valley.exe
{{executable name|StardewModdingAPI}}
SMAPI mascot.png StardewModdingAPI.exe

You can also set a different executable file extension:

code result
{{executable name|install on Windows|extension=bat}}
install on Windows.bat