Template:Software infobox: Difference between revisions

From IFWiki

(Adding table template for drilldown page)
(Don't display "Latest version" row in infobox if neither version nor date available)
 
(6 intermediate revisions by the same user not shown)
Line 15: Line 15:
|Style=List (,) of String
|Style=List (,) of String
|Interpreter_app=Boolean (hidden)
|Interpreter_app=Boolean (hidden)
|Uses_interpreter=List (,) of Page (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)
Line 39: Line 40:
|Mjr-T3 = mjr-T3{{DISPLAYTITLE:mjr-T3}}
|Mjr-T3 = mjr-T3{{DISPLAYTITLE:mjr-T3}}
|JAsea = jAsea{{DISPLAYTITLE:jAsea}}
|JAsea = jAsea{{DISPLAYTITLE:jAsea}}
|Inkjs = inkjs{{DISPLAYTITLE:inkjs}}
|MInform = mInform{{DISPLAYTITLE:mInform}}
|#default = {{PAGENAME}}
|#default = {{PAGENAME}}
}}</span>
}}</span>
Line 62: Line 65:
| {{#replace:{{#arraymap: {{{Format|}}} |,|@@|[[@@]] }} | [[Other]] | Other}}
| {{#replace:{{#arraymap: {{{Format|}}} |,|@@|[[@@]] }} | [[Other]] | Other}}


|- {{#ifeq:{{{Type|}}}|Authoring system| | style="display: none" }}  
|- {{#if:{{{Style|}}} | | style="display: none" }}
! Interaction&nbsp;style
! Interaction&nbsp;style
| {{#if:{{{Style|}}} | {{#arraymap: {{{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" }}
|- {{#if:{{{System details|}}}| | style="display: none" }}
! System details
! System details
| {{{System details|}}}
| {{{System details|}}}
|-
|- {{#if:{{{Version|}}}{{{Date|}}}| | style="display: none" }}
! Latest&nbsp;version
! Latest&nbsp;version
| {{#if:{{{Version|}}} | {{{Version|}}} }}  {{#if:{{{Date|}}} | {{#if:{{{Version|}}} | / }}  {{date format | {{{Date|}}} }} }}  
| {{#if:{{{Version|}}} | {{{Version|}}} }}  {{#if:{{{Date|}}} | {{#if:{{{Version|}}} | / }}  {{date format | {{{Date|}}} }} }}  
Line 78: Line 82:
! Status  
! Status  
| {{{Status|}}}
| {{{Status|}}}
 
|- {{#if: {{{Implements|}}} | | style="display: none" }}
|- {{#if: {{{Uses interpreter|}}} | | style="display: none" }}
! <span style="text-align: left !important">Implements</span>
! <span style="text-align: left !important">Uses&nbsp;interpreter</span>
| {{#arraymap: {{{Implements|}}} |,|@@|[[@@]] }}
| {{#arraymap: {{{Uses interpreter|}}} |,|@@|[[@@]] }}
|- {{#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.Uses_interpreter HOLDS "{{PAGENAME}}"
|where=Software.Uses HOLDS "{{PAGENAME}}"
|group by=_pageTitle
|group by=_pageTitle
|intro=<tr><th>Used&nbsp;by</th><td>
|intro=<tr><th>Used&nbsp;by</th><td>
Line 110: Line 116:
| colspan="2" style="text-align: center" | ''{{#formlink:form=Software|link text=Edit this infobox|target={{FULLPAGENAMEE}} }}''
| colspan="2" style="text-align: center" | ''{{#formlink:form=Software|link text=Edit this infobox|target={{FULLPAGENAMEE}} }}''
|}
|}
{{#arraymap:{{{Type|}}}|,|@@|{{#ifeq:@@|Utility|[[Category:Utilities]]|[[Category:@@]]}}|}}
{{#arraymap:{{{Type|}}}|,|@@|{{#switch:@@
| 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.