Actions

Template

Infobox book: Difference between revisions

From The Canon of Nora Wiki

mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>{| class="infobox" style="width: 300px; font-size: 90%; float: right; clear: right; margin: 0 0 2em 4em;"
<noinclude>
{{#cargo_declare:
_table=Books
|Title=String
|Author=String
|Pseudonym=String
|Publisher=String
|PublicationDate=String
|FormatCode=String
|ISBN10=String
|ISBN13=String
|Series=String
|BookNumber=String
|PrecededBy=String
|FollowedBy=String
|Cover=String
|Locations=List (,) of Page
}}
</noinclude><includeonly>
{{#cargo_store:
_table=Books
|Title={{{title|{{PAGENAME}}}}}
|Author={{{author|Nora Roberts}}}
|Pseudonym={{{pseudonym|}}}
|Publisher={{{publisher|}}}
|PublicationDate={{{pub_date|}}}
|FormatCode={{{format_code|}}}
|ISBN10={{{isbn10|}}}
|ISBN13={{{isbn13|}}}
|Series={{{series|Standalone}}}
|BookNumber={{{book_number|}}}
|PrecededBy={{{preceded_by|}}}
|FollowedBy={{{followed_by|}}}
|Cover={{{cover|}}}
|Locations={{{locations|}}}
}}
 
{| class="infobox" style="width: 300px; font-size: 90%; float: right; clear: right; margin: 0 0 2em 4em;"
|-
|-
! colspan="2" style="text-align:center; font-size: 150%;" | {{{title|{{PAGENAME}}}}}
! colspan="2" style="text-align:center; font-size: 150%;" | {{{title|{{PAGENAME}}}}}
Line 32: Line 69:
|}
|}
[[Category:Books]]{{#if:{{{series|}}}|[[Category:{{{series}}}]]}}{{#if:{{{pseudonym|}}}|[[Category:{{{pseudonym}}}]]}}</includeonly><noinclude>
[[Category:Books]]{{#if:{{{series|}}}|[[Category:{{{series}}}]]}}{{#if:{{{pseudonym|}}}|[[Category:{{{pseudonym}}}]]}}</includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
Line 48: Line 86:
| preceded_by  =  
| preceded_by  =  
| followed_by  = Glory in Death
| followed_by  = Glory in Death
| locations    = New York City,The Towers
}}
}}
</pre>
</pre>
This template requires the **ParserFunctions** extension (for the `{{#if:}}`
 
auto-categorization). It's a commonly installed extension, but if it's not
enabled on your wiki, just delete the two `{{#if:...}}` category lines and
add `[[Category:...]]` manually on each page instead.
</noinclude>
</noinclude>

Revision as of 05:07, 25 June 2026

This template defines the table "Books". View table.


Usage

{{Infobox book
| title        = Naked in Death
| cover        = Naked_in_Death_cover.jpg
| author       = Nora Roberts
| pseudonym    = J.D. Robb
| publisher    = Berkley
| pub_date     = July 1995
| format_code  = Berkley mm
| isbn10       = 0425147973
| isbn13       = 9780425147974
| series       = In Death
| book_number  = 1
| preceded_by  = 
| followed_by  = Glory in Death
| locations    = New York City,The Towers
}}