Template:Infobox homebrew: Difference between revisions

Template page
(releaseurl1, 2, 3 and releasename1, 2, 3)
(add osc to download links check)
 
(12 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


| label1 = Console
| label1 = Developer(s)
| data1 = {{#invoke:String|join|, |{{#if:{{yesno|{{{for3ds|0}}}}}|Nintendo 3DS|}}|{{#if:{{yesno|{{{forwiiu|0}}}}}|Wii U|}}|{{#if:{{yesno|{{{forswitch|0}}}}}|Nintendo Switch|}}}}
| data1 = {{{developers|}}}
| label2 = Platform
| label2 = Console
| data2 = {{#invoke:String|join|, |{{#if:{{yesno|{{{forwindows|0}}}}}|Microsoft Windows|}}|{{#if:{{yesno|{{{formac|0}}}}}|macOS|}}|{{#if:{{yesno|{{{forlinux|0}}}}}|Linux|}}|{{#if:{{yesno|{{{forjava|0}}}}}|Java|}}}}
| 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 = Version
| label3 = Platform
| data3 = {{{version|}}}
| 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
| data4 = {{{version|}}} {{#if: {{{releasedate|}}} | ({{Start date and age|{{#time:Y|{{{releasedate}}}}}|{{#time:m|{{{releasedate}}}}}|{{#time:d|{{{releasedate}}}}}}}) }}


| header10 = Links
| header10 = Links
| label11  = GitHub
| label11 = Website
| data11   = {{#if: {{{github|}}} | [https://github.com/{{{github}}} {{{github}}}] | }}
| data11  = {{#if: {{{website|}}} | [{{{website}}}] | }}
| label12 = GitLab
| label12 = GitHub
| data12   = {{#if: {{{gitlab|}}} | [https://gitlab.com/{{{gitlab}}} {{{gitlab}}}] | }}
| data12   = {{#if: {{{github|}}} | [https://github.com/{{{github}}} {{{github}}}] | }}
| label13 = Source code
| label13 = GitLab
| data13   = {{#if: {{{sourceurl|}}} | [{{{sourceurl}}} {{{sourceurl}}}] | }}
| data13   = {{#if: {{{gitlab|}}} | [https://gitlab.com/{{{gitlab}}} {{{gitlab}}}] | }}
| label14 = Source code
| data14   = {{#if: {{{sourceurl|}}} | [{{{sourceurl}}} {{{sourceurl}}}] | }}


| 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|}}} | *[{{{releaseurl}}} External site] | }}
}}<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]] | }} }}</includeonly>
{{#if: {{{releaseurl1|}}} | *[{{{releaseurl1}}} {{{releasename1}}}] | }}
{{#if: {{{releaseurl2|}}} | *[{{{releaseurl2}}} {{{releasename2}}}] | }}
{{#if: {{{releaseurl3|}}} | *[{{{releaseurl3}}} {{{releasename3}}}] | }}
{{#if: {{{universaldb|}}} | *[https://db.universal-team.net/{{{universaldb}}} Universal-DB] | }}
{{#if: {{{githubtag|}}} | {{#if: {{{github|}}} | *[https://github.com/{{{github}}}/releases/{{{githubtag}}} GitHub release] | }} | }}
{{#if: {{{gitlabtag|}}} | {{#if: {{{gitlab|}}} | *[https://gitlab.com/{{{gitlab}}}/-/releases/{{{gitlabtag}}} GitLab release] | }} | }}}} | }}
}}<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 21:37, 3 May 2024