Template:Software infobox: Difference between revisions

From IFWiki

mNo edit summary
(Updated infobox for use with Page Forms and Cargo)
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=table;fields=_pageName=Software,Type__full=Type,Format__full=Format,System__full=System,Status,Date,Multimedia__full=Multimedia), List
| colspan="2" style="text-align:center; border:1px #CCC solid;" | {{{image}}}
|Type=List (,) of String
|Interpreter_app=Boolean (hidden)
|Uses_interpreter=List (,) of Page (hidden)
|Format=List (,) of String
|Developer=List (,) of String (hidden)
|System=List (,) of String
|Version=String (hidden)
|Date=Date (hidden)
|Status=String
|Home_page=URL (hidden)
|Download=URL (hidden)
|Picture=File
|Multimedia=Text
|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">{{PAGENAME}}</span>
| {{{developer}}}
 
|- {{#if: {{{Type|}}} | | style="display: none" }}
! colspan="2" class="ifwiki-infobox-center" | {{#replace:{{#arraymap: {{{Type|}}} |,|@@|[[@@]] }} | [[Other]] | Miscellaneous software}}
 
|- {{#if:{{{Picture|}}} | | style="display: none" }}
! colspan = "2" | [[File:{{{Picture|}}}|385px|center]]
 
|-
! {{#if:{{{Home page|}}} |    {{#if:{{{Download|}}} | Links | Link}}  | Link }}
| {{#if:{{{Home page|}}} | [{{{Home page|}}} {{#ifeq:{{PAGENAME}}|Parchment|Play online|Home&nbsp;page}}]  }} {{#if:{{{Download|}}} | [{{{Download|}}} Download] }}
 
|-
|-
! 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}}
 
|- {{#ifeq:{{{Type|}}}|Authoring system| | style="display: none" }}
! Interaction&nbsp;style
| {{#if:{{{Style|}}} | [[{{{Style|}}}]] }}
 
|-
|-
! style="background-color: #ccccff; white-space: nowrap;" | Stable release
! {{#if:{{#pos:{{{System|}}}|,}}|Systems|System}}
| {{{stableversion}}}
| {{{System|}}}
|-
|-
! style="background-color: #ccccff; white-space: nowrap;" | Development release
! Latest&nbsp;version
| {{{devversion}}}
| {{#if:{{{Version|}}} | {{{Version|}}} }}  {{#if:{{{Date|}}} | {{#if:{{{Version|}}} | / }}  {{date format | {{{Date|}}} }} }}  
|-
|-
! style="background-color: #ccccff;" | Operating system
! Status
| {{{operatingsystem}}}
| {{{Status|}}}
 
|- {{#if: {{{Uses interpreter|}}} | | style="display: none" }}
! <span style="text-align: left !important">Uses&nbsp;interpreter</span>
| {{#arraymap: {{{Uses interpreter|}}} |,|@@|[[@@]] }}
{{#cargo_query:<!--This is for "Used by"-->
tables=Software
|fields= CONCAT('[[',_pageTitle,']]')
|where=Software.Uses_interpreter 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: {{{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;" | [[:Category:General programming languages|Written in]]
| colspan="2" style="text-align: center" | ''Browse the [[Special:Drilldown/Software|Software database]]''
| {{{writtenin}}}
|}
|-
[[Category:Software]]
! style="background-color: #ccccff;" | [[License|License(s)]]
{{#arraymap:{{{Type|}}}|,|@@|[[Category:@@]]|}}
| {{{license}}}
</includeonly>
|-
! style="background-color: #ccccff;" | Website
| {{{website}}}
|}<noinclude>[[Category:Templates|Software infobox]]</noinclude>

Revision as of 14:13, 19 January 2022

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