Difference between revisions of "Template:Info Small"
Jump to navigation
Jump to search
m |
|||
| (19 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <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 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;">{{#if:{{{gparent|}}}|<div style="border-bottom:1px solid #808080; margin-bottom:0.3em; padding-bottom:0.3em;">{{{gparent}}}{{#if:{{{gpurl|}}}|<div>{{{gpurl}}}</div>|}}</div>|}}{{#if:{{{parent|}}}|<div style="border-bottom:1px solid #808080; margin-bottom:0.3em; padding-bottom:0.3em;">{{{parent}}}{{#if:{{{pwpl|}}}|<div>{{{pwpl}}}</div>|}}{{#if:{{{pweb|}}}|<div>{{{pweb}}}</div>|}}</div>|}}<div>{{{img}}}</div>{{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}}{{#if:{{{web|}}}|<div>{{{web}}}</div>|}}{{#if:{{{extra|}}}|<div style="border-top:1px solid #808080; margin-top:0.3em; padding-top:0.3em;">{{{extra}}}</div>|}}</div><noinclude>{{doc2}}</noinclude> |
| − | <div>{{{img}}}</div> | ||
| − | {{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}} | ||
| − | <div>{{{web}}}</div> | ||
| − | </div><noinclude>{{doc2}}</noinclude> | ||
Latest revision as of 04:34, 7 October 2020
{{{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}} }}