Difference between revisions of "Template:Executable name"

From Stardew Valley Wiki
Jump to navigation Jump to search
(fix doc formatting)
(focus on exe files, add note about '.exe' sometimes not being shown)
Line 1: Line 1:
<code>{{#if:{{{2|}}}|[[File:{{{2}}}|20px]]&nbsp;}}{{{1}}}</code><noinclude>
+
<code>[[File:{{{2}}}|20px]]&nbsp;{{{1}}}<span style="opacity: 0.4; border-bottom: 1px dashed #000;" title="May appear as '{{{1}}}' without the '.exe' depending on your settings.">.exe</span></code><noinclude>
 
{{{{FULLPAGENAME}}/doc}}</noinclude>
 
{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 18:13, 12 June 2022

[[File:{{{2}}}|20px]] {{{1}}}.exe

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}}
[[File:{{{2}}}|20px]] Stardew Valley.exe
{{executable name|StardewModdingAPI}}
[[File:{{{2}}}|20px]] StardewModdingAPI.exe

You can also set a different executable file extension:

code result
{{executable name|install on Windows|extension=bat}}
[[File:{{{2}}}|20px]] install on Windows.exe