Difference between revisions of "Template:Infobox"

From TransitWiki
Jump to navigation Jump to search
Line 11: Line 11:
 
!style="vertical-align: top; padding-right:20px"| {{#if: {{{license|}}}|License|}}
 
!style="vertical-align: top; padding-right:20px"| {{#if: {{{license|}}}|License|}}
 
|{{#if: {{{license|}}}|{{{license}}}|}}
 
|{{#if: {{{license|}}}|{{{license}}}|}}
 +
|-
 +
!style="vertical-align: top; padding-right:20px"| {{#if: {{{documentation|}}}|Documentation|}}
 +
|{{#if: {{{documentation|}}}|{{{documentation}}}|}}
 +
|-
 +
!style="vertical-align: top; padding-right:20px"| {{#if: {{{data_in|}}}|Data Input|}}
 +
|{{#if: {{{data_in|}}}|{{{data_in}}}|}}
 +
|-
 +
!style="vertical-align: top; padding-right:20px"| {{#if: {{{data_out|}}}|Data Output|}}
 +
|{{#if: {{{data_out|}}}|{{{data_out}}}|}}
 
|-
 
|-
 
!style="vertical-align: top; padding-right:20px"| {{#if: {{{website|}}}|Website|}}
 
!style="vertical-align: top; padding-right:20px"| {{#if: {{{website|}}}|Website|}}
Line 25: Line 34:
 
|-
 
|-
 
!style="vertical-align: top; padding-right:20px;"|Vendor
 
!style="vertical-align: top; padding-right:20px;"|Vendor
|Transit Wiki
+
|[[User:Leeor| Leeor]]
 +
|-
 +
!style="vertical-align: top; padding-right:20px;"|License
 +
|Not licensed
 +
|-
 +
!style="vertical-align: top; padding-right:20px;"|Documentation
 +
|All in the code
 +
|-
 +
!style="vertical-align: top; padding-right:20px;"|Data Input
 +
|Parameters
 +
|-
 +
!style="vertical-align: top; padding-right:20px;"|Data Output
 +
|An infobox
 
|-
 
|-
 
!style="vertical-align: top; padding-right:20px"|Website
 
!style="vertical-align: top; padding-right:20px"|Website
Line 41: Line 62:
 
<nowiki>|vendor=</nowiki> <br>
 
<nowiki>|vendor=</nowiki> <br>
 
<nowiki>|license=</nowiki> <br>
 
<nowiki>|license=</nowiki> <br>
 +
<nowiki>|documentation=</nowiki> <br>
 +
<nowiki>|data_in=</nowiki> <br>
 +
<nowiki>|data_out=</nowiki> <br>
 
<nowiki>|website=</nowiki> <br>
 
<nowiki>|website=</nowiki> <br>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
Line 65: Line 89:
 
|-
 
|-
 
!vendor
 
!vendor
|application vendor
+
|application vendor or creator
 
|none
 
|none
 
|-
 
|-
 
!license
 
!license
 
|application license
 
|application license
 +
|none
 +
|-
 +
!documentation
 +
|a link to the application documentation
 +
|none
 +
|-
 +
!data_in
 +
|data inputs for the application or device
 +
|none
 +
|-
 +
!data_out
 +
|data outputs for the application or device
 
|none
 
|none
 
|-
 
|-

Revision as of 03:32, 29 January 2017


Infobox

Info.png
Vendor Leeor
License Not licensed
Documentation All in the code
Data Input Parameters
Data Output An infobox
Website Template:Infobox

This template is used to display an infobox on the top right hand side of a page like the example on this page. To use this template in a page, copy and paste the text below, substituting the appropriate parameter values. It is not necessary to include all parameters. Also beware that parameters are case sensitive. All parameters are lowercase for this template. Parameters can be added in any order but will always appear in this order.

{{infobox

|title=
|image=
|image_size=
|vendor=
|license=
|documentation=
|data_in=
|data_out=
|website=
}}

The parameter inputs and defaults are listed in the table below

Parameter Input Default
title infobox title none
image image file name (only the image name is needed, not the [[File:]]) none
image_size width of image in pixels 200px
vendor application vendor or creator none
license application license none
documentation a link to the application documentation none
data_in data inputs for the application or device none
data_out data outputs for the application or device none
website [http://officialappwebsite.com tag for the website] (the square brackets are required for this parameter) none