Difference between revisions of "Template:Infobox add-on"

From OrbiterWiki
Jump to navigation Jump to search
(Added an Infobox for add-ons)
 
Line 1: Line 1:
{{Infobox
+
{| cellpadding="2" cellspacing="0" style="margin:25px 0 0 10px; border:3px solid lightsteelblue;width:60%; font-size:90%; font-family:'Arial','Helvetica';"
| bodyclass  = vevent
+
!colspan="2" bgcolor="lightsteelblue"|{{{name|{{PAGENAME}} }}}
| bodystyle  = {{{bodystyle|}}}
+
|-
| title      = {{#if:{{{title|{{{name|}}}}}}|{{{title|{{{name|}}}}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
+
|width="30%" align="left"|Developer(s)
| titleclass = summary
+
|{{{developer|}}}
| labelstyle = white-space: nowrap;
+
|-
| image      = {{#if:{{{screenshot|}}}
+
|width="30%" align="left"|Initial release
  | {{#invoke:InfoboxImage | InfoboxImage | image={{{logo|}}} | title={{{logo caption|}}} | size={{{logo size|{{{logo_size|}}}}}} | sizedefault=300x64px | maxsize=300x64px | alt={{{logo alt|{{{logo_alt|}}}}}} }}
+
|{{{initial_release|}}}
  | {{#invoke:InfoboxImage | InfoboxImage | image={{{logo|}}} | title={{{logo caption|}}} | size={{{logo size|{{{logo_size|}}}}}} | alt={{{logo alt|{{{logo_alt|}}}}}} }}
+
|-
}}
+
|width="30%" align="left"|Stable release
| caption    = {{{logo caption|}}}
+
|{{{stable_release|}}}
| 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}}}}}}
+
|width="30%" align="left"|Beta release
| label1    = Other names
+
{{{beta_release}}}
| data1      = {{{other_names|}}}
+
|-
| label2    = Original author(s)
+
|width="30%" align="left"|Website
| data2      = {{{author|}}}
+
{{{website|}}}
| label3    = Developer(s)
+
|-
| data3      = {{{developer|}}}
+
|}
| label4    = Initial release
+
<noinclude>
| data4      = {{{released|}}}
+
[[Category:Infobox templates]]
| rowstyle5  = display: none;<!--
 
===============================================================================
 
The data5 field displays a sub-infobox. The HTML cleanup module in charge of
 
rendering OrbiterWiki 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.
 
===============================================================================
 
-->
 
| data5      = {{#ifeq:{{lc:{{{ver layout|simple}}}}}|stacked
 
|{{Infobox add-on/stacked
 
  |{{{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|}}}}}}
 
  }}
 
|{{Infobox add-on/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
 
| 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    = Included with
 
| data7      = {{{included with|}}}
 
| label8    = Replaces
 
| data8      = {{{replaces|}}}
 
| label9    = Replaced by
 
| data9      = {{{replaced_by|}}}
 
| label10    = Size
 
| data10    = {{{size|}}}
 
| label11    = Website
 
| data11    = {{#if:{{{website|}}}
 
                  |{{#ifeq:{{{website|}}}|hide||{{{website|}}} }}
 
                  |{{#if:{{#property:P856}}
 
                      |{{URL|{{#property:P856}}}}|
 
                  }}
 
              }}
 
| label12    = As of
 
| data12    = {{{AsOf|}}}
 
}}<noinclude>
 
{{documentation}}
 
 
</noinclude>
 
</noinclude>

Revision as of 07:38, 8 July 2019

Infobox add-on
Developer(s)
Initial release
Stable release
Beta release

{{{beta_release}}}

Website