Template:Software infobox: Difference between revisions

From IFWiki

mNo edit summary
(Don't display "Latest version" row in infobox if neither version nor date available)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="width:23em; font-size:90%; text-align:left; float:right; border:1px #CCC solid; margin-left:1em; margin-bottom:1em;" cellpadding="3" cellspacing="0"
<noinclude>
! colspan="2" style="font-size:110%; text-align: center; background-color: #ccccff;" | ''{{{title}}}''
{{#cargo_declare:_table=Software
|- style="border:1px #CCC solid;"
|_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>
| colspan="2" style="text-align:center; border:1px #CCC solid;" | {{{image}}}
<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
|Utility_description=Text
|Style=List (,) of String
|Interpreter_app=Boolean (hidden)
|Uses=List (,) of Page (hidden)
|Implements=List (,) of String (hidden)
|Format=List (,) of String
|Developer=List (,) of String (hidden)
|System=List (,) of String
|System_details=Text
|Version=String (hidden)
|Date=Date (hidden)
|Status=String
|Home_page=URL (hidden)
|Download=URL (hidden)
|Play_online=URL (hidden)
|Picture=File
|Multimedia=Text
|License=String (hidden)
|Notes=Text
}}
</noinclude><includeonly>{{#cargo_store:_table=Software}}
{| class="wikitable ifwiki-infobox"
|-
|-
! style="background-color: #ccccff;" | [[:Category:People|Developer]]
! colspan="2" class="ifwiki-infobox-center" | <span style="font-size: 1.3em">{{#switch:{{PAGENAME}}
| {{{developer}}}
|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" }}
! 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" }}
! colspan = "2" | [[File:{{{Picture|}}}|385px|center]]
 
|-
! {{#ifexpr:({{#len:{{{Home page|}}} }}>0) + ({{#len:{{{Download|}}} }}>0) + ({{#len:{{{Play online|}}} }}>0) > 1 | Links | Link}}
| {{#if:{{{Home page|}}} | [{{{Home page|}}} Home&nbsp;page] }}  {{#if:{{{Download|}}} | [{{{Download|}}} Download] }}  {{#if:{{{Play online|}}} | {{#if:{{#pos:{{{Type|}}}|Interpreter}}|[{{{Play online|}}} Play online]|[{{{Play online|}}} Run online]}} }}
|-
|-
! style="background-color: #ccccff;" | Type
! {{#if:{{#pos:{{{Developer|}}}|,}}|Developers|Developer}}
| {{{type}}}
| {{#arraymap:{{{Developer|}}}|,|@@|[[@@]]}} 
 
|- {{#if:{{{Format|}}} | | style="display: none" }} {{#ifeq:{{{Format|}}} | Not applicable | style="display: none" }}
! {{#if:{{#pos:{{{Format|}}}|,}}|Formats|Format}}
| {{#replace:{{#arraymap: {{{Format|}}} |,|@@|[[@@]] }} | [[Other]] | Other}}
 
|- {{#if:{{{Style|}}} | | style="display: none" }}
! Interaction&nbsp;style
| {{#if:{{{Style|}}} | {{#arraymap: {{{Style|}}} |,|@@|[[@@]] }} }}
 
|- {{#if:{{{System|}}} | | style="display: none" }}
! {{#if:{{#pos:{{{System|}}}|,}}|Systems|System}}
| {{{System|}}}
 
|- {{#if:{{{System details|}}}| | style="display: none" }}
! System details
| {{{System details|}}}
|- {{#if:{{{Version|}}}{{{Date|}}}| | style="display: none" }}
! Latest&nbsp;version
| {{#if:{{{Version|}}} | {{{Version|}}} }}  {{#if:{{{Date|}}} | {{#if:{{{Version|}}} | / }}  {{date format | {{{Date|}}} }} }}  
|-
|-
! style="background-color: #ccccff; white-space: nowrap;" | Stable release
! Status
| {{{stableversion}}}
| {{{Status|}}}
|- {{#if: {{{Implements|}}} | | style="display: none" }}
! <span style="text-align: left !important">Implements</span>
| {{#arraymap: {{{Implements|}}} |,|@@|[[@@]] }}
|- {{#if: {{{Uses|}}} | | style="display: none" }}
! <span style="text-align: left !important">Uses</span>
| {{#arraymap: {{{Uses|}}} |,|@@|[[@@]] }}
{{#cargo_query:<!--This is for "Used by"-->
tables=Software
|fields= CONCAT('[[',_pageTitle,']]')
|where=Software.Uses HOLDS "{{PAGENAME}}"
|group by=_pageTitle
|intro=<tr><th>Used&nbsp;by</th><td>
|outro=</td></tr>
|default=
|format=list
}}
{{#switch:{{{Type|}}} <!--Show Multimedia support for Interpreters and Authoring systems only-->
| Interpreter
| Authoring system =
{{!}}-
! Multimedia&nbsp;support
{{!}} {{{Multimedia|}}}
}}
|- {{#if: {{{License|}}} | | style="display: none" }}
! License
| {{{License|}}}
|- {{#if: {{{Notes|}}} | |  {{#ifeq:{{{Interpreter app|}}}|No| |style="display: none" }} }}
! Notes
| {{#ifeq:{{{Interpreter app|}}}|No|Note that this interpreter cannot simply be downloaded and run to play game files.<br/> }}{{{Notes|}}}
|-
|-
! style="background-color: #ccccff; white-space: nowrap;" | Development release
| colspan="2" style="text-align: center" | ''[[Special:Drilldown/Software|Browse the software database]]''
| {{{devversion}}}
|-
|-
! style="background-color: #ccccff;" | Operating system
| colspan="2" style="text-align: center" | ''{{#formlink:form=Software|link text=Edit this infobox|target={{FULLPAGENAMEE}} }}''
| {{{operatingsystem}}}
|}
|-
{{#arraymap:{{{Type|}}}|,|@@|{{#switch:@@
! style="background-color: #ccccff;" | [[:Category:General programming languages|Written in]]
| Utility = [[Category:Utilities]]
| {{{writtenin}}}
| Other = [[Category:Other software]]
|-
| #default = [[Category:@@]]
! style="background-color: #ccccff;" | [[License|License(s)]]
}}
| {{{license}}}
|}}
|-
</includeonly>
! style="background-color: #ccccff;" | Website
| {{{website}}}
|}<noinclude>[[Category:Templates|Software infobox]]</noinclude>

Latest revision as of 11:06, 17 March 2025

This template defines the table "Software". View table.