Difference between revisions of "Template:Infobox"

From TransitWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
<includeonly>
 
{|style="float:right; margin-left: 10px; border-spacing: 2px; border: 1px solid darkgray; background: #f9f9f9; padding: 5px; width: 5%; text-align:left"  
 
{|style="float:right; margin-left: 10px; border-spacing: 2px; border: 1px solid darkgray; background: #f9f9f9; padding: 5px; width: 5%; text-align:left"  
 
|+  
 
|+  
Line 14: Line 15:
 
|{{#if: {{{website|}}}|{{{website}}}|}}
 
|{{#if: {{{website|}}}|{{{website}}}|}}
 
|}
 
|}
 +
</includeonly>
 +
 +
<noinclude>
 +
{{{infobox
 +
|title= Infobox
 +
|image= Info.png
 +
|vendor= Transit Wiki
 +
|website= [http://www.transitwiki.org/TransitWiki/index.php/Template:Infobox Template:Infobox]
 +
}}}
 +
This template is used to display and info box 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. Note that 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
 +
 +
{|class"wikitables"
 +
|-
 +
|\o{infobox
 +
\p title= ''infobox title''
 +
\p image= ''image name'' (note that you only need to include the image name, not the [[File:]]
 +
\p vendor= ''application vendor''
 +
\p license= ''application license''
 +
\p website= [''http://officialappwebsite.com tag for the website''] (note that the square brackets are required for this parameter)
 +
\c}
 +
|}
 +
</noinclude>

Revision as of 11:43, 13 January 2017


title= Infobox

This template is used to display and info box 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. Note that 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

\o{infobox

\p title= infobox title \p image= image name (note that you only need to include the image name, not the [[File:]] \p vendor= application vendor \p license= application license \p website= [http://officialappwebsite.com tag for the website] (note that the square brackets are required for this parameter) \c}