Difference between revisions of "Template:Executable name/doc"
Jump to navigation
Jump to search
Pathoschild (talk | contribs) (create page) |
Margotbean (talk | contribs) m (Text replacement - "==Usage==" to "==Use==") |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | This template formats | + | This template formats an executable file's name & icon for consistency in documentation pages. |
− | == | + | ==Use== |
− | The template can be used by placing <code><nowiki>{{</nowiki> | + | 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. If the icon field is omitted, it'll be auto-populated if the name is ''Stardew Valley'', ''StardewValley'', or ''StardewModdingAPI''. |
+ | |||
+ | For example: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 10: | Line 12: | ||
! result | ! result | ||
|- | |- | ||
− | | <pre>{{ | + | | <pre>{{executable name|Stardew Valley|Stardew Valley executable icon.png}}</pre> |
− | | {{ | + | | {{executable name|Stardew Valley|Stardew Valley executable icon.png}} |
+ | |- | ||
+ | | <pre>{{executable name|Stardew Valley}}</pre> | ||
+ | | {{executable name|Stardew Valley}} | ||
+ | |- | ||
+ | | <pre>{{executable name|StardewModdingAPI}}</pre> | ||
+ | | {{executable name|StardewModdingAPI}} | ||
+ | |} | ||
+ | |||
+ | You can also set a different executable file extension: | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! code | ||
+ | ! result | ||
|- | |- | ||
− | | <pre>{{ | + | | <pre>{{executable name|install on Windows|extension=bat}}</pre> |
− | | {{ | + | | {{executable name|install on Windows|extension=bat}} |
|} | |} | ||
− | <includeonly>{{Addlanglinks}}[[Category: | + | <includeonly>{{Addlanglinks}}[[Category:Modding templates]]</includeonly> |
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 21:01, 8 January 2023
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:
You can also set a different executable file extension:
code | result |
---|---|
{{executable name|install on Windows|extension=bat}} |
install on Windows.bat
|