Template:Infobox vendor: Difference between revisions
Appearance
Created page with '<includeonly>{{project page}}</includeonly> {| class="infobox" style="font-size:90%; width:{{#if:{{{infobox_width|}}}|{{{infobox_width}}}|300px}}; text-align:left" |- style="back…' |
No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| class="infobox" style="font-size:90%; width:{{#if:{{{infobox_width|}}}|{{{infobox_width}}}|300px}}; text-align:left" | {| class="infobox" style="font-size:90%; width:{{#if:{{{infobox_width|}}}|{{{infobox_width}}}|300px}}; text-align:left" | ||
|- style="background:#D3D3D3" | |- style="background:#D3D3D3" | ||
! colspan="2" class="fn org" style="font-size:larger; text-align:center" | {{{ | ! colspan="2" class="fn org" style="font-size:larger; text-align:center" | {{{vendor_name}}} | ||
|- | |- | ||
{{#if:{{{image|<noinclude>x</noinclude>}}}| | {{#if:{{{image|<noinclude>x</noinclude>}}}| | ||
| Line 11: | Line 10: | ||
! colspan="2" style="text-align:center; background:#D3D3D3" {{!}} Information | ! colspan="2" style="text-align:center; background:#D3D3D3" {{!}} Information | ||
|- | |- | ||
{{#if:{{{address|<noinclude>x</noinclude>}}}| | |||
! Address | |||
{{!}} {{{address}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{city|<noinclude>x</noinclude>}}}| | |||
! City | |||
{{!}} {{{city}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{state|<noinclude>x</noinclude>}}}| | |||
! State | |||
{{!}} {{{state}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{zip|<noinclude>x</noinclude>}}}| | |||
! Zip Code | |||
{{!}} {{{zip}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{country|<noinclude>x</noinclude>}}}| | |||
! Country | |||
{{!}} {{{country}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{address|<noinclude>x</noinclude>}}}| | |||
! Map | |||
{{!}} [http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q={{urlencode:{{{address}}}}},+{{{city}}},+{{{state}}}+{{{zip}}}&z=17 Google Maps] | |||
{{!}}- | |||
}} | |||
{{#if:{{{website|<noinclude>x</noinclude>}}}| | {{#if:{{{website|<noinclude>x</noinclude>}}}| | ||
! Website | ! Website | ||
{{!}} {{{website}}} | {{!}} {{{website}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{phone|<noinclude>x</noinclude>}}}| | |||
! Phone | |||
{{!}} {{{phone}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{fax|<noinclude>x</noinclude>}}}| | |||
! Fax | |||
{{!}} {{{fax}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 20: | Line 59: | ||
{{!}}- | {{!}}- | ||
! colspan="2" style="text-align: center;"{{!}} | ! colspan="2" style="text-align: center;"{{!}} | ||
{{#if:{{{digg|<noinclude>x</noinclude>}}}|[[Image:Digg_Icon.png|30px|link={{{digg}}}|alt=Digg]]}} | {{#if:{{{digg|<noinclude>x</noinclude>}}}|[[Image:Digg_Icon.png|30px|link={{{digg}}}|alt=Digg]]}}{{#if:{{{facebook|<noinclude>x</noinclude>}}}|[[Image:Facebook_Icon.png|30px|link={{{facebook}}}|alt=Facebook]]}}{{#if:{{{flickr|<noinclude>x</noinclude>}}}|[[Image:Flickr_Icon.png|30px|link={{{flickr}}}|alt=Flickr]]}}{{#if:{{{myspace|<noinclude>x</noinclude>}}}|[[Image:Myspace_Icon.png|30px|link={{{myspace}}}|alt=MySpace]]}}{{#if:{{{twitter|<noinclude>x</noinclude>}}}|[[Image:Twitter_Icon.png|30px|link={{{twitter}}}|alt=Twitter]]}}{{#if:{{{youtube|<noinclude>x</noinclude>}}}|[[Image:Youtube_Icon.png|30px|link={{{youtube}}}|alt=YouTube]]}} | ||
{{#if:{{{facebook|<noinclude>x</noinclude>}}}|[[Image:Facebook_Icon.png|30px|link={{{facebook}}}|alt=Facebook]]}} | |||
{{#if:{{{flickr|<noinclude>x</noinclude>}}}|[[Image:Flickr_Icon.png|30px|link={{{flickr}}}|alt=Flickr]]}} | |||
{{#if:{{{myspace|<noinclude>x</noinclude>}}}|[[Image:Myspace_Icon.png|30px|link={{{myspace}}}|alt=MySpace]]}} | |||
{{#if:{{{youtube|<noinclude>x</noinclude>}}}|[[Image:Youtube_Icon.png|30px|link={{{youtube}}}|alt=YouTube]]}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 30: | Line 65: | ||
<noinclude> | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Infobox templates| | [[Category:Infobox templates|Vendor]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:12, 21 May 2010
| {{{vendor_name}}} | |
|---|---|
| [[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]]
{{{caption}}} | |
| Information | |
| Address | {{{address}}} |
| City | {{{city}}} |
| State | {{{state}}} |
| Zip Code | {{{zip}}} |
| Country | {{{country}}} |
| Map | Google Maps |
| Website | {{{website}}} |
| Phone | {{{phone}}} |
| Fax | {{{fax}}} |
| Media | |
[edit] []
Template documentation
Usage
{{Infobox vendor
|vendor_name =
|image =
|image_size =
|alt =
|caption =
|address =
|city =
|state =
|zip =
|country =
|website =
|phone =
|fax =
|media =
|digg =
|facebook =
|flickr =
|myspace =
|youtube =
}}
- vendor_name — the name of the vendor
- image — the image file name to use in the infobox (Note: only the file name is needed the template automatically links the file)
- image_size — the desired size of the image in pixels (Default: 250px)
- alt — alternate text to show up when the image is moused over
- caption — the caption to show up underneath the picture
- address — the vendor's address
- city — the vendor's city
- state — the vendor's state
- zip — the vendor's zip code
- country — the vendor's country
- website — the current website to the vendor
- phone — the vendor's phone number(s)
- fax — the vendor's fax number(s)
- media — yes or no, whether to display the media section or not
- digg — the vendor's digg link
- facebook — the vendor's facebook link
- flickr — the vendor's flickr link
- myspace — the vendor's myspace link
- youtube — the vendor's youtube link
| The above documentation is transcluded from Template:Infobox vendor/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |