Jump to content

Template:Executable name/doc: Difference between revisions

From Stardew Valley Wiki
imported>Pathoschild
m Pathoschild moved page Template:File name/doc to Template:Executable name/doc without leaving a redirect: update for new usage
imported>Pathoschild
update for rename
Line 3: Line 3:


==Usage==
==Usage==
The template can be used by placing <code><nowiki>{{</nowiki>file name|''executable name without file extension''|''wiki icon name''<nowiki>}}</nowiki></code> on the page. For example:
The template can be used by placing <code><nowiki>{{</nowiki>executable name|''executable name without file extension''|''wiki icon name''<nowiki>}}</nowiki></code> on the page. For example:


{| class="wikitable"
{| class="wikitable"
Line 10: Line 10:
! result
! result
|-
|-
| <pre>{{file name|Stardew Valley|Stardew Valley executable icon.png}}</pre>
| <pre>{{executable name|Stardew Valley|Stardew Valley executable icon.png}}</pre>
| {{file name|Stardew Valley|Stardew Valley executable icon.png}}
| {{executable name|Stardew Valley|Stardew Valley executable icon.png}}
|-
|-
| <pre>{{file name|StardewModdingAPI|SMAPI mascot.png}}</pre>
| <pre>{{executable name|StardewModdingAPI|SMAPI mascot.png}}</pre>
| {{file name|StardewModdingAPI|SMAPI mascot.png}}
| {{executable name|StardewModdingAPI|SMAPI mascot.png}}
|}
|}


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

Revision as of 18:16, 12 June 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. For example:

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