Difference between revisions of "Template:Books"

From Creative Commons
Jump to: navigation, search
(New page: <noinclude>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 provide...)
 
(Remove test tag. Done for now.)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>This template simplifies the creation of articles about [[Book|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 &ndash; there are far easier ways of creating tables in MediaWiki.
 
<noinclude>This template simplifies the creation of articles about [[Book|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 &ndash; 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 Content Directory.
+
To use this template, insert the following at the beginning of your page. All fields are '''optional''' except for ''genre'' and should be omitted if no information is available.  The page name should reflect the name of the book.
  
 
<pre>{{Book|
 
<pre>{{Book|
 
   genre= See below for details|
 
   genre= See below for details|
  title= The title of the book|
 
 
   author= The author|
 
   author= The author|
 
   publisher= The publisher|
 
   publisher= The publisher|
 
   isbn= ISBN number|
 
   isbn= ISBN number|
 
   pubDate= Publication Date|
 
   pubDate= Publication Date|
 +
  license= URL of the license|
 
   cclicensed= CC-licensed version|
 
   cclicensed= CC-licensed version|
 
   pvfp= Print version for purchase|
 
   pvfp= Print version for purchase|
 +
  nbpages= Number of pages|
 
  }}
 
  }}
  
Line 18: Line 19:
 
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page.
 
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 [http://wiki.creativecommons.org/Special:AddPage/Form:Book here]
+
'''Otherwise, you can easily add articles by using a form, just go [http://wiki.creativecommons.org/Special:AddPage/Form:Book here]'''
 
 
== Genres ==
 
 
 
The following are recommended values for the genre fields:
 
 
 
* NonFiction
 
* Fiction
 
 
 
 
</noinclude><includeonly>
 
</noinclude><includeonly>
  
 
{| cellspacing="0" cellpadding="5" style="position:relative; margin: 0; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: center; clear: right; width: 100%"
 
{| cellspacing="0" cellpadding="5" style="position:relative; margin: 0; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: center; clear: right; width: 100%"
! colspan="2" style="background: #006600; color: white" |[[Name:={{{Name|{{PAGENAME}}}}}]]
+
! colspan="2" style="background: #006600; color: white" |{{{Name|{{PAGENAME}}}}}
 +
|-
 +
{{Tablerow|Label='''Author:'''|Value={{{author|}}}}}
 
|-
 
|-
{{#ifeq:{{{title|}}}|||{{Tablerow|Label='''Title:'''|Value=[[title:={{{title}}}]]}}}}
+
{{Tablerow|Label='''Genre:'''|Value={{{genre|}}}}}
 
|-
 
|-
{{#ifeq:{{{author|}}}|||{{Tablerow|Label='''Author:'''|Value=[[author:={{{author}}}]]}}}}
+
{{Tablerow|Label='''Publisher:'''|Value={{{publisher|}}}}}
 
|-
 
|-
{{#ifeq:{{{genre|}}}|||{{Tablerow|Label='''Genre:'''|Value=[[genre:={{{genre}}}]]}}}}
+
{{Tablerow|Label='''ISBN:'''|Value={{{isbn|}}} }}
 
|-
 
|-
{{#ifeq:{{{publisher|}}}|||{{Tablerow|Label='''Publisher:'''|Value=[[publisher:={{{publisher}}}]]}}}}
+
{{Tablerow|Label='''Publication Date:'''|Value={{{pubdate|}}}}}
 
|-
 
|-
{{#ifeq:{{{isbn|}}}|||{{Tablerow|Label='''ISBN:'''|Value=[[isbn:={{{isbn}}}]]}}}}
+
{{Tablerow|Label='''License:'''|Value={{{license|}}}}}
 
|-
 
|-
{{#ifeq:{{{pubDate|}}}|||{{Tablerow|Label='''Publication Date:'''|Value=[[pubDate:={{{pubDate}}}]]}}}
+
{{Tablerow|Label='''CC-Licensed Version:'''|Value={{{cclicensed|}}}}}
 
|-
 
|-
{{#ifeq:{{{cclicensed|}}}|||{{Tablerow|Label='''CC-Licensed Version:'''|Value=[[cclicensed:={{{cclicensed}}}]]}}}}
+
{{Tablerow|Label='''Print version for purchase:'''|Value={{{pvfp}}}}}
 
|-
 
|-
{{#ifeq:{{{pvfp|}}}|||{{Tablerow|Label='''Print version for purchase:'''|Value=[[pvfp:={{{pvfp}}}]]}}}}
+
{{Tablerow|Label='''Pages:'''|Value={{{nbpages|}}}}}
 
|-
 
|-
 
|}
 
|}
 
[[Category:Book]]</includeonly>
 
[[Category:Book]]</includeonly>

Latest revision as of 22:16, 15 June 2015

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 page. All fields are optional except for genre 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