Template:Software Infobox: Difference between revisions

From Hydrogenaudio Knowledgebase
(fix undesirable insertion of a newline (which results in generation of an empty <p>))
m (Added "DISPLAYTITLE" behaviour switch to simplify code on pages where titles start with lower-case letter.)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| align="right" style="padding-left: 15px;"
{{DISPLAYTITLE:{{{name|{{PAGENAME}}}}}}}
|
{| style="width: 256px; float: right; margin-left: 10px; margin-bottom: 10px; border: solid 1px #AAAAAA; background-color: #F9F9F9; font-size: 88%;"
{| cellspacing="5" style="width: 24em; font-size: 90%; text-align: left; border:1px solid; background: rgb(250,250,255);"
|+ style="font-size: 130%" | '''{{{name|{{PAGENAME}}}}}'''
|+ style="font-size: 130%; font-weight: bold;" | {{{name}}}
|-
|-
! colspan="2" style="text-align:center; font-weight: normal;" | {{{logo}}}
! colspan="2" style="text-align:center; font-weight: normal; {{#if: {{{logo|}}} | | display:none; }}" | {{{logo}}}
|- style="text-align: center; font-size: 75%; margin: 0px; padding: 0px; {{#if: {{{screenshot|}}} | | display:none; }}"
| colspan="2" | {{{screenshot}}}<br/>{{{caption|}}}
|- style="vertical-align: top;"
| '''Developer(s)'''
| {{{maintainer|{{{developer|TBC}}}}}}
|-
|-
! colspan="2" style="text-align:center; font-weight: normal;" | {{{screenshot}}}
! colspan="2" style="background: #DDDDDD;" | Release information
|- {{#if: {{{released|}}} | | style="display: none;" }}
| '''Initial release'''
| {{#dateformat:{{{released}}}|dmy}}
|-  
| '''Stable release'''
| {{{stable_release|TBC}}} {{#if:{{{stable_release_date|}}} | ({{#dateformat:{{{stable_release_date}}}|mdy}})}}
|- {{#if: {{{preview_release|}}} | | style="display: none;" }}
| '''Preview release'''
| {{{preview_release}}}{{#if:{{{preview_release_date|}}}|&nbsp;/ {{#dateformat:{{{preview_release_date}}}|mdy}}}}{{#if:{{{preview_release_ref|}}}|{{#tag:ref|{{{preview_release_ref}}}}}}}
|-
|-
! colspan="2" style="text-align:center; font-size: 80%; font-weight: normal;" | {{{caption}}}
! colspan="2" style="background: #DDDDDD;" | Compatibility
|- style="text-align:left; font-weight:bold;"
|- style="vertical-align: top;"
| Developer: || {{{maintainer}}}
| style="min-width: 90px" | '''Operating system'''
|- style="text-align:left; font-weight:bold;"
| {{{operating_system|TBC}}}
| Stable release: || {{{stable_release}}}
|-  
|- style="text-align:left; font-weight:bold;"
! colspan="2" style="background: #DDDDDD;" | Additional information
| Preview release: || {{{preview_release}}}
|-
|- style="text-align:left; font-weight:bold;"
| '''Use'''
| OS: || {{{operating_system}}}
| {{{use|TBC}}}
|- style="text-align:left; font-weight:bold;"
|-  
| Use: || {{{use}}}
| '''License'''
|- style="text-align:left; font-weight:bold;"
| {{{license|TBC}}}
| License: || {{{license}}}
|- {{#if: {{{website|}}} | | style="display: none;" }}
|- style="text-align:left; font-weight:bold;"
| '''Website'''
| Website: || {{{website}}}
| {{{website}}}
|}
|}<noinclude>
|}<noinclude>
== Usage ==
== Usage ==
{| style="background: transparent;"
<pre style="display:table;">{{Software Infobox
|<pre>{{Software Infobox
| name                 =  
| name =  
| logo                 =
| logo =
| screenshot           =  
| screenshot =  
| caption             =  
| caption =  
| developer           =  
| developer =  
| released            = <!-- {{start date and age|YYYY|MM|DD}} -->
| stable_release =  
| stable_release       =  
| preview_release =  
| stable_release_date  = <!-- {{start date and age|YYYY|MM|DD}} -->
| operating_system =  
| preview_release     =
| use =  
| preview_release_date = <!-- {{start date and age|YYYY|MM|DD}} -->
| license =  
| preview_release_ref  =
| website =  
| operating_system     =  
| use                 =  
| license             =  
| website             =  
}}
}}
</pre>
</pre>
|}
===Usage notes===
 
; screenshot
'''Some usage notes:'''
: A 250px width is preferred. If your picture is larger than 250px, reduce it to 250px by inserting the resize option, e.g. <code><nowiki>[[Image:MyPicture.png|250px]]</nowiki></code>
* '''website''' field: If the URL is too long, enclose it in the WikiLink syntax, i.e. '''<code><nowiki>[</nowiki><font style="color:#ccccff;"><nowiki>http://www.somewhere.net/</nowiki></font> Click Here]</code>'''.
; released
 
: This should be the date in the <code><nowiki>YYYY-DD-MM</nowiki></code> format.
* '''screenshot''': 250px pictures is preferred.<br />If your picture is larger than 250px, reduce it to 250px by inserting the resize option, e.g. <br /><code>[[Image:My_Picture.png'''|250px'''|My picture]]</code>
; website
 
: If the URL is too long, enclose it in the WikiLink syntax, i.e. <code><nowiki>[http://www.somewhere.net/ somewhere.net]</nowiki></code>
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 17:25, 30 November 2019

Software Infobox
{{{logo}}}
{{{screenshot}}}
Developer(s) TBC
Release information
Initial release {{{released}}}
Stable release TBC
Preview release {{{preview_release}}}
Compatibility
Operating system TBC
Additional information
Use TBC
License TBC
Website {{{website}}}

Usage

{{Software Infobox
| name                 = 
| logo                 =
| screenshot           = 
| caption              = 
| developer            = 
| released             = <!-- {{start date and age|YYYY|MM|DD}} -->
| stable_release       = 
| stable_release_date  = <!-- {{start date and age|YYYY|MM|DD}} -->
| preview_release      = 
| preview_release_date = <!-- {{start date and age|YYYY|MM|DD}} -->
| preview_release_ref  =
| operating_system     = 
| use                  = 
| license              = 
| website              = 
}}

Usage notes

screenshot
A 250px width is preferred. If your picture is larger than 250px, reduce it to 250px by inserting the resize option, e.g. [[Image:MyPicture.png|250px]]
released
This should be the date in the YYYY-DD-MM format.
website
If the URL is too long, enclose it in the WikiLink syntax, i.e. [http://www.somewhere.net/ somewhere.net]