Template:Software infobox: Difference between revisions
From IFWiki
(Allow Inkjs page show as inkjs) |
(Don't display "Latest version" row in infobox if neither version nor date available) |
||
(4 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 40: | Line 41: | ||
|JAsea = jAsea{{DISPLAYTITLE:jAsea}} | |JAsea = jAsea{{DISPLAYTITLE:jAsea}} | ||
|Inkjs = inkjs{{DISPLAYTITLE:inkjs}} | |Inkjs = inkjs{{DISPLAYTITLE:inkjs}} | ||
|MInform = mInform{{DISPLAYTITLE:mInform}} | |||
|#default = {{PAGENAME}} | |#default = {{PAGENAME}} | ||
}}</span> | }}</span> | ||
Line 67: | 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 79: | 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 111: | 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.