Template:Software infobox: Difference between revisions
From IFWiki
(Now it should only hide the "Interaction style" row if field value does not exist (before it did not display if the software was an authoring system)) |
(Don't display "Latest version" row in infobox if neither version nor date available) |
||
(5 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=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 66: | Line 69: | ||
| {{#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 version | ! Latest 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 | ! <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 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|}}}|,|@@|{{# | {{#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.