Difference between revisions of "Template:Books"

From Creative Commons
Jump to: navigation, search
Line 35: Line 35:
 
{{#ifeq:{{{author|}}}|||{{Tablerow|Label='''Author:'''|Value=[[author:={{{author}}}]]}}}}
 
{{#ifeq:{{{author|}}}|||{{Tablerow|Label='''Author:'''|Value=[[author:={{{author}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{genre|}}}|||{{Tablerow|Label='''Genre:'''|Value=[[genre::{{{genre}}}]]}}}}
+
{{#ifeq:{{{genre|}}}|||{{Tablerow|Label='''Genre:'''|Value=[[genre:={{{genre}}}]]}}}}
 
|-
 
|-
 
{{#ifeq:{{{publisher|}}}|||{{Tablerow|Label='''Publisher:'''|Value=[[publisher:={{{publisher}}}]]}}}}
 
{{#ifeq:{{{publisher|}}}|||{{Tablerow|Label='''Publisher:'''|Value=[[publisher:={{{publisher}}}]]}}}}

Revision as of 19:35, 27 July 2007

This template simplifies the creation of articles about Books. When inserted in an book's page, it creates a decorative table with information about the content provided. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles. Do not try to read this page's source code for learning table syntax – there are far easier ways of creating tables in MediaWiki.

To use this template, insert the following at the beginning of your user page. All fields are optional and should be omitted if no information is available. The page name should reflect the name of the book.

{{Book|
  genre= See below for details|
  author= The author|
  publisher= The publisher|
  isbn= ISBN number|
  pubDate= Publication Date|
  license= URL of the license|
  cclicensed= CC-licensed version|
  pvfp= Print version for purchase|
  nbpages= Number of pages|
 }}

The order of the fields is not relevant. The template should be given as the first thing on a page.

Otherwise, you can easily add articles by using a form, just go here

Genres

The following are recommended values for the genre fields:

  • NonFiction
  • Fiction