Difference between revisions of "Template:Infobox Restaurant"
m |
|||
(18 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" style="width: 300px; font-size: 90%;" | {| class="infobox" style="width: 300px; font-size: 90%;" | ||
|- | |- | ||
− | ! colspan="2" style="font-size: larger; background-color: # | + | ! colspan="2" style="font-size: larger; background-color: #eef2f2;" | {{#if: {{{name|}}}|{{{name}}}}} |
|- | |- | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
− | {{!}} colspan="2" style="line-height: 1.2; border-bottom: 1px solid # | + | {{!}} colspan="2" style="line-height: 1.2; border-bottom: 1px solid #eef2f2;" {{!}} <div style="border: 1px solid #dde4ea;">[[Image:{{{image}}}|300px|{{{caption}}}]]</div>{{#if: {{{caption|}}}|<center>{{{caption}}}</center>}}}} |
|- | |- | ||
{{#if: {{{cuisine|}}}| | {{#if: {{{cuisine|}}}| | ||
Line 11: | Line 11: | ||
|- | |- | ||
{{#if: {{{location|}}}| | {{#if: {{{location|}}}| | ||
− | {{!}} '''Location | + | {{!}} '''Location''' |
{{!}} {{{location}}}}} | {{!}} {{{location}}}}} | ||
|- | |- | ||
{{#if: {{{opened|}}}| | {{#if: {{{opened|}}}| | ||
− | {{!}} ''' | + | {{!}} '''Established''' |
{{!}} {{{opened}}}}} | {{!}} {{{opened}}}}} | ||
|- | |- | ||
Line 23: | Line 23: | ||
|- | |- | ||
{{#if: {{{chef|}}}| | {{#if: {{{chef|}}}| | ||
− | {{!}} '''Chef''' | + | {{!}} {{ #if: {{{cheftitle|}}}|'''{{{cheftitle}}}'''|'''Chef'''}} |
{{!}} {{{chef}}}}} | {{!}} {{{chef}}}}} | ||
|- | |- | ||
{{#if: {{{slogan|}}}| | {{#if: {{{slogan|}}}| | ||
{{!}} '''Slogan''' | {{!}} '''Slogan''' | ||
− | {{!}} {{{slogan}}}}} | + | {{!}} ''{{{slogan}}}''}} |
+ | |- | ||
+ | {{#if: {{{hours|}}}| | ||
+ | {{!}} '''Hours of Operation''' | ||
+ | {{!}} {{{hours}}}}} | ||
+ | |- | ||
+ | {{#if: {{{phone|}}}| | ||
+ | {{!}} '''Phone number''' | ||
+ | {{!}} {{{phone}}}}} | ||
+ | |- | ||
+ | {{#if: {{{website|}}}| | ||
+ | {{!}} '''Website''' | ||
+ | {{!}} {{{website}}}}} | ||
|- | |- | ||
{{#if: {{{mapcode|}}}| | {{#if: {{{mapcode|}}}| | ||
− | {{!}} colspan="2" {{!}} {{{mapcode}}}}} | + | {{!}} colspan="2" {{!}} <div class="NavFrame" style="border:none;"><div class="NavHead">Map</div><div class="NavContent">{{{mapcode}}}</div></div>}} |
|}<noinclude> | |}<noinclude> | ||
− | + | ==Usage== | |
+ | <pre>{{Infobox Restaurant | ||
+ | |name= | ||
+ | |image= | ||
+ | |caption= | ||
+ | |cuisine= | ||
+ | |location= | ||
+ | |opened= | ||
+ | |owner= | ||
+ | |chef= | ||
+ | |cheftitle= | ||
+ | |slogan= | ||
+ | |hours= | ||
+ | |phone= | ||
+ | |website= | ||
+ | |mapcode= | ||
+ | }}</pre> | ||
+ | For the Map field, just use the built-in Google Editors Map (set width to 288px) and copy-paste. | ||
− | [[Category:Infobox templates| | + | [[Category:Infobox templates|Restaurant]] |
</noinclude> | </noinclude> |
Latest revision as of 22:15, 26 December 2008
UsageEdit
{{Infobox Restaurant |name= |image= |caption= |cuisine= |location= |opened= |owner= |chef= |cheftitle= |slogan= |hours= |phone= |website= |mapcode= }}
For the Map field, just use the built-in Google Editors Map (set width to 288px) and copy-paste.