Template:Book: Difference between revisions
mNo edit summary |
m Renamed parameters. |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
-->{{#if: {{{author|}}} |<tr class="infobox-data-row"><th>Author</th><td>{{{author}}}</td></tr>}}<!-- | -->{{#if: {{{author|}}} |<tr class="infobox-data-row"><th>Author</th><td>{{{author}}}</td></tr>}}<!-- | ||
-->{{#if: {{{cover_artist|}}} |<tr class="infobox-data-row"><th>Cover Artist</th><td>{{{cover_artist}}}</td></tr>}}<!-- | -->{{#if: {{{cover_artist|}}} |<tr class="infobox-data-row"><th>Cover Artist</th><td>{{{cover_artist}}}</td></tr>}}<!-- | ||
-->{{#if: {{{series|}}} | <tr class="infobox-data-row"><th>Series</th><td>{{#if:{{b|{{{series}}}}} | ''[[{{b|{{{series}}}}}|{{b|{{{series}}}|text=y}}]]'' | {{{series}}}}}</td></tr>}}<!-- | -->{{#if: {{{series|}}} | <tr class="infobox-data-row"><th>Series</th><td>{{#if:{{b|{{{series}}}}} | ''[[{{b|{{{series}}}}}|{{b|{{{series}}}|text=y}}]]'' | {{{series}}}}}</td></tr>}}<!-- | ||
-->{{#if: {{{period_covered|}}} |<tr class="infobox-data-row"><th>Period Covered</th><td>{{{period_covered}}}</td></tr>}}<!-- | -->{{#if: {{{period_covered|}}} |<tr class="infobox-data-row"><th>Period Covered</th><td>{{{period_covered}}}</td></tr>}}<!-- | ||
| Line 14: | Line 13: | ||
-->{{#if: {{{media_type|}}} |<tr class="infobox-data-row"><th>Media Type</th><td>{{{media_type}}}</td></tr>}}<!-- | -->{{#if: {{{media_type|}}} |<tr class="infobox-data-row"><th>Media Type</th><td>{{{media_type}}}</td></tr>}}<!-- | ||
-->{{#if: {{{pages|}}} |<tr class="infobox-data-row"><th>Pages</th><td>{{{pages}}}</td></tr>}}<!-- | -->{{#if: {{{pages|}}} |<tr class="infobox-data-row"><th>Pages</th><td>{{{pages}}}</td></tr>}}<!-- | ||
-->{{#if: {{{word_count|}}} |<tr class="infobox-data-row"><th>Word Count</th><td>{{{word_count}}}</td></tr>}}<!-- | |||
-->{{#if: {{{audiobook_length|}}} |<tr class="infobox-data-row"><th>Audiobook Length</th><td>{{{audiobook_length}}}</td></tr>}}<!-- | |||
-->{{#if: {{{narrated_by|}}} |<tr class="infobox-data-row"><th>Narrated By</th><td>{{{narrated_by}}}</td></tr>}}<!-- | |||
-->{{#if: {{{genre|}}} |<tr class="infobox-data-row"><th>Genre</th><td>{{{genre}}}</td></tr>}}<!-- | -->{{#if: {{{genre|}}} |<tr class="infobox-data-row"><th>Genre</th><td>{{{genre}}}</td></tr>}}<!-- | ||
-->{{#if: {{{isbn|}}} |<tr class="infobox-data-row"><th>ISBN</th><td>{{{isbn}}}</td></tr>}}<!-- | -->{{#if: {{{isbn|}}} |<tr class="infobox-data-row"><th>ISBN</th><td>{{{isbn}}}</td></tr>}}<!-- | ||
| Line 21: | Line 23: | ||
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Books]]}}</includeonly><noinclude> | -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Books]]}}</includeonly><noinclude> | ||
== Description == | == Description == | ||
This template should be used on book pages to add an infobox in the upper right hand corner the article. | This template should be used on book pages to add an infobox in the upper right hand corner of the article. | ||
== Usage == | == Usage == | ||
This template has several [[:Template:Character#Parameters|parameters]] that can be used. | This template has several [[:Template:Character#Parameters|parameters]] that can be used. | ||
: '''Note: Only parameters that are provided will appear in the infobox. Not all parameters are required for each | : '''Note: Only parameters that are provided will appear in the infobox. Not all parameters are required for each book.''' | ||
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | {| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | ||
| Line 32: | Line 34: | ||
!You Get | !You Get | ||
|- | |- | ||
| style="text-align: left | | style="text-align: left; vertical-align: top;" |<pre> | ||
{{book | {{book | ||
|name=Example Book Infobox | |name=Example Book Infobox | ||
| Line 39: | Line 41: | ||
|author=Author's Name | |author=Author's Name | ||
|cover_artist=Artist's Name | |cover_artist=Artist's Name | ||
|series=Series Name | |series=Series Name | ||
|period covered=Time Period | |period covered=Time Period | ||
| Line 47: | Line 48: | ||
|media_type=Format Here | |media_type=Format Here | ||
|pages=Number of Pages | |pages=Number of Pages | ||
|word_count=Word Count | |||
|audiobook_length=Length of Audiobook | |||
|narrated_by=Reader's Name(s) | |||
|genre=Genre Here | |genre=Genre Here | ||
|isbn=ISBN Here | |isbn=ISBN Here | ||
| Line 53: | Line 57: | ||
}} | }} | ||
</pre> | </pre> | ||
|<br>{{book | |||
|name=Example Book Infobox | |name=Example Book Infobox | ||
|image=Emma - Volume 1.jpg | |image=Emma - Volume 1.jpg | ||
| Line 59: | Line 63: | ||
|author=Author's Name | |author=Author's Name | ||
|cover_artist=Artist's Name | |cover_artist=Artist's Name | ||
|series=Series Title | |series=Series Title | ||
|period covered=Time Period | |period covered=Time Period | ||
| Line 67: | Line 70: | ||
|media_type=Format Here | |media_type=Format Here | ||
|pages=Number of Pages | |pages=Number of Pages | ||
|word_count=Word Count | |||
|audiobook_length=Length of Audiobook | |||
|narrated_by=Reader's Name(s) | |||
|genre=Genre Here | |genre=Genre Here | ||
|isbn=ISBN Here | |isbn=ISBN Here | ||
| Line 75: | Line 81: | ||
=== Parameters === | === Parameters === | ||
{| class="wikitable" style="width: | {| class="wikitable" style="width: 90%;" | ||
! Parameter !! Description | ! Parameter !! Description | ||
|- | |- | ||
| Line 101: | Line 107: | ||
|- | |- | ||
| style="text-align: center;" | <code>pages</code> || The number of pages in the first edition. | | style="text-align: center;" | <code>pages</code> || The number of pages in the first edition. | ||
|- | |||
| style="text-align: center;" | <code>word_count</code> || The number of words in the first edition. | |||
|- | |||
| style="text-align: center;" | <code>audio_length</code> || The length of the audiobook of the first edition. | |||
|- | |- | ||
| style="text-align: center;" | <code>genre</code> || The genre of the book. | | style="text-align: center;" | <code>genre</code> || The genre of the book. | ||
| Line 112: | Line 122: | ||
== Articles using Template == | == Articles using Template == | ||
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}} | |||
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}} | {{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}} | ||
[[Category:Infoboxes]] | [[Category:Infoboxes]] | ||