Difference between revisions of "Template:Info Small"
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
{{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}} | {{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}} | ||
{{#if:{{{web|}}}|<div>{{{web}}}</div>|}} | {{#if:{{{web|}}}|<div>{{{web}}}</div>|}} | ||
| − | </div><noinclude>{{doc2}}</noinclude> | + | </div> |
| + | <p> ></p><p> ></p> | ||
| + | <table style="float:right; margin-left:10px; font-size:small;"> | ||
| + | {{#if:{{{ntb|}}}||<tr><td><hr/></td></tr>}} | ||
| + | {{#if:{{{parent|}}}|<tr><th style="padding:0;">{{{parent}}}</th></tr>{{#if:{{{pwpl|}}}|<tr><td style="text-align:center; padding:0;">{{{pwpl}}}</td></tr>|}}{{#if:{{{pweb|}}}|<tr><td style="text-align:center; padding:0;">{{{pweb}}}</td></tr>|}}<tr><td><hr/></td></tr>|}} | ||
| + | <tr><th>{{{img}}}</th></tr> | ||
| + | {{#if:{{{wpl|}}}|<tr><td style="text-align:center; padding:0;">{{{wpl}}}</td></tr>|}} | ||
| + | {{#if:{{{web|}}}|<tr><td style="text-align:center; padding:0;">{{{web}}}</td></tr>|}} | ||
| + | <tr><td><hr/></td></tr> | ||
| + | </table><noinclude>{{doc2}}</noinclude> | ||
Revision as of 12:07, 9 July 2019
{{{img}}}
 >
 >
| {{{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] }}
 >
 >
| Viridor |
| About, 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}} }}
 >
 >
| HM Treasury |
| Website |
| Viridor |
| About, Website |