Template:Infobox book
From Edge of Darkness Wiki
Infobox book
m |
m |
||
(13 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | {{Infobox | + | <includeonly>{{#set: Page has default form=Book Editor }}{{Infobox |
|name=Infobox book | |name=Infobox book | ||
Line 5: | Line 5: | ||
|bodystyle = margin-left: 10px; border-radius: 5px; border: 1px solid; | |bodystyle = margin-left: 10px; border-radius: 5px; border: 1px solid; | ||
- | {{#switch: {{ | + | {{#switch: {{{genre|}}} |
|Changeling=border-color: #006000; | |Changeling=border-color: #006000; | ||
|Hunter=border-color: #294a3f; | |Hunter=border-color: #294a3f; | ||
Line 17: | Line 17: | ||
|titlestyle = color: #ff9933; padding-top: 5px; border-top-right-radius: 5px; border-top-left-radius: 5px; border-left: 1px solid; border-right: 1px solid; border-top: 1px solid; | |titlestyle = color: #ff9933; padding-top: 5px; border-top-right-radius: 5px; border-top-left-radius: 5px; border-left: 1px solid; border-right: 1px solid; border-top: 1px solid; | ||
- | {{#switch: {{ | + | {{#switch: {{{genre|}}} |
|Changeling=background: #003300; border-color: #006000; | |Changeling=background: #003300; border-color: #006000; | ||
|Hunter=background: #0d1815; border-color: #294a3f; | |Hunter=background: #0d1815; border-color: #294a3f; | ||
Line 34: | Line 34: | ||
|labelstyle=background:inherit; white-space:nowrap; | |labelstyle=background:inherit; white-space:nowrap; | ||
- | |above= | + | |above= [[Venue::{{{genre|}}}]] {{#if: {{{series|}}}|[[Publisher ProductID::{{{series|}}}]]|}} |
- | + | ||
+ | |image= [[File:{{PAGENAME}}.jpg|200px|link=http://www.drivethrurpg.com/product/{{#show: {{PAGENAME}} |?DT ProductID# }}/?affiliate_id=290913|Cover]] | ||
|caption= {{{image_caption|}}} | |caption= {{{image_caption|}}} | ||
|label2= Original title | |label2= Original title | ||
|data2= {{#if:{{{title_orig|}}}|''{{{title_orig}}}''}} | |data2= {{#if:{{{title_orig|}}}|''{{{title_orig}}}''}} | ||
- | |label6= | + | |label6= |
- | |data6= | + | |data6= |
- | |label7= | + | |label7= |
- | |data7= | + | |data7= |
|label8= Series | |label8= Series | ||
- | |data8= | + | |data8= |
|label9= Subject(s) | |label9= Subject(s) | ||
|data9= {{{subject|}}} | |data9= {{{subject|}}} | ||
|label10= Genre(s) | |label10= Genre(s) | ||
- | |data10= | + | |data10= |
|label11= Publisher | |label11= Publisher | ||
|data11= {{{publisher|}}} | |data11= {{{publisher|}}} | ||
Line 59: | Line 60: | ||
|label15= Pages | |label15= Pages | ||
|data15= {{{pages|}}} | |data15= {{{pages|}}} | ||
- | + | ||
- | + | |label21= After | |
- | + | |data21= {{#if:{{{preceded_by|}}}|''[[Published After::{{{preceded_by}}}]]''}} | |
- | + | |label22= Before | |
- | + | |data22= {{#if:{{{followed_by|}}}|''[[Published Before::{{{followed_by|}}}]]''}} | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | |label21= | + | |
- | |data21= {{#if:{{{preceded_by|}}}|''{{{preceded_by}}}''}} | + | |
- | |label22= | + | |
- | |data22= {{#if:{{{followed_by|}}}|''{{{followed_by|}}}''}} | + | |
|label23= PDF | |label23= PDF | ||
- | |data23= {{#if:{{{drivethru|}}}|[http://www.drivethrurpg.com/product/{{{drivethru|}}}/?affiliate_id=290913 DriveThru]|}} | + | |data23= {{#if:{{{drivethru|}}}|[http://www.drivethrurpg.com/product/{{{drivethru|}}}/?affiliate_id=290913 DriveThru]{{#set:DT ProductID={{{drivethru|}}}}}|}} |
|label24= Hardback | |label24= Hardback | ||
- | |data24= {{#if:{{{amazon|}}}|[http://www.amazon.com/gp/product/{{{amazon|}}}/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN={{{amazon|}}}&linkCode=as2&tag=nwodorg-20&linkId=SAA5CMAQI3CRPHIP Amazon]|}} | + | |data24= {{#if:{{{amazon|}}}|[http://www.amazon.com/gp/product/{{{amazon|}}}/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN={{{amazon|}}}&linkCode=as2&tag=nwodorg-20&linkId=SAA5CMAQI3CRPHIP Amazon]{{#set:Amazon ProductID={{{amazon|}}}}}|}} |
+ | |||
+ | |||
+ | |label25= [[International Standard Book Number|ISBN]] | ||
+ | |data25 = {{#if:{{{isbn|{{{ISBN|}}}}}} | {{#iferror: {{#expr:{{{isbn|{{{ISBN}}}}}}}} | ||
+ | | {{{isbn|{{{ISBN}}}}}} | [[Special:Booksources/{{{isbn|{{{ISBN}}}}}}|{{{isbn|{{{ISBN}}}}}}]] }} }} | ||
|below = {{{below|}}} | |below = {{{below|}}} | ||
- | + | }}<div style="float: right; margin-left: 15px; ">[[File:DTR2.png|x100px|link=http://www.drivethrurpg.com/product/{{#show: {{PAGENAME}} |?DT ProductID# }}/?affiliate_id=290913]]</div>[[Category:{{{genre|}}} Books]][[Category:Books]]</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 19:47, 8 June 2016
[create] Template documentation
Editors can experiment in this template's sandbox (create). Subpages of this template: |