Template:Book: Difference between revisions

From Wydd's Wiki
(Removed word count until I figure out how to make optional fields)
(Fixed issue where absent prequel/sequel showed caused visual glitch)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
|title={{PAGENAME}}
|title={{#if:{{{prequel|}}}|<span style="float: left; ">[[{{{prev|{{{prequel}}}|}}}|<]]</span>}}{{PAGENAME}}{{#if:{{{sequel|}}} |<span style="float: right;">[[{{{next|{{{sequel}}}| }}}|>]]</span>}}
|image={{{cover}}}
|image={{{cover}}}
|caption={{{caption}}}
|caption={{{caption}}}
|header1=[[{{{series}}}]]
|label1=Follows
|label1=Follows
|data1={{{prequel}}}
|data1={{#if:{{{prequel|}}}|[[{{{prev|{{{prequel}}}|}}}]]}}
|label2=Precedes
|label2=Precedes
|data2={{{sequel}}}
|data2={{#if:{{{sequel|}}}|[[{{{prev|{{{sequel}}}|}}}]]}}
|label3=Setting
|label3=Setting
|data3={{{setting}}}
|data3={{{setting}}}
Line 12: Line 13:
|data4={{{release_date}}}
|data4={{{release_date}}}
}}
}}
<includeonly>
<includeonly>
[[Category:Book]]
[[Category:Book]]
[[Category:{{{series}}}]]
[[Category:{{{series}}}]]
</includeonly>
</includeonly><noinclude>
== Example ==
<pre>{{Book
|cover=[[File:AA1-Cover-eBook.jpg|200px]]
|caption=Cover by [[Daniel Kamarudin]]
|series=Arcane Ascension
|prequel=Sufficiently Advanced Magic
|sequel=On the Shoulders of Titans
|setting=[[Kaldwyn]]
|release_date=2017-02-26
}}</pre>
</noinclude>

Latest revision as of 23:29, 30 December 2021

Book
{{{cover}}}

{{{caption}}}

[[{{{series}}}]]
Setting {{{setting}}}
Released {{{release_date}}}

Example[edit]

{{Book
|cover=[[File:AA1-Cover-eBook.jpg|200px]]
|caption=Cover by [[Daniel Kamarudin]]
|series=Arcane Ascension
|prequel=Sufficiently Advanced Magic
|sequel=On the Shoulders of Titans
|setting=[[Kaldwyn]]
|release_date=2017-02-26
}}