Template:Book: Difference between revisions

From Future Worlds Center Wiki
Jump to navigationJump to search
(Created page with "{| border="1" width="250" style="float:right;background-color:#FFCC33;line-height:90%;word-spacing:0.5px;" | {| border="0" width="100%" align="center" cellspacing="5" style="bac...")
 
No edit summary
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|  border="1" width="250" style="float:right;background-color:#FFCC33;line-height:90%;word-spacing:0.5px;"
{|  border="0" width="285" style="margin:5px 0px 5px 10px;float:right;clear:right;border:1px solid #ccc;background-color:#FFCC33;line-height:1.5em;word-spacing:0.5px;"
|
|
{| border="0" width="100%" align="center" cellspacing="5" style="background-color:#FFCC33;padding:0px"
{| border="0" width="100%" align="center" cellspacing="5" style="background-color:#FFCC33;padding:0px"
! align="center" valign="top"|{{{title}}}
! align="center" valign="top"|{{#if:{{{title|}}} | {{{title}}} }}
|-
|-
| align="center" border="0" | {{ScaleImage
| align="center" border="0" | {{#if:{{{book_image|}}} | {{ScaleImage
|imagename={{{book_image}}}
|imagename={{{book_image}}}
|caption={{{title}}}
|caption={{{title}}}
|newwidth=200px              <!-- new width=15,scales the image to 15%, new width=80px,scales the image to 80px-->
|newwidth=200px              <!-- new width=15,scales the image to 15%, new width=80px,scales the image to 80px-->
}}
}} }}
|}
|}
{| border="0" width="100%" cellspacing="5" style="background-color:#FF9933;padding:0px"
{| border="0" width="100%" cellspacing="5" style="background-color:#FFCC33;padding:0px"
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| width="20%" |<b>{{#if:{{{author|}}} | ''Author(s)'' }}</b>
| width="20%" |<b>{{#if:{{{author|}}} | '''Author(s)''' }}</b>
||{{#if:{{{author|}}} | {{{author}}} }}
||{{#if:{{{author|}}} | {{{author}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{editor|}}} | ''Editor(s)'' }}</b>
| <b>{{#if:{{{editor|}}} | '''Editor(s)''' }}</b>
||{{#if:{{{editor|}}} | {{{editor}}} }}
||{{#if:{{{editor|}}} | {{{editor}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{pages|}}} | ''Pages'' }}</b>
| <b>{{#if:{{{publisher|}}} | '''Publisher''' }}</b>
||{{#if:{{{publisher|}}} | {{{publisher}}} }}
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{pages|}}} | '''Pages''' }}</b>
||{{#if:{{{pages|}}} | {{{pages}}} }}
||{{#if:{{{pages|}}} | {{{pages}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{isbn_13|}}} | ''ISBN-13'' }}</b>
| <b>{{#if:{{{isbn_13|}}} | '''ISBN-13''' }}</b>
||{{#if:{{{isbn_13|}}} | {{{isbn_13}}} }}
||{{#if:{{{isbn_13|}}} | {{{isbn_13}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{isbn_10|}}} | ''ISBN-10'' }}</b>
| <b>{{#if:{{{isbn_10|}}} | '''ISBN-10''' }}</b>
||{{#if:{{{isbn_10|}}} | {{{isbn_10}}} }}
||{{#if:{{{isbn_10|}}} | {{{isbn_10}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{lccn|}}} | ''LCCN'' }}</b>
| <b>{{#if:{{{lccn|}}} | '''LCCN''' }}</b>
||{{#if:{{{lccn|}}} | {{{lccn}}} }}
||{{#if:{{{lccn|}}} | {{{lccn}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{bisac|}}} | ''BISAC'' }}</b>
| <b>{{#if:{{{bisac|}}} | '''BISAC''' }}</b>
||{{#if:{{{bisac|}}} | {{{bisac}}} }}
||{{#if:{{{bisac|}}} | {{{bisac}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{year|}}} | ''Year'' }}</b>
| <b>{{#if:{{{year|}}} | '''Year''' }}</b>
||{{#if:{{{year|}}} | {{{year}}} }}
||{{#if:{{{year|}}} | {{{year}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{link|}}} | ''Link'' }}</b>
| <b>{{#if:{{{link|}}} | '''Link''' }}</b>
||{{#if:{{{link|}}} | {{{link}}} }}
||{{#if:{{{link|}}} | {{{link}}} }}
|}
|}
|}
|}
<noinclude>
<br /><br /><br />
__TOC__
==EXAMPLE ON HOW TO USE THE TEMPLATE==
{{Book                                          <!-- The name of the template -->
  |title=write the title of the book                      <!-- Append to variable acronym the content  acronym of the sdd report -->
|book_image=OrientationManual.png    <!-- You can replace all the template's variables with the                                                                                                                                                                                                                                          appropriate content-->
    |author=write the Author(s) of the book    <!-- if a variable left empty e.g " report_title =" or not used  at all then it will not appear on the template -->
      |editor=write the Editor(s) of the Book
      |publisher=write the publisher
      |pages= write the Pages of the book
      |isbn_13=write the ISBN-13 of the book  <!-- e.g  978-1461083207 -->
      |isbn_10=write the ISBN-10 of the book  <!-- e.g  1461083206 -->
      |lccn=write the LCCN                                  <!-- e.g  2011906993 -->
      |bisac=write the BISAC                                <!-- e.g  Biography & Autobiography / Personal Memoirs  -->
      |year=write the Year of the book
      |link=write the link to the book if any
}}
Copy and paste the code below to the page you wish to add a Book's box such as this one:
<pre>
{{Book                                         
      |title=write the title of the book                     
      |book_image=OrientationManual.png 
      |author=write the Author(s) of the book   
      |editor=write the Editor(s) of the Book
      |publisher=write the publisher
      |pages= write the Pages of the book
      |isbn_13=write the ISBN-13 of the book 
      |isbn_10=write the ISBN-10 of the book 
      |lccn=write the LCCN                                 
      |bisac=write the BISAC                               
      |year=write the Year of the book
      |link=write the link to the book if any
}}
</pre>
Then replace the content of the variables with your own, for example :
  Replace
            title=write the title of the book 
  With
            <span style="color:red">title=Masks of Demons</span>
===List of Variables===
* <b>title</b> : This variable expects from the editor to assign to it the title of the Book.
* <b>book_image</b> : This variable expects from the editor to assign to it the image of the Book. You must first upload an image using the upload file option of the toolbox available on the left column of the page. This option is visible if and only if you are logged in.
* <b>author</b> : This variable expects from the editor to assign to it the author of the Book.
* <b>editor</b> : This variable expects from the editor to assign to it the editor of the Book
* <b>publisger</b> : This variable expects from the editor to assign to it the publisher of the Book
* <b>pages</b> : This variable expects from the editor to assign to it the number of pages of the Book
* <b>isbn_13</b> : This variable expects from the editor to assign to it the isbn_13 of the Book. e.g <span style="color:red">978-1461083207</span>
* <b>isbn_10</b> : This variable expects from the editor to assign to it the isbn_10 of the Book.  e.g <span style="color:red">1461083206 </span>
* <b>lccn</b> : This variable expects from the editor to assign to it the lccn of the Book.  e.g <span style="color:red">2011906993 </span>
* <b>bisac</b> : This variable expects from the editor to assign to it the bisac of the Book.  e.g <span style="color:red">Biography & Autobiography / Personal Memoirs</span>
* <b>year</b> : This variable expects from the editor to assign to it the year that the book was published.
* <b>link</b> : This variable expects from the editor to assign to it the link of the Book.
</noinclude>
<noinclude>[[Category:T/Reports]]</noinclude>

Latest revision as of 07:28, 27 March 2022




EXAMPLE ON HOW TO USE THE TEMPLATE

write the title of the book
write the title of the book
Author(s) write the Author(s) of the book
Editor(s) write the Editor(s) of the Book
Publisher write the publisher
Pages write the Pages of the book
ISBN-13 write the ISBN-13 of the book
ISBN-10 write the ISBN-10 of the book
LCCN write the LCCN
BISAC write the BISAC
Year write the Year of the book
Link write the link to the book if any




Copy and paste the code below to the page you wish to add a Book's box such as this one:

{{Book                                           
       |title=write the title of the book                      
       |book_image=OrientationManual.png  
       |author=write the Author(s) of the book    
       |editor=write the Editor(s) of the Book
       |publisher=write the publisher
       |pages= write the Pages of the book
       |isbn_13=write the ISBN-13 of the book  
       |isbn_10=write the ISBN-10 of the book  
       |lccn=write the LCCN                                   
       |bisac=write the BISAC                                 
       |year=write the Year of the book
       |link=write the link to the book if any
}}

Then replace the content of the variables with your own, for example :

  Replace 
            title=write the title of the book   
  With 
            title=Masks of Demons

List of Variables

  • title : This variable expects from the editor to assign to it the title of the Book.
  • book_image : This variable expects from the editor to assign to it the image of the Book. You must first upload an image using the upload file option of the toolbox available on the left column of the page. This option is visible if and only if you are logged in.
  • author : This variable expects from the editor to assign to it the author of the Book.
  • editor : This variable expects from the editor to assign to it the editor of the Book
  • publisger : This variable expects from the editor to assign to it the publisher of the Book
  • pages : This variable expects from the editor to assign to it the number of pages of the Book
  • isbn_13 : This variable expects from the editor to assign to it the isbn_13 of the Book. e.g 978-1461083207
  • isbn_10 : This variable expects from the editor to assign to it the isbn_10 of the Book. e.g 1461083206
  • lccn : This variable expects from the editor to assign to it the lccn of the Book. e.g 2011906993
  • bisac : This variable expects from the editor to assign to it the bisac of the Book. e.g Biography & Autobiography / Personal Memoirs
  • year : This variable expects from the editor to assign to it the year that the book was published.
  • link : This variable expects from the editor to assign to it the link of the Book.