Difference between revisions of "Template:Infobox"

From PortlandWiki
Jump to: navigation, search
m (Fix?)
m (Fix (again)?)
 
Line 1: Line 1:
{|style="border:1px solid #999; background-color: white; margin-left:2em; margin-top:2px;" align="right" width="300px"
+
{| style="border:1px solid #acf; background:#fff; margin:2px 0 2em 2em; padding:4px; float:right; clear:right; width:300px; font-size:.9em; color:#235; text-align:left;" cellpadding="0" cellspacing="2"
| [[{{{Image}}}|center|200px]]
+
! colspan="2" style="padding-top:5px; background:#acf; font-size:large; font-weight:bold; text-align:center;" | {{PAGENAME}}
 
|-
 
|-
| '''{{{CompanyName}}}'''
+
! colspan="2" | {{#if:{{{image|}}}|[[File:{{{image}}}|{{{size|290px}}}]]}}
|-
+
|- style="vertical-align:top;"
| {{{Address}}}
+
! style="background:#eee; padding:2px 5px;" | address
|-
+
! style="padding:2px 5px;"| {{{address}}}
| {{{CrossStreets}}}
+
|- style="vertical-align:top;"
|-
+
! style="background:#eee; padding:2px 5px;" | neighborhood
| {{{Neighborhood}}}
+
! style="padding:2px 5px;"| {{{neighborhood}}}
|-
+
|- style="vertical-align:top;"
| {{{Phone}}}
+
! style="background:#eee; padding:2px 5px;" | cross streets
|-
+
! style="padding:2px 5px;" | {{{cross streets}}}
| {{{Website}}}
+
|- style="vertical-align:top;"
|-
+
! style="background:#eee; padding:2px 5px;" | other info
| {{{Hours}}}
+
! style="padding:2px 5px;"| {{{other info}}}
|-
+
|- style="vertical-align:top;"
| {{{Categories}}}
+
! style="background:#eee; padding:2px 5px;" | landmark
 +
! style="padding:2px 5px;"| {{{landmark}}}
 +
|- style="vertical-align:top;"
 +
! style="background:#eee; padding:2px 5px;" | city quadrant
 +
! style="padding:2px 5px;"| {{{city quadrant}}}
 +
|- style="vertical-align:top;"
 +
! style="background:#eee; padding:2px 5px;" | notes
 +
! style="padding:2px 5px;"| {{{notes}}}
 +
|- style="vertical-align:top;"
 +
! style="background:#eee; padding:2px 5px;" | website
 +
! style="padding:2px 5px;"| {{{website}}}
 
|}
 
|}
  
{{clear}}
+
<noinclude><div style="width:600px;background:#efefe0;border:1px solid #ddc;padding:5px 15px 10px;margin:20px 30px 0px;">
 +
== Template Notes ==
 +
* This template is placed at the top.
 +
* It provides basic, at-a-glance facts about the subject.
  
{{Infobox
+
=== Instructions ===
| Image        = File:Keep-Portland-Wiki.png
+
Use the entire code as shown below:
| CompanyName  = Generic Infobox
+
| Address      = [[PortlandWiki]]
+
| CrossStreets  = They all cross.
+
| Neighborhood  = [[Portland]]
+
| Phone        = Google Voice
+
| Website      = http://portlandwiki.org/
+
| Hours        = 24/7
+
| Categories    = Infobox
+
|}}
+
  
{{clear}}
+
<code>
 +
{{Infobox<br />
 +
| image =&nbsp;<br />
 +
| address =&nbsp;<br />
 +
| neighborhood =&nbsp;<br />
 +
| cross streets =&nbsp;<br />
 +
| other info =&nbsp;<br />
 +
| landmark =&nbsp;<br />
 +
| city quadrant =&nbsp;<br />
 +
| notes =&nbsp;<br />
 +
| website =&nbsp;<br />
 +
}}
 +
</code>
  
== Generic Infobox ==
+
Leave blank any info you don't know or can't find.
Just need some quick and dirty way to give an article an infobox?
+
:Try this:
+
<noinclude>
+
<pre>
+
{{Infobox
+
| Image        =
+
| CompanyName  =
+
| Address      =
+
| CrossStreets  =
+
| Neighborhood  =
+
| Phone        =
+
| Website      =
+
| Hours        =
+
| Categories    =
+
|}}
+
</pre>
+
</noinclude>
+
 
* The box shown top, right is the back-end code.
 
* The box shown top, right is the back-end code.
 
* The box shown beneath it is an example of what the box looks like after you insert your info.
 
* The box shown beneath it is an example of what the box looks like after you insert your info.
 
* The code just below is what you insert at the top of your wiki article.
 
* The code just below is what you insert at the top of your wiki article.
 +
</noinclude>
  
 
[[Category:Infobox]]
 
[[Category:Infobox]]
 
[[Category:Templates]]
 
[[Category:Templates]]

Latest revision as of 20:31, 10 March 2011

Infobox
address {{{address}}}
neighborhood {{{neighborhood}}}
cross streets {{{cross streets}}}
other info {{{other info}}}
landmark {{{landmark}}}
city quadrant {{{city quadrant}}}
notes {{{notes}}}
website {{{website}}}

Template Notes

  • This template is placed at the top.
  • It provides basic, at-a-glance facts about the subject.

Instructions

Use the entire code as shown below:

{{Infobox
| image = 
| address = 
| neighborhood = 
| cross streets = 
| other info = 
| landmark = 
| city quadrant = 
| notes = 
| website = 
}}

Leave blank any info you don't know or can't find.

  • The box shown top, right is the back-end code.
  • The box shown beneath it is an example of what the box looks like after you insert your info.
  • The code just below is what you insert at the top of your wiki article.