Difference between revisions of "Template:Infobox Publication"

From Pensapedia, the Pensacola encyclopedia
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table class="infobox" style="font-size: 90%; text-align: left; width: 21em;">
+
{| class="infobox" style="width: 25.5em; font-size: 90%; text-align: left;"
<tr><th style="text-align: center; font-size: larger;" colspan="2">'''''{{{name}}}'''''</th></tr>
+
|-
{{#if: {{{image|}}}
+
| colspan="2" style="font-size: larger; text-align: center;" | '''{{{name}}}'''
| <tr><td colspan="2" style="text-align: center;"> {{{image|}}}<br/>{{{caption|}}}</td></tr>
+
|-
}}<tr><th>Type</th><td>{{{type}}}</td></tr>
+
{{#if: {{{image|}}}
<tr><th>Format</th><td>{{{format}}}</td></tr>
+
{{!}} colspan="2" style="font-size: smaller; text-align: center;" {{!}} [[image:{{{image}}}|{{{image_size}}}]]<br>{{{image_caption|}}}}}<!--
<tr><td colspan="2" style="text-align: center;"><hr></td></tr>
+
-->
<tr><th>Owner</th><td>{{{owners}}}</td></tr>
+
|-
<tr><th>Publisher</th><td>{{{publisher}}}</td></tr>
+
{{#if: {{{type|}}}|
<tr><th>Editor</th><td>{{{editor}}}</td></tr>
+
! Type of publication
<tr><th>Founded</th><td>{{{foundation}}}</td></tr>
+
{{!}} {{{type|}}}}}
{{#if: {{{ceased publication|}}}
+
|-
| <tr><th>Ceased&nbsp;publication</th><td>{{{ceased publication}}}</td></tr>
+
{{#if: {{{editor|}}}|
}}{{#if: {{{price|}}}
+
! {{#if: {{{editor_title|}}}|{{{editor_title}}}|Editor}}
| <tr><th>Price</th><td>{{{price}}}</td></tr>
+
{{!}} {{{editor|}}}}}
}}<tr><th>Headquarters</th><td>{{{headquarters}}}</td></tr>
+
|-
{{#if: {{{circulation|}}}
+
{{#if: {{{staff|}}}|
| <tr><th>Circulation</th><td>{{{circulation}}}</td></tr>
+
! Staff
}}
+
{{!}} {{{staff|}}}}}
<tr><td colspan="2" style="text-align: center;"> <hr> </td></tr>
+
|-
<tr><td colspan="2" style="text-align: center;">'''Website:''' {{{website}}}</td></tr>
+
{{#if: {{{publisher|}}}|
</table><noinclude>
+
! Publisher
 
+
{{!}} {{{publisher|}}}}}
----
+
|-
== How to use this template ==
+
{{#if: {{{owner|}}}|
 
+
! Owner
Empty syntax
+
{{!}} {{{owner|}}}}}
<pre>
+
|-
{{Infobox Newspaper
+
{{#if: {{{frequency|}}}|
| name                =
+
! Frequency
| image              =
+
{{!}} {{{frequency|}}}}}
| caption            =
+
|-
| type                =
+
{{#if: {{{circulation|}}}|
| format              =
+
! Circulation
| foundation          =
+
{{!}} {{{circulation|}}}}}
| ceased publication  =
+
|-
| price              =
+
{{#if: {{{cost|}}}|
| owners              =
+
! Cost
| publisher          =
+
{{!}} {{{cost|}}}}}
| editor              =
+
|-
| language            =
+
{{#if: {{{founded|}}}|
| political          =
+
! Founded
| circulation        =
+
{{!}} {{{founded|}}}}}
| headquarters        =
+
|-
| ISSN                =
+
{{#if: {{{firstdate|}}}|
| website            =
+
! First Issue
}}
+
{{!}} {{{firstdate|}}}<br>{{{firstnumber}}}}}
</pre>
+
|-
 
+
{{#if: {{{finaldate|}}}|
=== Optional parameters ===
+
! Final Issue:
 
+
{{!}} {{{finaldate|}}}<br>{{{finalnumber}}}}}
The following parameters are optional; if no value is specified for the parameter, it will not be displayed.
+
|-
 
+
{{#if: {{{headquarters|}}}|
* ceased publication
+
! Headquarters
* editor
+
{{!}} {{{headquarters|}}}}}
* owners
+
|-
* political
+
{{#if: {{{website|}}}|
* publisher
+
! Website
* price
+
{{!}} {{{website|}}}}}
* ISSN
+
|}
* language
+
<noinclude>
* circulation
+
== Usage ==
 
 
=== Example ===
 
 
 
''Example: [[Chicago Tribune]]''
 
 
 
 
<pre>
 
<pre>
{{Infobox Newspaper
+
{{Infobox Publication
| name               = [[Image:Chicago Tribune.png|225px|centre]]
+
|name=
| image               = [[Image:Chicago Tribune Frontpage.jpg|150px|centre]]
+
|image=
| type               = Daily [[newspaper]]
+
|image_size=
| format              = [[Broadsheet]]
+
|image_caption=
| foundation          = [[June 10]], [[1847]]
+
|type=
| owners              = [[Tribune Company]]
+
|editor=
| publisher           = David Hiller
+
|editor_title=
| editor              = Ann Marie Lipinski
+
|staff=
| political          = conservative
+
|publisher=
| price              = USD 0.50 City & Suburbs<br />USD 0.75 Elsewhere
+
|owner=
| headquarters        = [[Chicago, Illinois]]
+
|frequency=
| ISSN                = 1085-6706
+
|circulation=
| website             = [http://www.chicagotribune.com www.chicagotribune.com]
+
|cost=
 +
|founded=
 +
|firstdate=
 +
|firstnumber=
 +
|finaldate=
 +
|finalnumber=
 +
|headquarters=
 +
|website=
 
}}
 
}}
 
</pre>
 
</pre>
  
[[Category:Infobox templates|{{PAGENAME}}]]
+
[[Category:Infobox templates|Publication]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:04, 13 March 2007

{{{name}}}

Usage[edit]

{{Infobox Publication
|name=
|image=
|image_size=
|image_caption=
|type=
|editor=
|editor_title=
|staff=
|publisher=
|owner=
|frequency=
|circulation=
|cost=
|founded=
|firstdate=
|firstnumber=
|finaldate=
|finalnumber=
|headquarters=
|website=
}}