Template:Book: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
m Protected "Template:Book" [edit=autoconfirmed:move=autoconfirmed]
Confocal (talk | contribs)
Type of literature → Type
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox"
<table class="infobox">
|-
<tr>
| colspan="2" class="infobox_head" | {{{name|Book/Article Name}}}
<th colspan="2" class="infobox_head">{{{name|Book/Article Name}}}</th>
{{#ifeq: {{{image|}}} | true |
{{#ifeq: {{{image|}}} | true | <tr>
{{!}}-
<td colspan="2" class="infobox_img"><table class="img_border" cellpadding="0"><tr><td>[[Image:{{{iname|{{{name}}}}}}.png|200x220px|{{{name|Book/Article}}} image]]</td></tr></table></td></tr> }}
{{!}} colspan="2" class="infobox_img" {{!}} <table class="img_border" cellpadding="0"><tr><td>[[Image:{{{name}}}.png|200x220px|{{{name|Book/Article}}} image]]</td></tr></table> }}
<tr>
|-
<th> Type </th>
! Type of literature
<td> {{#if: {{{type|}}} | {{{type}}} | Unknown }} </td>
| {{#if: {{{type|}}} | {{{type}}} | Unknown }}
</tr><tr>
|-
<th> Author(s) </th>
! Authors
<td> {{#if: {{{authors|}}} | {{{authors}}} | Unknown }} </td>
| {{#if: {{{authors|}}} | {{{authors}}} | Unknown }}
{{#if: {{{isbn|}}} | <tr>
{{#if: {{{isbn|}}} | {{!}}-
<th> ISBN </th>
! ISBN
<td> {{{isbn}}} </td>
{{!}} {{{isbn}}} }}
</tr> }}{{#if: {{{link|}}} | <tr>
|}
<th> Link </th>
<td> [{{{link}}} here] </td>
</tr> }}
</table>
<noinclude>
<noinclude>
The template is an infobox template for describing books and articles related to [[Conway's Game of Life]].
The template is an infobox template for describing books and articles related to [[Conway's Game of Life]].
Line 27: Line 30:
|'''image'''
|'''image'''
|(should have the value ''true'' only if the image exists)
|(should have the value ''true'' only if the image exists)
|-
|'''iname'''
|(Image name; PNG is automatically appended. If left out, '''name''' is used)
|-
|-
|'''authors'''
|'''authors'''
Line 36: Line 42:
|'''type'''
|'''type'''
|(The type of literature that the page is about (e.g., type=Book or type=Article))
|(The type of literature that the page is about (e.g., type=Book or type=Article))
|-
|'''link'''
|(A URL where the book/article can be read or bought.)
|}
|}
Do '''not''' include any information that you do not know when using this template! If there is missing information that you would like to add, discuss it on the talk page and try to find references to the information.
Do '''not''' include any information that you do not know when using this template! If there is missing information that you would like to add, discuss it on the talk page and try to find references to the information.
</noinclude><includeonly>[[Category:Everything else]][[Category:Software]]</includeonly>
[[Category:Infobox templates]]</noinclude><includeonly>[[Category:Everything else]][[Category:Books and articles]]</includeonly>

Latest revision as of 21:52, 10 December 2022

Book/Article Name
Type Unknown
Author(s) Unknown

The template is an infobox template for describing books and articles related to Conway's Game of Life.

Images should have the same name (case sensitive) as the book/article they are of and must be in the .png file format. The image should be of the cover of the book or a representative page of the article. For the image to be included on the page the "image" parameter must be set to "true".

This template takes parameters:

name (Book/article name) Required
image (should have the value true only if the image exists)
iname (Image name; PNG is automatically appended. If left out, name is used)
authors (The authors of the book/article)
isbn (The ISBN of the book, if applicable)
type (The type of literature that the page is about (e.g., type=Book or type=Article))
link (A URL where the book/article can be read or bought.)

Do not include any information that you do not know when using this template! If there is missing information that you would like to add, discuss it on the talk page and try to find references to the information.