Jump to content

Template:Executable name/doc: Difference between revisions

From Stardew Valley Wiki
imported>Pathoschild
+ auto-populate icon
imported>Pathoschild
+ extension argument
Line 20: Line 20:
| <pre>{{executable name|StardewModdingAPI}}</pre>
| <pre>{{executable name|StardewModdingAPI}}</pre>
| {{executable name|StardewModdingAPI}}
| {{executable name|StardewModdingAPI}}
|}
You can also set a different executable file extension:
{| class="wikitable"
|-
! code
! result
|-
| <pre>{{executable name|install on Windows|extension=bat}}</pre>
| {{executable name|install on Windows|extension=bat}}
|}
|}


<includeonly>{{Addlanglinks}}[[Category:Modding templates]]</includeonly>
<includeonly>{{Addlanglinks}}[[Category:Modding templates]]</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 16:35, 3 July 2022

Description

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

Usage

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.exe
{{executable name|Stardew Valley}}
 Stardew Valley.exe
{{executable name|StardewModdingAPI}}
 StardewModdingAPI.exe

You can also set a different executable file extension:

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