Difference between revisions of "Template:Component"

(Initial version)
 
(Tweak component layout -- try to make it less wide in general.)
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" cellspacing="5" style="width: 31em; font-size: 90%; text-align: left; float: right; border: 1px solid #a0a0a0;"
+
<includeonly>{| class="infobox" cellspacing="5" style="max-width: 30em; font-size: 80%; text-align: left; float: right; border: 1px solid #a0a0a0;"
 
! colspan="2" style="text-align: center; font-size: 130%;" | <div style="float: left">{{{logo|}}}</div>{{{name|{{PAGENAME}}}}}<div style="clear: left;"></div>
 
! colspan="2" style="text-align: center; font-size: 130%;" | <div style="float: left">{{{logo|}}}</div>{{{name|{{PAGENAME}}}}}<div style="clear: left;"></div>
 
|-
 
|-
{{#if:{{{updateSite|}}}|
+
{{#if:{{{project|}}}|
! Update site
+
! Project
{{!}} {{{updateSite|}}}
+
{{!}} {{{project|}}}
 
{{!}}-
 
{{!}}-
}}
+
}}  
 
+
{{#if:{{{url|}}}|
{{#if:{{{filename|}}}|
+
! URL
! File
+
{{!}} {{{url}}}
{{!}} {{{filename|}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{source|}}}|
 
{{#if:{{{source|}}}|
 
! Source
 
! Source
{{!}} {{{source|}}}
+
{{!}} {{{source}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{released|}}}|
+
{{#if:{{{license|}}}|
! Initial release
+
! License
{{!}} {{{released|}}}
+
{{!}} {{{license}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{latest version|}}}|
+
{{#if:{{{release|}}}|
! Latest version
+
! Release
{{!}} {{{latest version|}}}
+
{{!}} {{{release}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{status|}}}|
+
{{#if:{{{date|}}}|
! Development status
+
! Date
{{!}} {{{status|}}}
+
{{!}} {{{date}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{category|}}}|
+
{{#if:{{{devStatus|}}}|
! Category
+
! [[Development status]]
{{!}} {{{category|}}}
+
{{!}} {{{devStatus}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{website|}}}|
+
{{#if:{{{supportStatus|}}}|
! Website
+
! [[Support status]]
{{!}} {{{website|}}}
+
{{!}} {{{supportStatus}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|}</includeonly>
+
! colspan=2 style="background: lightgray; font-variant: small-caps; text-align: center" | [[Team]]
 
+
|-
<noinclude>This template is a sidebar for displaying key statistics about a plugin.
+
! [[Team|Founders]]
 
+
| {{{founders|-}}}
 +
|-
 +
! [[Team|Leads]]
 +
| {{{leads|-}}}
 +
|-
 +
! [[Team|Developers]]
 +
| {{{developers|-}}}
 +
|-
 +
! [[Team|Debuggers]]
 +
| {{{debuggers|-}}}
 +
|-
 +
! [[Team|Reviewers]]
 +
| {{{reviewers|-}}}
 +
|-
 +
! [[Team|Support]]
 +
| {{{support|-}}}
 +
|-
 +
! [[Team|Maintainers]]
 +
| {{{maintainers|-}}}
 +
|-
 +
{{#if:{{{otherDevs|}}}|
 +
! [[Team|Other developers]]
 +
{{!}} {{{otherDevs}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{contributors|}}}|
 +
! [[Team|Contributors]]
 +
{{!}} {{{contributors}}}
 +
{{!}}-
 +
}}
 +
|}{{#if:{{{project|}}}|{{Project|{{{project}}}}}|}}</includeonly>
 +
<noinclude>This template is a sidebar for displaying key statistics about a software [[component]].
 
==Usage==
 
==Usage==
 
 
<pre>
 
<pre>
 
{{Component
 
{{Component
| updateSite =  
+
| project =  
 
| name =  
 
| name =  
 
| url =  
 
| url =  
Line 74: Line 103:
 
==Example==
 
==Example==
 
{{Component
 
{{Component
| updateSite = ImageJ
+
| project = ImageJ
| name = ImageJ
+
| name = ImageJ 1.x
| url = http://imagej.net/
+
| url = http://imagej.net/index.html
 
| source = {{GitHub | org=imagej | repo=ImageJA | tag=v1.50d}}
 
| source = {{GitHub | org=imagej | repo=ImageJA | tag=v1.50d}}
 
| license = [[Public Domain]]
 
| license = [[Public Domain]]
Line 92: Line 121:
 
| contributors = [http://loci.wisc.edu/people/barry-dezonia Barry DeZonia]
 
| contributors = [http://loci.wisc.edu/people/barry-dezonia Barry DeZonia]
 
| otherDevs = Wayne Rasband (architect)
 
| otherDevs = Wayne Rasband (architect)
}}
+
}}<pre style="overflow:auto">
<pre style="overflow:auto">
+
{{Component
{{SoftwareBox
+
| project = ImageJ
| updateSite = ImageJ
+
| name = ImageJ 1.x
| name = ImageJ
+
| url = http://imagej.net/index.html
| url = http://imagej.net/
 
 
| source = {{GitHub | org=imagej | repo=ImageJA | tag=v1.50d}}
 
| source = {{GitHub | org=imagej | repo=ImageJA | tag=v1.50d}}
 
| license = [[Public Domain]]
 
| license = [[Public Domain]]

Revision as of 15:07, 2 June 2017

This template is a sidebar for displaying key statistics about a software component.

Usage

{{Component
| project = 
| name = 
| url = 
| source = 
| license = 
| release = 
| date = 
| devStatus = 
| supportStatus = 
| founders = 
| leads = 
| developers = 
| debuggers = 
| reviewers = 
| support = 
| maintainers = 
| contributors = 
| otherDevs = 
}}

Example

ImageJ 1.x
Project ImageJ
URL http://imagej.net/index.html
Source on GitHub
License Public Domain
Release 1.50d
Date Tue Oct 27 14:25:43 CDT 2015
Development status Active
Support status Active
Team
Founders Wayne Rasband
Leads Wayne Rasband
Developers Wayne Rasband
Debuggers Wayne Rasband
Reviewers Wayne Rasband
Support Wayne Rasband
Maintainers Wayne Rasband
Other developers Wayne Rasband (architect)
Contributors Barry DeZonia
{{Component
| project = ImageJ
| name = ImageJ 1.x
| url = http://imagej.net/index.html
| source = {{GitHub | org=imagej | repo=ImageJA | tag=v1.50d}}
| license = [[Public Domain]]
| release = {{Maven | g=net.imagej | a=ij | v=1.50d | label=1.50d}}
| date = Tue Oct 27 14:25:43 CDT 2015
| devStatus = {{DevStatus | developer=yes | incubating=no | obsolete=no}}
| supportStatus = {{SupportStatus | debugger=yes | reviewer=yes | support=yes}}
| founders = {{Person|Rasband}}
| leads = {{Person|Rasband}}
| developers = {{Person|Rasband}}
| debuggers = {{Person|Rasband}}
| reviewers = {{Person|Rasband}}
| support = {{Person|Rasband}}
| maintainers = {{Person|Rasband}}
| contributors = [http://loci.wisc.edu/people/barry-dezonia Barry DeZonia]
| otherDevs = Wayne Rasband (architect)
}}