Template:Infobox book: Difference between revisions

From Guild of Recappers & Podcasters
Jump to navigation Jump to search
en>Jonesey95
(add module parameter to allow embedding within this template)
 
(Changed ISBN link to point to Wikipedia (we don’t need an ISBN page here))
 
(3 intermediate revisions by the same user not shown)
Line 67: Line 67:
|  data13 = {{{release_number|}}}
|  data13 = {{{release_number|}}}


| label14 = Subject{{#if:{{{subjects|}}}|s}}
| label14 = Sub-series
|  data14 = {{{subjects|{{{subject|}}}}}}
|  data14 = {{{sub-series|}}}


| label15 = Genre{{#if:{{{genres|}}}|s}}
| label15 = Subject{{#if:{{{subjects|}}}|s}}
|  data15 = {{#invoke:Wikidata|getValue|P136|{{{genres|{{{genre|}}}}}}}}
|  data15 = {{{subjects|{{{subject|}}}}}}


| label16 = Set in
| label16 = Genre{{#if:{{{genres|}}}|s}}
|  data16 = {{{set_in|}}}
|  data16 = {{#invoke:Wikidata|getValue|P136|{{{genres|{{{genre|}}}}}}}}


| label17 = Published
| label17 = Set in
|  data17 = {{{published|}}}
|  data17 = {{{set_in|}}}


| label18 = Publisher
| label18 = Published
|  data18 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}
|  data18 = {{{published|}}}


| label19 = {{longitem|Publication date}}
| label19 = Publisher
|  data19 = {{#invoke:Wikidata|getValue|P577|{{{pub_date|{{{release_date|}}}}}}}}
|  data19 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}


| label20 = {{longitem|Published in English}}
| label20 = {{longitem|Publication date}}
|  data20 = {{{english_pub_date|{{{english_release_date|}}}}}}
|  data20 = {{#invoke:Wikidata|getValue|P577|{{{pub_date|{{{release_date|}}}}}}}}


| label21 = Media type
| label21 = {{longitem|Published in English}}
|  data21 = {{{media_type|}}}
|  data21 = {{{english_pub_date|{{{english_release_date|}}}}}}


| label22 = Pages
| label22 = Media type
|  data22 = {{#invoke:Wikidata|getValue|P1104|{{{pages|}}}}}
|  data22 = {{{media_type|}}}


| label23 = Award{{#if:{{{awards|}}}|s}}
| label23 = Pages
|  data23 = {{{awards|{{{award|}}}}}}
|  data23 = {{#invoke:Wikidata|getValue|P1104|{{{pages|}}}}}


| label30 = [[ISBN (identifier)|ISBN]]
| label24 = Award{{#if:{{{awards|}}}|s}}
|  data24 = {{{awards|{{{award|}}}}}}
 
| label30 = [[wikipedia:ISBN (identifier)|ISBN]]
|  data30 = {{#if:{{{isbn|{{{ISBN|}}}}}}
|  data30 = {{#if:{{{isbn|{{{ISBN|}}}}}}
             | {{#ifeq:{{{isbn|{{{ISBN|}}}}}}|FETCH_WIKIDATA
             | {{#ifeq:{{{isbn|{{{ISBN|}}}}}}|FETCH_WIKIDATA
Line 115: Line 118:


| label34 = Preceded by
| label34 = Preceded by
|  data34 = {{#if:{{{preceded_by|}}} |''{{{preceded_by|}}} ''
|  data34 = {{#if:{{{preceded_by|}}} |{{{preceded_by|}}} 
             | {{#if:{{{preceded_by_quotation_marks|}}} |"{{{preceded_by_quotation_marks|}}}"}}
             | {{#if:{{{preceded_by_quotation_marks|}}} |"{{{preceded_by_quotation_marks|}}}"}}
             }}
             }}


| label35 = Followed by
| label35 = Followed by
|  data35 = {{#if:{{{followed_by|}}} |''{{{followed_by|}}} ''
|  data35 = {{#if:{{{followed_by|}}} |{{{followed_by|}}} 
             | {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
             | {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
             }}
             }}
Line 159: Line 162:
| below = {{{notes|{{{note|}}}}}}
| below = {{{notes|{{{note|}}}}}}


}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox book with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox book]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | audio_read_by | author | authors | award | awards | border | caption | congress | country | cover_artist | dewey | editor | editors | english_pub_date | english_release_date | exclude_cover | external_host | external_url | first | followed_by | followed_by_quotation_marks | genre | genres | homepage | illustrator | illustrators | image | image_caption | image_size | infoboxwidth | isbn | ISBN  | isbn_note | ISBN_note | italic title | language | last | location | media_type | module | name | native_external_host | native_external_url | native_wikisource | nocat_wdimage | note | notes | oclc | orig_lang_code | pages | preceded_by | preceded_by_quotation_marks | pub_date | published | publisher | publisher2 | release_date | release_number | series | set_in | subject | subjects | title_orig | title_working | translator | translators | URL | website | width | wikisource  
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox book with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox book]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | audio_read_by | author | authors | award | awards | border | caption | congress | country | cover_artist | dewey | editor | editors | english_pub_date | english_release_date | exclude_cover | external_host | external_url | first | followed_by | followed_by_quotation_marks | genre | genres | homepage | illustrator | illustrators | image | image_caption | image_size | infoboxwidth | isbn | ISBN  | isbn_note | ISBN_note | italic title | language | last | location | media_type | module | name | native_external_host | native_external_url | native_wikisource | nocat_wdimage | note | notes | oclc | orig_lang_code | pages | preceded_by | preceded_by_quotation_marks | pub_date | published | publisher | publisher2 | release_date | release_number | series | set_in | sub-series | subject | subjects | title_orig | title_working | translator | translators | URL | website | width | wikisource  
}}{{Wikidata image |1={{{image|}}} |2={{{nocat_wdimage|}}}  
}}{{Wikidata image |1={{{image|}}} |2={{{nocat_wdimage|}}}  
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 20:04, 19 November 2023