Template:Executable name/doc: Difference between revisions
Appearance
imported>Margotbean category |
imported>Pathoschild + auto-populate icon |
||
| Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
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: | 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 13: | Line 15: | ||
| {{executable name|Stardew Valley|Stardew Valley executable icon.png}} | | {{executable name|Stardew Valley|Stardew Valley executable icon.png}} | ||
|- | |- | ||
| <pre>{{executable name|StardewModdingAPI | | <pre>{{executable name|Stardew Valley}}</pre> | ||
| {{executable name|StardewModdingAPI | | {{executable name|Stardew Valley}} | ||
|- | |||
| <pre>{{executable name|StardewModdingAPI}}</pre> | |||
| {{executable name|StardewModdingAPI}} | |||
|} | |} | ||
<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:24, 15 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. If the icon field is omitted, it'll be auto-populated if the name is Stardew Valley, StardewValley, or StardewModdingAPI.
For example: