(add website parameter) |
m (Ihaveahax moved page Template:Infobox homebrew to Template:Infobox software: this is a more accurate name since it's being used for non-homebrew software as well as PC tools) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
| image = {{#if: {{{image|}}} | [[File:{{{image}}}|{{{imagesize|}}}|alt={{{imagealt|}}}]] | }} | | image = {{#if: {{{image|}}} | [[File:{{{image}}}|{{{imagesize|}}}|alt={{{imagealt|}}}]] | }} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| image2 = {{#if: {{{screenshot|}}} | [[File:{{{screenshot}}}|{{{screenshotsize|}}}|alt={{{screenshotalt|}}}]] | }} | |||
| caption2 = {{{screenshotcaption|}}} | |||
| autoheaders = y | | autoheaders = y | ||
| bodyclass = plainlinks | | bodyclass = plainlinks | ||
Line 10: | Line 12: | ||
| data1 = {{{developers|}}} | | data1 = {{{developers|}}} | ||
| label2 = Console | | label2 = Console | ||
| data2 = {{#invoke:String|join|, |{{#if:{{yesno|{{{for3ds|0}}}}}|Nintendo 3DS|}}|{{#if:{{yesno|{{{forwiiu|0}}}}}|Wii U|}}|{{#if:{{yesno|{{{forswitch|0}}}}}|Nintendo Switch|}}}} | | data2 = {{#invoke:String|join|, |{{#if:{{yesno|{{{for3ds|0}}}}}|Nintendo 3DS|}}|{{#if:{{yesno|{{{forwiiu|0}}}}}|Wii U|}}|{{#if:{{yesno|{{{forswitch|0}}}}}|Nintendo Switch|}}|{{#if:{{yesno|{{{forwii|0}}}}}|Wii|}}}} | ||
| label3 = Platform | | label3 = Platform | ||
| data3 = {{#invoke:String|join|, |{{#if:{{yesno|{{{forwindows|0}}}}}|Microsoft Windows|}}|{{#if:{{yesno|{{{formac|0}}}}}|macOS|}}|{{#if:{{yesno|{{{forlinux|0}}}}}|Linux|}}|{{#if:{{yesno|{{{forjava|0}}}}}|Java|}}}} | | data3 = {{#invoke:String|join|, |{{#if:{{yesno|{{{forwindows|0}}}}}|Microsoft Windows|}}|{{#if:{{yesno|{{{formac|0}}}}}|macOS|}}|{{#if:{{yesno|{{{forlinux|0}}}}}|Linux|}}|{{#if:{{yesno|{{{forjava|0}}}}}|Java|}}}} | ||
| label4 = Version | | label4 = Version | ||
| data4 = {{{version|}}} {{#if: {{{releasedate|}}} | ({{{releasedate}}}) }} | | data4 = {{{version|}}} {{#if: {{{releasedate|}}} | ({{Start date and age|{{#time:Y|{{{releasedate}}}}}|{{#time:m|{{{releasedate}}}}}|{{#time:d|{{{releasedate}}}}}}}) }} | ||
| header10 = Links | | header10 = Links | ||
Line 27: | Line 29: | ||
| header20 = Download | | header20 = Download | ||
| data21 = {{#if: <!-- this is because plainlist always emits html elements, i need to check if any of the params are being checked first -->{{{releaseurl|}}}{{{universaldb|}}}{{{githubtag|}}}{{{gitlabtag|}}} | {{plainlist| | | data21 = {{#if: <!-- this is because plainlist always emits html elements, i need to check if any of the params are being checked first -->{{{releaseurl|}}}{{{universaldb|}}}{{{osc|}}}{{{githubtag|}}}{{{gitlabtag|}}} | {{plainlist|<ul>{{#if: {{{releaseurl|}}} | <li>[{{{releaseurl}}} External site]</li> | }}{{#if: {{{releaseurl1|}}} | <li>[{{{releaseurl1}}} {{{releasename1}}}]</li> | }}{{#if: {{{releaseurl2|}}} | <li>[{{{releaseurl2}}} {{{releasename2}}}]</li> | }}{{#if: {{{releaseurl3|}}} | <li>[{{{releaseurl3}}} {{{releasename3}}}]</li> | }}{{#if: {{{universaldb|}}} | <li>[[universaldb:{{{universaldb}}}|Universal-DB]]</li> | }}{{#if: {{{osc|}}} | <li>[[osc:{{{osc}}}|Open Shop Channel]]</li> | }}{{#if: {{{githubtag|}}} | {{#if: {{{github|}}} | <li>[https://github.com/{{{github}}}/releases/{{{githubtag}}} GitHub release]</li> | }} | }}{{#if: {{{gitlabtag|}}} | {{#if: {{{gitlab|}}} | <li>[https://gitlab.com/{{{gitlab}}}/-/releases/{{{gitlabtag}}} GitLab release]</li> | }} | }}</ul> }} | }} | ||
{{#if: {{{releaseurl|}}} | | }}<includeonly>{{#if: {{{nocat|}}} | <!-- categorization suppressed --> | {{#if: {{{image|}}} | {{#if: {{{imagealt|}}} | <!-- has image with alt text --> | [[Category:Infoboxes without image alt text]] }} }} {{#if: {{{screenshot|}}} | {{#if: {{{screenshotalt|}}} | <!-- has screenshot with alt text --> | [[Category:Infoboxes without image alt text]] }} }} {{#if: {{{version|}}} | <!-- has a release date --> | [[Category:Software without a version set]] }} {{#if: {{{releasedate|}}} | <!-- has a release date --> | [[Category:Software without a release date set]] }} {{#if: {{yesno|{{{for3ds|}}}}} | [[Category:Nintendo 3DS homebrew]] | }}{{#if: {{yesno|{{{forwiiu|}}}}} | [[Category:Wii U homebrew]] | }}{{#if: {{yesno|{{{forswitch|}}}}} | [[Category:Nintendo Switch homebrew]] | }}{{#if: {{yesno|{{{forwii|}}}}} | [[Category:Wii homebrew]] | }}{{#if: {{yesno|{{{forwindows|}}}{{{formac|}}}{{{forlinux|}}}{{{forjava|}}}}} | [[Category:PC software]] | }} }}</includeonly> | ||
{{#if: {{{releaseurl1|}}} | | |||
{{#if: {{{releaseurl2|}}} | | |||
{{#if: {{{releaseurl3|}}} | | |||
{{#if: {{{universaldb|}}} | | |||
{{#if: {{{githubtag|}}} | {{#if: {{{github|}}} | | |||
{{#if: {{{gitlabtag|}}} | {{#if: {{{gitlab|}}} | | |||
}}<includeonly>{{#if: {{{nocat|}}} | <!-- categorization suppressed --> | {{#if: {{yesno|{{{for3ds|}}}}} | [[Category:Nintendo 3DS homebrew]] | }}{{#if: {{yesno|{{{forwiiu|}}}}} | [[Category:Wii U homebrew]] | }}{{#if: {{yesno|{{{forswitch|}}}}} | [[Category:Nintendo Switch homebrew]] | }} }}</includeonly> | |||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Latest revision as of 02:20, 31 October 2024
This places an infobox about homebrew software.
Example
Developer(s) | FlagBrew |
---|---|
Console | Nintendo 3DS, Nintendo Switch |
Version | 3.8.0 (November 13, 2021 | )
Links | |
GitHub | FlagBrew/Checkpoint |
Download | |
If this were on the Checkpoint page...
{{Infobox homebrew | for3ds = 1 | developers = FlagBrew | forswitch = 1 | image = Checkpoint-Banner.png | imagealt = Checkpoint banner on the Home Menu | version = 3.8.0 | releasedate = 2021-11-13 | github = FlagBrew/Checkpoint | githubtag = v3.8.0 }}
TemplateData
Console homebrew infobox.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Homebrew name | title | Name of the homebrew - only set this if the page title shouldn't be automatically used
| String | optional |
Image | image | Image to use. Preference order: Banner image (3DS/Wii U), Banner screenshot (3DS), then Icon (3DS/Wii U/Switch). Please also set image alt text. | File | suggested |
Image alt text | imagealt | Alt text for the image, appears on hover and to screen readers
| String | suggested |
Image size | imagesize | Resize the image, accepts any value that the MediaWiki image syntax uses (recommended to use if image is over is 256px wide)
| String | optional |
Screenshot | screenshot | A screenshot of the application. Please also set screenshot alt text. | File | suggested |
Screenshot alt text | screenshotalt | Alt text for the screenshot, appears on hover and to screen readers
| String | suggested |
Screenshot size | screenshotsize | Resize the screenshot, accepts any value that the MediaWiki image syntax uses (recommended to use if image is over is 256px wide)
| String | optional |
For 3DS | for3ds | If the homebrew is for the Nintendo 3DS
| Boolean | suggested |
For Wii U | forwiiu | If the homebrew is for the Wii U
| Boolean | suggested |
For Switch | forswitch | If the homebrew is for the Nintendo Switch
| Boolean | suggested |
For Wii | forwii | If the homebrew is for the Wii
| Boolean | suggested |
Developers | developers | List of primary developers
| Content | suggested |
Version | version | Currently released version (NOTE: currently you must manually update GitHub release tag or GitLab release tag) | String | suggested |
Release date | releasedate | Date of the latest release in YYYY-MM-DD format
| Date | suggested |
Website | website | Link to a page for the homebrew. Can be something like a forum thread link too. Use the GitHub or GitLab parameters for those sites instead. | URL | suggested |
GitHub repository | github | Where the source code is on GitHub
| String | optional |
GitLab.com repository | gitlab | Where the source code is on GitLab (not self-hosted instances)
| String | optional |
Source code URL | sourceurl | Where the source code is (if not on GitHub or GitLab.com) | URL | optional |
External release URL | releaseurl | URL to find the latest release of the homebrew - can either be a direct download or a page that links to one
| URL | optional |
Universal-DB URL path | universaldb | URL path to the homebrew's page on Universal-DB (db.universal-team.net)
| String | optional |
Open Shop Channel URL path | osc | URL path to the homebrew's page on Open Shop Channel (oscwii.org/library)
| String | optional |
GitHub release tag | githubtag | Tag for the latest release on GitHub (requires GitHub repository to be set)
| String | optional |
GitLab release tag | gitlabtag | Tag for the latest release on GitLab.com (requires GitLab repository to be set, not self-hosted instances)
| String | optional |
Image caption | caption | Caption to display below the image | String | optional |
Screenshot caption | screenshotcaption | Caption to display below the screenshot | String | optional |
For Windows | forwindows | If this is a PC tool that runs on Windows
| Boolean | suggested |
For macOS | formac | If this is a PC tool that runs on macOS
| Boolean | suggested |
For Linux | forlinux | If this is a PC tool that runs on Linux
| Boolean | suggested |
For Java | forjava | If this is a PC tool that is a Java-based program
| Boolean | suggested |