Template:Software infobox: Difference between revisions
From IFWiki
(Updated infobox for use with Page Forms and Cargo) |
(Don't display "Latest version" row in infobox if neither version nor date available) |
||
(36 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare:_table=Software | {{#cargo_declare:_table=Software | ||
|_drilldownTabs=Table (format=table;fields=_pageName=Software,Type__full=Type,Format__full=Format,System__full=System,Status,Date, | |_drilldownTabs=Table (format=template;template=software drilldown table row;named args=yes;fields=_pageName=Software,Type__full=Type,Utility_description,Format__full=Format,System__full=System,System_details,Style__full=Interaction style,Status,Date,Multimedia;intro=<table class='cargoTable noMerge sortable'><tr><th class='field_Software'>Software</th> | ||
<th class='field_Type'>Type</th> | |||
<th class='field_Format'>Format</th> | |||
<th class='field_System'>System</th> | |||
<th class='field_Interaction_style'>Interaction style</th> | |||
<th class='field_Status'>Status</th> | |||
<th class='field_Date'>Date</th> | |||
<th class='field_Multimedia'>Multimedia</th> | |||
</tr>;outro=</table>), List | |||
|Type=List (,) of String | |Type=List (,) of String | ||
|Utility_description=Text | |||
|Style=List (,) of String | |||
|Interpreter_app=Boolean (hidden) | |Interpreter_app=Boolean (hidden) | ||
| | |Uses=List (,) of Page (hidden) | ||
|Implements=List (,) of String (hidden) | |||
|Format=List (,) of String | |Format=List (,) of String | ||
|Developer=List (,) of String (hidden) | |Developer=List (,) of String (hidden) | ||
|System=List (,) of String | |System=List (,) of String | ||
|System_details=Text | |||
|Version=String (hidden) | |Version=String (hidden) | ||
|Date=Date (hidden) | |Date=Date (hidden) | ||
Line 13: | Line 26: | ||
|Home_page=URL (hidden) | |Home_page=URL (hidden) | ||
|Download=URL (hidden) | |Download=URL (hidden) | ||
|Play_online=URL (hidden) | |||
|Picture=File | |Picture=File | ||
|Multimedia=Text | |Multimedia=Text | ||
|License=String (hidden) | |||
|Notes=Text | |Notes=Text | ||
}} | }} | ||
Line 20: | Line 35: | ||
{| class="wikitable ifwiki-infobox" | {| class="wikitable ifwiki-infobox" | ||
|- | |- | ||
! colspan="2" class="ifwiki-infobox-center" | <span style="font-size: 1.3em">{{PAGENAME}}</span> | ! colspan="2" class="ifwiki-infobox-center" | <span style="font-size: 1.3em">{{#switch:{{PAGENAME}} | ||
|DMagnetic = dMagnetic{{DISPLAYTITLE:dMagnetic}} | |||
|Ifvms.js = ifvms.js{{DISPLAYTITLE:ifvms.js}} | |||
|Mjr-T3 = mjr-T3{{DISPLAYTITLE:mjr-T3}} | |||
|JAsea = jAsea{{DISPLAYTITLE:jAsea}} | |||
|Inkjs = inkjs{{DISPLAYTITLE:inkjs}} | |||
|MInform = mInform{{DISPLAYTITLE:mInform}} | |||
|#default = {{PAGENAME}} | |||
}}</span> | |||
|- {{#if: {{{Type|}}} | | style="display: none" }} | |- {{#if: {{{Type|}}} | | style="display: none" }} | ||
! colspan="2" class="ifwiki-infobox-center" | {{#replace:{{#arraymap: {{{Type|}}} |,|@@|[[@@]] }} | [[Other]] | Miscellaneous software}} | ! colspan="2" class="ifwiki-infobox-center" | {{#replace:{{#arraymap: {{{Type|}}} |,|@@|[[@@]] }} | [[Other]] | Miscellaneous software}} | ||
|- {{#if: {{{Utility description|}}} | | style="display: none" }} | |||
| colspan="2" class="ifwiki-infobox-center" | {{{Utility description|}}} | |||
|- {{#if:{{{Picture|}}} | | style="display: none" }} | |- {{#if:{{{Picture|}}} | | style="display: none" }} | ||
Line 29: | Line 55: | ||
|- | |- | ||
! {{# | ! {{#ifexpr:({{#len:{{{Home page|}}} }}>0) + ({{#len:{{{Download|}}} }}>0) + ({{#len:{{{Play online|}}} }}>0) > 1 | Links | Link}} | ||
| {{#if:{{{Home page|}}} | [{{{Home page|}}} {{# | | {{#if:{{{Home page|}}} | [{{{Home page|}}} Home page] }} {{#if:{{{Download|}}} | [{{{Download|}}} Download] }} {{#if:{{{Play online|}}} | {{#if:{{#pos:{{{Type|}}}|Interpreter}}|[{{{Play online|}}} Play online]|[{{{Play online|}}} Run online]}} }} | ||
|- | |- | ||
! {{#if:{{#pos:{{{Developer|}}}|,}}|Developers|Developer}} | ! {{#if:{{#pos:{{{Developer|}}}|,}}|Developers|Developer}} | ||
Line 40: | Line 65: | ||
| {{#replace:{{#arraymap: {{{Format|}}} |,|@@|[[@@]] }} | [[Other]] | Other}} | | {{#replace:{{#arraymap: {{{Format|}}} |,|@@|[[@@]] }} | [[Other]] | Other}} | ||
|- {{# | |- {{#if:{{{Style|}}} | | style="display: none" }} | ||
! Interaction style | ! Interaction style | ||
| {{#if:{{{Style|}}} | | | {{#if:{{{Style|}}} | {{#arraymap: {{{Style|}}} |,|@@|[[@@]] }} }} | ||
|- | |- {{#if:{{{System|}}} | | style="display: none" }} | ||
! {{#if:{{#pos:{{{System|}}}|,}}|Systems|System}} | ! {{#if:{{#pos:{{{System|}}}|,}}|Systems|System}} | ||
| {{{System|}}} | | {{{System|}}} | ||
|- | |||
|- {{#if:{{{System details|}}}| | style="display: none" }} | |||
! System details | |||
| {{{System details|}}} | |||
|- {{#if:{{{Version|}}}{{{Date|}}}| | style="display: none" }} | |||
! Latest version | ! Latest version | ||
| {{#if:{{{Version|}}} | {{{Version|}}} }} {{#if:{{{Date|}}} | {{#if:{{{Version|}}} | / }} {{date format | {{{Date|}}} }} }} | | {{#if:{{{Version|}}} | {{{Version|}}} }} {{#if:{{{Date|}}} | {{#if:{{{Version|}}} | / }} {{date format | {{{Date|}}} }} }} | ||
Line 53: | Line 82: | ||
! Status | ! Status | ||
| {{{Status|}}} | | {{{Status|}}} | ||
|- {{#if: {{{Implements|}}} | | style="display: none" }} | |||
|- {{#if: {{{Uses | ! <span style="text-align: left !important">Implements</span> | ||
! <span style="text-align: left !important">Uses | | {{#arraymap: {{{Implements|}}} |,|@@|[[@@]] }} | ||
| {{#arraymap: {{{Uses | |- {{#if: {{{Uses|}}} | | style="display: none" }} | ||
! <span style="text-align: left !important">Uses</span> | |||
| {{#arraymap: {{{Uses|}}} |,|@@|[[@@]] }} | |||
{{#cargo_query:<!--This is for "Used by"--> | {{#cargo_query:<!--This is for "Used by"--> | ||
tables=Software | tables=Software | ||
|fields= CONCAT('[[',_pageTitle,']]') | |fields= CONCAT('[[',_pageTitle,']]') | ||
|where=Software. | |where=Software.Uses HOLDS "{{PAGENAME}}" | ||
|group by=_pageTitle | |group by=_pageTitle | ||
|intro=<tr><th>Used by</th><td> | |intro=<tr><th>Used by</th><td> | ||
Line 74: | Line 105: | ||
{{!}} {{{Multimedia|}}} | {{!}} {{{Multimedia|}}} | ||
}} | }} | ||
|- {{#if: {{{License|}}} | | style="display: none" }} | |||
! License | |||
| {{{License|}}} | |||
|- {{#if: {{{Notes|}}} | | {{#ifeq:{{{Interpreter app|}}}|No| |style="display: none" }} }} | |- {{#if: {{{Notes|}}} | | {{#ifeq:{{{Interpreter app|}}}|No| |style="display: none" }} }} | ||
! Notes | ! Notes | ||
| {{#ifeq:{{{Interpreter app|}}}|No|Note that this interpreter cannot simply be downloaded and run to play game files.<br/> }}{{{Notes|}}} | | {{#ifeq:{{{Interpreter app|}}}|No|Note that this interpreter cannot simply be downloaded and run to play game files.<br/> }}{{{Notes|}}} | ||
|- | |- | ||
| colspan="2" style="text-align: center" | '' | | colspan="2" style="text-align: center" | ''[[Special:Drilldown/Software|Browse the software database]]'' | ||
|- | |||
| colspan="2" style="text-align: center" | ''{{#formlink:form=Software|link text=Edit this infobox|target={{FULLPAGENAMEE}} }}'' | |||
|} | |} | ||
{{#arraymap:{{{Type|}}}|,|@@|{{#switch:@@ | |||
{{#arraymap:{{{Type|}}}|,|@@|[[Category:@@]]|}} | | Utility = [[Category:Utilities]] | ||
| Other = [[Category:Other software]] | |||
| #default = [[Category:@@]] | |||
}} | |||
|}} | |||
</includeonly> | </includeonly> |
Latest revision as of 11:06, 17 March 2025
This template defines the table "Software". View table.