Difference between revisions of "Template:Info Small"
Jump to navigation
Jump to search
m |
m |
||
| Line 1: | Line 1: | ||
| − | <div style="position:relative; top:-16px; float:right; text-align:center; font-size:small; border-top:1px solid #808080; border-bottom:1px solid #808080; padding:0.5em 0 0.2em 0.2em; margin-left:0.3em;"> | + | <div style="position:relative; top:-16px; float:right; text-align:center; font-size:small; border-top:{{#if:{{{ntb|}}}|none;|1px solid #808080;}} border-bottom:1px solid #808080; padding:0.5em 0 0.2em 0.2em; margin-left:0.3em;"> |
<div>{{{img}}}</div> | <div>{{{img}}}</div> | ||
{{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}} | {{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}} | ||
<div>{{{web}}}</div> | <div>{{{web}}}</div> | ||
</div><noinclude>{{doc2}}</noinclude> | </div><noinclude>{{doc2}}</noinclude> | ||
Revision as of 15:37, 14 May 2019
{{{img}}}
{{{web}}}
[edit] Documentation
Small template to temporarily stand in for Template:Info X.
It expands to the same width as the image.
Note: use "float=none" with not-uploaded images.
Usage
With a top border, one image, WP (optional) link and website (optional) link:
{{Info Small
|ntb=1 Optional top border; default is to have one.
|img =[[File:Viridor-Waste-Management.svg|150x34px]]
|wpl ={{wpl|Viridor}}, [https://services.viridor.co.uk/customers/company-information/ Company]
|web =[https://www.viridor.co.uk/about-us/ About], [http://www.discoverviridor.co.uk/ Website] }}
Without a top border, with a parent, with optional parent WP + Website links, and with optional "extra" entry:
{{Info Small|ntb=1
|gparent=[[File:Creadev.svg|250x28px]]
|gpurl=[[Creadev SAS]]
|parent=[[File:HM-Treasury.svg|250x114px]]
|pwpl={{wpl|HM Treasury}}
|pweb=[http://www.gov.uk/hm-treasury Website]
|img=[[File:Viridor-Waste-Management.svg|250x56px]]
|wpl={{wpl|Viridor}}, [https://services.viridor.co.uk/customers/company-information/ Company]
|web=[https://www.viridor.co.uk/about-us/ About], [http://www.discoverviridor.co.uk/ Website]
|extra={{ratings|WFY|type=org|band=A|org=Compass}} }}