Difference between revisions of "Template:Infobox journal"

From Glottopedia
Jump to navigation Jump to search
(Created page with '{{Infobox Journal | title = | cover = | editor = | discipline = | language = | abbreviation = | publisher = | country = | freque...')
 
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{| class="infobox hproduct" style="font-size:90%; width:{{#if:{{{boxwidth|}}}|{{{boxwidth}}}|20em}}; text-align:left;"
 +
! colspan="2" style="background:#ddffcc; text-align:center; font-size:larger; border-color:#dfc;" | ''<span class="fn">{{{title|{{PAGENAME}}}}}</span>'' <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:journal}}{{#if: {{{title|}}}|&rft.jtitle={{urlencode:{{{title}}}}}}}{{#if: {{{abbreviation|}}}|&rft.stitle={{urlencode:{{{abbreviation}}}}}}}{{#if: {{{ISSN|}}}|&rft.issn={{urlencode:{{{ISSN}}}}}}}{{#if: {{{website|{{{url|}}}}}}|&rft_id={{urlencode:{{{website|{{{url}}}}}}}}}}">&nbsp;</span>
 +
|-
 +
| colspan="2" style="text-align:center;" | {{{cover|}}}
 +
|-
 +
{{#if:{{{abbreviation|}}}|
 +
! Abbreviated title
 +
{{!}} {{{abbreviation}}}
 +
{{!}}-
 +
}}
 +
! width="42%" | [[List of academic disciplines|Discipline]]
 +
|<span class="category">{{{discipline}}}</span>
 +
|-
 +
! Language
 +
| {{{language|[[English]]}}}
 +
|-
 +
{{#if:{{{editor|}}}|
 +
! Edited by
 +
{{!}} {{{editor}}}
 +
{{!}}-
 +
}}
 +
! colspan="2" style="background:#ddffcc; text-align:center;" | Publication details
 +
|-
 +
! Publisher
 +
| {{{publisher}}} ({{{country}}})
 +
|-
 +
{{#if:{{{history|}}}|
 +
! Publication history
 +
{{!}} {{{history}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{JCR|}}}|
 +
{{!}} '''Impact factor'''<br/>on [[Journal Citation Reports|JCR]] (year)
 +
{{!}} {{{JCR}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{frequency|}}}|
 +
! Frequency
 +
{{!}} {{{frequency}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{openaccess|}}}|
 +
! [[Open access publishing|Open access]]
 +
{{!}} {{{openaccess}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{license|}}}|
 +
! [[License]]
 +
{{!}} {{{license}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{impact|}}}|
 +
! [[Impact factor]]
 +
{{!}} {{{impact}}}{{#if:{{{impact-year|}}}|&nbsp;({{{impact-year}}})}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{ISSN|{{{LCCN|{{{OCLC|{{{CODEN|}}}}}}}}}}}}|<!-- Then: display indexing section -->
 +
! colspan="2" style="background:#ddffcc; text-align:center;" {{!}} Indexing
 +
{{!}}- class="identifier"
 +
{{#if:{{{ISSN|}}}|
 +
! <span class="type">[[International Standard Serial Number|ISSN]]
 +
{{!}}<span class="value">{{ISSN search link|{{{ISSN}}}}}</span>{{#if:{{{eISSN|}}}|&nbsp;(print)<br>{{ISSN search link|{{{eISSN}}}}}&nbsp;(web)}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{LCCN|}}}|
 +
! [[Library of Congress Control Number|LCCN]]
 +
{{!}} {{{LCCN}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{CODEN|}}}|
 +
! [[CODEN]]
 +
{{!}} {{{CODEN}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{OCLC|}}}|
 +
! [[OCLC]]
 +
{{!}}{{#ifeq:{{#expr:{{{OCLC}}}}}|Expression error: Unrecognised punctuation character "["|{{{OCLC}}}|{{OCLC search link|{{{OCLC}}}}}}}
 +
{{!}}-
 +
}}|<!--no indexing info: -->[[Category:ISSN needed]]<!-- end indexing section -->}}
 +
{{#if:{{{website|{{{url|{{{JSTOR|{{{link1|}}}}}}}}}}}}|<!-- Then: display links section -->
 +
! colspan="2" style="background:#ddffcc; text-align:center;" {{!}} Links
 +
{{!}}-
 +
{{!}} colspan="2" {{!}} {{#if:{{{website|{{{url|}}}}}}|
 +
*[{{{website|{{{url}}}}}} Journal homepage]}}{{#if:{{{link1|}}}|
 +
*[{{{link1}}} {{{link1-name}}}]}}{{#if:{{{link2|}}}|
 +
*[{{{link2}}} {{{link2-name}}}]}}{{#if:{{{link3|}}}|
 +
*[{{{link3}}} {{{link3-name}}}]}}{{#if:{{{RSS|{{{rss|}}}}}}|
 +
<div class=plainlinksneverexpand>[[Image:Feed-icon.svg|16px]]&nbsp;[{{{RSS|{{{rss}}}}}} RSS] ([[RSS|?]])</div>}}{{#if:{{{atom|}}}|
 +
<div class=plainlinksneverexpand>[[Image:Feed-icon.svg|16px]]&nbsp;[{{{atom}}} Atom] ([[Atom (standard)|?]])</div>}}{{#if:{{{JSTOR|}}}|
 +
*[http://www.jstor.org/journals/{{{JSTOR}}}.html ''JSTOR'']}}}}
 +
|}<!--
 +
------------------------------------------ Validate parameters
 +
-->{{#ifeq:{{{licence|xz}}}|xz||<br>Infobox Journal: invalid "licence" - try "licen'''s'''e=copyright"}}{{
 +
#ifeq:{{{URL|xz}}}|xz||<br>Infobox Journal: invalid "URL" - try lowercase "url=" or "website=".}}{{
 +
#ifeq:{{{jstor|xz}}}|xz||<br>Infobox Journal: invalid "jstor" - try uppercase "JSTOR=".}}{{
 +
#ifeq:{{{issn|xz}}}|xz||<br>Infobox Journal: invalid "issn" - try uppercase "ISSN=".}}{{
 +
#ifeq:{{{eissn|xz}}}|xz||<br>Infobox Journal: invalid "eissn" - try uppercase "eISSN=".}}{{
 +
#ifeq:{{{lccn|xz}}}|xz||<br>Infobox Journal: invalid "lccn" - try uppercase "LCCN=".}}{{
 +
#ifeq:{{{oclc|xz}}}|xz||<br>Infobox Journal: invalid "oclc" - try uppercase "OCLC=".}}{{
 +
#ifeq:{{{coden|xz}}}|xz||<br>Infobox Journal: invalid "coden" - try uppercase "CODEN=".}}{{
 +
#ifeq:{{{Coden|xz}}}|xz||<br>Infobox Journal: invalid "Coden" - try uppercase "CODEN=".}}<!--
 +
--><noinclude>
 +
 +
{{TOCright}}
 +
&nbsp;The '''Template:Infobox Journal''' is used to display details about journal<br>&nbsp;publications as a right-side infobox. It can be stacked with other infoboxes.
 +
 +
== Usage ==
 +
<pre>
 
{{Infobox Journal
 
{{Infobox Journal
 
| title        =  
 
| title        =  
Line 29: Line 137:
 
| boxwidth      =  
 
| boxwidth      =  
 
}}
 
}}
 +
</pre>
 +
 +
{| valign="top" style="border-width:0px; border-collapse:collapse; padding:2px;"
 +
|-
 +
| colspan="3" | <nowiki>{{</nowiki>Infobox Journal
 +
|-
 +
| width="15%" | &#124; title|| width="20px" | = || Name of journal (defaults to page name)
 +
|-
 +
|&#124; cover|| = || Optional image of journal
 +
|-
 +
|&#124; editor|| = || Optional name of editor
 +
|-
 +
|&#124; discipline|| = || Topic of the journal
 +
|-
 +
|&#124; language|| = || Language of publication, (or abstracts)
 +
|-
 +
|&#124; abbreviation|| = || Abbreviation for journal
 +
|-
 +
|&#124; publisher|| = || Name of publisher
 +
|-
 +
|&#124; country|| = || Country of publication, as: [[United States|USA]]
 +
|-
 +
|&#124; frequency|| = || Frequency of publication
 +
|-
 +
|&#124; history|| = || Publication history, as: 1869 to present
 +
|-
 +
|&#124; openaccess|| = || Availability of [[Open access (publishing)|open access content]], with links if appropriate
 +
|-
 +
|&#124; license|| = || License of the journal's content
 +
|-
 +
|&#124; impact|| = || The [[impact factor]] of the journal
 +
|-
 +
|&#124; impact-year|| = || The year the impact factor was measured
 +
|-
 +
|&#124; website|| = || [[Uniform Resource Locator|URL]] for journal homepage; see usage below
 +
|-
 +
|&#124; link1|| = || URL for additional link; see below
 +
|-
 +
|&#124; link1-name|| = || name for additional link; see below
 +
|-
 +
|&#124; link2|| = || URL for additional link; see below
 +
|-
 +
|&#124; link2-name|| = || Name for additional link; see below
 +
|-
 +
|&#124; RSS|| = || URL of [[RSS]] feed
 +
|-
 +
|&#124; atom|| = || URL of [[Atom (standard)|Atom]] feed
 +
|-
 +
|&#124; JSTOR|| = || [[JSTOR]] number, usually the ISSN - link will be generated automatically
 +
|-
 +
|&#124; OCLC|| = || [[Online Computer Library Center|OCLC]] number
 +
|-
 +
|&#124; LCCN|| = || Link to [[Library of Congress Control Number|LCCN]]
 +
|-
 +
|&#124; CODEN|| = || Link to [[CODEN]]
 +
|-
 +
|&#124; ISSN|| = || [[International Standard Serial Number|ISSN]] (print edition) or eISSN if electronic-only journal
 +
|-
 +
|&#124; eISSN|| = || ISSN for web version of paper journals
 +
|-
 +
|&#124; boxwidth|| = || Width of infobox, specify '[[em (typography)|em]]' or '[[Pixel|px]]' explicitly (e.g. ''boxwidth = 30em'' or ''boxwidth = 300px''); default is 20em
 +
|-
 +
| colspan="3" | <nowiki>}}</nowiki>
 +
|}
 +
 +
 +
==Examples==
 +
* ''language'' - default is "English" but could put many:&nbsp; language=English or French (etc.).
 +
* ''website'' - Just put the full URL; e.g., http://www.nature.com . This field automatically displays the name "Journal homepage."  If you wish to display a different name, or to include additional links, use parameters "link1" & "link1-name" ("link2" etc.).  For example, show "About Nature":
 +
<pre>
 +
  | website = http://www.nature.com
 +
  | link1 = http://www.nature.com/nature/about/index.html
 +
  | link1-name = About Nature
 +
</pre>
 +
* ''title'' - The infobox displays the journal title at the top, wrapping to keep the infobox narrow. To custom-wrap a long title, insert "&lt;br>". Otherwise, the title will auto-wrap after all words that fit:
 +
<pre>
 +
  | title = Canadian Journal of<br>Earth Sciences
 +
</pre>
 +
* ''country'' - such as "Canada". To include a flag, use: <code> country=&amp;nbsp;{<font/>{flag|Canada}}</code>. The non-breaking "&amp;nbsp;" keeps the parenthesis "(" on the same line.
 +
 +
&nbsp;In general, any parameter can be custom-wrapped by inserting a "&lt;br>" wherever needed.
 +
 +
== Microformat ==
 +
{{UF-hprod}}
 +
 +
==COinS==
 +
&nbsp;{{UF-COinS}}
 +
 +
[[Category:Template]]
 +
</noinclude>
 +
<includeonly>
 +
[[Category:journal]]
 +
</includeonly>

Latest revision as of 14:45, 30 June 2009

Infobox journal  
Discipline {{{discipline}}}
Language English
Publication details
Publisher {{{publisher}}} ({{{country}}})

 The Template:Infobox Journal is used to display details about journal
 publications as a right-side infobox. It can be stacked with other infoboxes.

Usage

{{Infobox Journal
| title         = 
| cover         = 
| editor        = 
| discipline    = 
| language      = 
| abbreviation  = 
| publisher     = 
| country       = 
| frequency     = 
| history       = 
| openaccess    = 
| license       = 
| impact        = 
| impact-year   = 
| website       = 
| link1         = 
| link1-name    = 
| link2         = 
| link2-name    = 
| RSS           = 
| atom          = 
| JSTOR         = 
| OCLC          = 
| LCCN          = 
| CODEN         = 
| ISSN          = 
| eISSN         = 
| boxwidth      = 
}}
{{Infobox Journal
| title = Name of journal (defaults to page name)
| cover = Optional image of journal
| editor = Optional name of editor
| discipline = Topic of the journal
| language = Language of publication, (or abstracts)
| abbreviation = Abbreviation for journal
| publisher = Name of publisher
| country = Country of publication, as: USA
| frequency = Frequency of publication
| history = Publication history, as: 1869 to present
| openaccess = Availability of open access content, with links if appropriate
| license = License of the journal's content
| impact = The impact factor of the journal
| impact-year = The year the impact factor was measured
| website = URL for journal homepage; see usage below
| link1 = URL for additional link; see below
| link1-name = name for additional link; see below
| link2 = URL for additional link; see below
| link2-name = Name for additional link; see below
| RSS = URL of RSS feed
| atom = URL of Atom feed
| JSTOR = JSTOR number, usually the ISSN - link will be generated automatically
| OCLC = OCLC number
| LCCN = Link to LCCN
| CODEN = Link to CODEN
| ISSN = ISSN (print edition) or eISSN if electronic-only journal
| eISSN = ISSN for web version of paper journals
| boxwidth = Width of infobox, specify 'em' or 'px' explicitly (e.g. boxwidth = 30em or boxwidth = 300px); default is 20em
}}


Examples

  • language - default is "English" but could put many:  language=English or French (etc.).
  • website - Just put the full URL; e.g., http://www.nature.com . This field automatically displays the name "Journal homepage." If you wish to display a different name, or to include additional links, use parameters "link1" & "link1-name" ("link2" etc.). For example, show "About Nature":
   | website = http://www.nature.com
   | link1 = http://www.nature.com/nature/about/index.html
   | link1-name = About Nature
  • title - The infobox displays the journal title at the top, wrapping to keep the infobox narrow. To custom-wrap a long title, insert "<br>". Otherwise, the title will auto-wrap after all words that fit:
   | title = Canadian Journal of<br>Earth Sciences
  • country - such as "Canada". To include a flag, use: country=&nbsp;{{flag|Canada}}. The non-breaking "&nbsp;" keeps the parenthesis "(" on the same line.

 In general, any parameter can be custom-wrapped by inserting a "<br>" wherever needed.

Microformat

The HTML mark up produced by this template includes an hProduct microformat, which makes the product's details parsable by computers, either acting automatically to index articles across Wikipedia for search engines, or via a browser tool operated by a person. For more information about the use of microformats on Wikipedia, please see the microformat project.

hProduct uses HTML classes including:

  • brand
  • category
  • description
  • fn
  • hproduct
  • identifier
  • listing
  • photo
  • price
  • review
  • type
  • url
  • value

Please do not rename or remove these classes; nor collapse nested elements which use them.


COinS

 This template produces COinS metadata; see COinS in Wikipedia for background information.