Difference between revisions of "Template:Info Small"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<table style="float:right; margin-left:10px; font-size:small;"> | <table style="float:right; margin-left:10px; font-size:small;"> | ||
{{#if:{{{ntb|}}}||<tr><td><hr/></td></tr>}} | {{#if:{{{ntb|}}}||<tr><td><hr/></td></tr>}} | ||
| − | {{#if:{{{parent|}}}|<tr><th style="padding:0;">{{{parent}}} | + | {{#if:{{{parent|}}}|<tr><th style="font-weight:normal; padding:0;">{{{parent}}}{{#if:{{{pwpl|}}}|<div>{{{pwpl}}}</div>|}}{{#if:{{{pweb|}}}|<div>{{{pweb}}}</div>|}}<div><hr/></div></th></tr>|}} |
| − | <tr><th>{{{img}}} | + | <tr><th style="font-weight:normal; padding:0;">{{{img}}} |
| − | {{#if:{{{wpl|}}}|< | + | {{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}}{{#if:{{{web|}}}|<div>{{{web}}}</div>|}}<div><hr/></div></th></tr> |
| − | {{#if:{{{web|}}}|< | ||
| − | < | ||
</table><noinclude>{{doc2}}</noinclude> | </table><noinclude>{{doc2}}</noinclude> | ||
Revision as of 12:18, 9 July 2019
| {{{img}}}
|
|---|
[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}} }}