Difference between revisions of "Template:Infobox software"

From Wiki.OSArch
m
 
(50 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox
+
<noinclude>
| bodyclass  = vevent
+
=Usage=
| bodystyle  = {{{bodystyle|}}}
+
Copy the text below to the top of a software page to make use of this infobox.
| title      = {{#if:{{{title|{{{name|}}}}}}|{{{title|{{{name|}}}}}}|{{PAGENAMEBASE}}}}
+
 
| titleclass = summary
+
<pre style="overflow:auto;">
| labelstyle = white-space: nowrap;
+
{{Infobox software
| image      = {{#if:{{{screenshot|}}}
+
| icon      =  
  | {{#invoke:InfoboxImage | InfoboxImage | image={{{logo|}}} | title={{{logo caption|}}} | size={{{logo size|{{{logo_size|}}}}}} | sizedefault=300x64px | maxsize=300x64px | alt={{{logo alt|{{{logo_alt|}}}}}} }}
+
| screenshot =  
  | {{#invoke:InfoboxImage | InfoboxImage | image={{{logo|}}} | title={{{logo caption|}}} | size={{{logo size|{{{logo_size|}}}}}} | alt={{{logo alt|{{{logo_alt|}}}}}} }}
+
| website    =  
 +
| source    =
 +
| license    =
 +
| bugs      =
 +
| community  =
 +
| maturity  =
 +
| donation  =
 
}}
 
}}
| caption    = {{{logo caption|}}}
+
</pre>
| image2    = {{#if:{{{screenshot|}}}|{{#if:{{{collapsible|}}}|{{hidden begin|toggle=left|title=Screenshot|titlestyle=text-align:left|contentstyle=text-align:center}}}}}}{{#invoke:InfoboxImage | InfoboxImage | image={{{screenshot|}}} | size={{{screenshot size|{{{screenshot_size|}}}}}} | sizedefault=300x0px | maxsize=300x0px | alt={{{screenshot alt|{{{screenshot_alt|}}}}}} | title={{{caption|}}} }}
 
| caption2  = {{{caption|}}}{{#if:{{{screenshot|}}}|{{#if:{{{collapsible|}}}|{{hidden end}}}}}}
 
| label1    = Other names
 
| data1      = {{{other_names|}}}
 
| label2    = [[Software developer|Original author(s)]]
 
| data2      = {{{author|}}}
 
| label3    = [[Software developer|Developer(s)]]
 
| data3      = {{{developer|}}}
 
| label4    = Initial release
 
| data4      = {{{released|}}}
 
| rowstyle5  = display: none;<!--
 
===============================================================================
 
The data5 field displays a sub-infobox. The HTML cleanup module in charge of
 
rendering Wikipedia pages converts this sub-infobox into a new set of rows that
 
lay below the data4 row. Hence, the data4 row becomes an empty redundant row
 
that the reader would rather not see.
 
  
I resisted implementing this at first because hacks are generally fragile. But
+
=Example=
I am giving up the resistance as the proper venue has failed to address this.
+
The first example includes all available field, but use only the ones you think are valuable for a page. We're filling in an infobox - not writing a phD!
  
—User:Codename Lisa
+
{{Infobox software
===============================================================================
+
| icon      = Ifcopenshell logo.png
-->
+
| screenshot = Blenderbim-screenshot.png
| data5      = {{#ifeq:{{lc:{{{ver layout|simple}}}}}|stacked
+
| website    = http://web.site
|{{Infobox software/stacked
+
| source     = https://blenderbim.org
  |{{{name|{{PAGENAME}}}}}
+
| license   = [[LGPL-2.0]]
  |{{{discontinued|no}}}
+
| bugs      = [https://github.com/IfcOpenShell/IfcOpenShell/issues Github]
  |{{{latest release version|{{{latest_release_version|}}}}}}
+
| community  = [https://community.osarch.org/ Forum], [http://webchat.freenode.net/##architect Chatroom], [https://mastodon.social/@thinkMoult Mastodon (Dion Moult)], [https://twitter.com/BlenderBIM Twitter], [https://www.linkedin.com/in/dion-moult-3517651a/ LinkedIn (Dion Moult)], [https://www.linkedin.com/groups/13761286/ LinkedIn Group]
  |{{{latest release date  |  {{{latest_release_date|}}}}}}
+
| maturity  = Promising
  |{{{latest preview version|{{{latest_preview_version|}}}}}}
+
| donation  = [https://liberapay.com/dionmoult/ dionmoult]
  |{{{latest preview date  |  {{{latest_preview_date|}}}}}}
+
}}
  }}
+
</noinclude>
|{{Infobox software/simple
 
  |{{{name|{{PAGENAME}}}}}
 
  |{{{discontinued|no}}}
 
  |{{{latest release version|{{{latest_release_version|}}}}}}
 
  |{{{latest release date  |  {{{latest_release_date|}}}}}}
 
  |{{{latest preview version|{{{latest_preview_version|}}}}}}
 
  |{{{latest preview date  |  {{{latest_preview_date|}}}}}}
 
  }}
 
}}
 
| label6    = [[Repository (version control)|Repository]]
 
| data6      = {{#if:{{{repo|}}}
 
                  |{{{repo|}}}
 
                  |{{#if: {{#property:P1324}}
 
                      |{{#ifeq: {{wikidata|property|P1324|best|format=%p}} | none
 
                          |{{wikidata|property|P1324|best|format=%p}}{{EditAtWikidata|pid=P1324}}
 
                          |{{Plainlist|<ul><li>{{URL|{{wikidata|property|P1324|best|format=%p}}}}</li></ul>}}{{EditAtWikidata|pid=P1324}}
 
                      }}
 
                  }}
 
              }}
 
| label7    = Written in
 
| data7      = {{{programming language|{{{programming_language|}}}}}}
 
| label8    = Middleware
 
| data8      = {{{middleware|}}}
 
| label9    = [[Game development tool|Tools]]
 
| data9      = {{{tools|}}}
 
| label10    = [[Software engine|Engine]]{{#if: {{{engines|}}} |s}}
 
| data10     = {{#if: {{{engines|}}}
 
                  |{{{engines}}}
 
                  |{{#if:{{{engine|}}}
 
                    |{{{engine|}}}
 
                    |{{#if: {{#property:P408}}
 
                        |{{Plainlist|<ul>{{wikidata|properties|P408|best|format=<li>%p</li>}}</ul>}}{{EditAtWikidata|pid=P408}}
 
                      }}
 
                  }}
 
              }}
 
| label11   = [[Operating system]]
 
| data11    = {{{operating system|{{{operating_system|}}}}}}
 
| label12    = [[Computing platform|Platform]]
 
| data12    = {{{platform|}}}
 
| label13    = Included with
 
| data13    = {{{included with|}}}
 
| label14    = Predecessor
 
| data14    = {{{replaces|}}}
 
| label15    = Successor
 
| data15    = {{{replaced_by|}}}
 
| label16    = Service name
 
| data16    = {{{service_name|}}}
 
| label17    = [[File size|Size]]
 
| data17    = {{{size|}}}
 
| label18    = [[Technical standard|Standard]](s)
 
| data18    = {{{standard|}}}
 
| label19    = Available in
 
| data19    = {{#if:{{{language count|}}}|{{{language count}}} languages|{{{language|}}}}}{{{language footnote|}}}
 
| data20    = {{#if:{{{language count|}}}|{{#if:{{{language|}}}|{{hidden begin|toggle=left|title=List of languages|titlestyle=background-color: transparent;}}{{{language|}}}{{hidden end}}}}}}
 
| label21    = [[Software categories#Categorization approaches|Type]]
 
| data21    = {{{genre|}}}
 
| label22    = [[Software license|License]]
 
| data22    = {{{license|}}}
 
| label23    = [[Software license|Licence]] <!-- Spelled differently; see [[MOS:ENGVAR]] -->
 
| data23    = {{{licence|}}}
 
| label24    = [[Alexa Internet|Alexa]] rank
 
| data24    = {{#if:{{{alexa|}}}|{{nowrap|{{{alexa|}}}}}}}
 
| label25    = Website
 
| data25    = {{#if:{{{website|}}}
 
            | {{#ifeq:{{{website|}}} | hide | | {{{website|}}} }}
 
            | {{#if:{{wikidata|property|raw|P856}}
 
              | {{#invoke:WikidataIB |url2 |url={{if empty
 
                |{{#invoke:WikidataIB|getValueByLang|P856|fwd=ALL|osd=no|maxvals=1}}
 
                |{{Wdib|P856|fwd=ALL|osd=no|maxvals=1}}
 
                }} }}
 
              }}
 
            }}
 
| label26    = As of
 
| data26    = {{{AsOf|}}}
 
  
| below      = {{#if: {{{games list|}}} | {{icon|List}} [[{{{games list|}}}|List of games]] }}
+
<includeonly>
 
+
[[Category:Software]]
}}{{#invoke:Check for unknown parameters | check | showblankpositional=1
+
<!-- This template is available from the Template:Infobox_software page -->
| unknown = {{main other|[[Category:Pages using Infobox software with unknown parameters|_VALUE_{{PAGENAME}}]]}}
+
{| class="wikitable" style="width:250px; float:right; margin-left: 10px;"
| preview = Page using [[Template:Infobox software]] with unknown parameter "_VALUE_"
+
!colspan="2"|[[File:{{{icon}}}|64x64px]]
| alexa | AsOf | author | bodystyle | caption | collapsible | developer | discontinued | engine | engines | genre | included with | games list | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo size | logo_alt | logo_size | middleware | name | operating system | operating_system | other_names | platform | programming language | programming_language | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot size | screenshot_alt | screenshot_size | service_name | size | standard | title | tools | ver layout | website
+
|-
}}</includeonly><noinclude>
+
!colspan="2"|[[File:{{{screenshot}}}|244px]]
{{documentation}}
+
|-
</noinclude>
+
| Website:
 +
| {{{website}}}
 +
|-
 +
| Source:
 +
| {{{source}}}
 +
|-
 +
| License:
 +
| {{{license}}}
 +
|-
 +
| Bugs:  
 +
| {{{bugs}}}
 +
|-
 +
| Community:
 +
| {{{community}}}
 +
|-
 +
| Maturity:
 +
| [[:Category:{{{maturity}}}]] [[Category:{{{maturity}}}]]
 +
|-
 +
| Donate:
 +
| {{{donation}}}
 +
|-
 +
!colspan="2"|[[File:Red_curve_on_white_disc_128px.png|32px]]  [[AEC_Free_Software_directory|Software Directory]]
 +
|-
 +
|}
 +
</includeonly>
 +
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 15:06, 28 July 2022

Usage

Copy the text below to the top of a software page to make use of this infobox.

{{Infobox software
| icon       = 
| screenshot = 
| website    = 
| source     =
| license    =
| bugs       =
| community  =
| maturity   =
| donation   =
}}

Example

The first example includes all available field, but use only the ones you think are valuable for a page. We're filling in an infobox - not writing a phD!

Ifcopenshell logo.png
Blenderbim-screenshot.png
Website: http://web.site
Source: https://blenderbim.org
License: LGPL-2.0
Bugs: Github
Community: Forum, Chatroom, Mastodon (Dion Moult), Twitter, LinkedIn (Dion Moult), LinkedIn Group
Maturity: Category:Promising
Donate: dionmoult
Red curve on white disc 128px.png Software Directory