Editing Template:Infobox book

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 1: Line 1:
{{ #vardefine: $pagename | {{Normalized pagename|{{PAGENAME}}}}
+
{{
}}{{ #if: {{ #vardefineecho: $italicize_title | {{ #switch: {{ lc: {{{italic_title}}} }} | no | none | off | false | 0 = | #default = yes }} }}
+
  #if: {{{non-italic_title|}}}
| {{ #if: {{{italic_title|}}}
+
  | [[Category:Pages using the "non-italic_title" parameter]]{{
  | {{Italic title|{{{italic_title}}}}}
+
    #ifeq: {{ #replace: {{{name}}} | '' }} | {{Normalized pagename}}
  | {{ #if: {{ #pos: {{{name}}} | '' }}
+
    | {{Italic title|{{{name}}}|t=1}}
     | {{ #ifeq: {{ #replace: {{{name}}} | '' }} | {{ #var: $pagename }}
+
     | {{
       | {{Italic title|{{{name}}}|t=1}}
+
      #if: {{{italic_title|}}}
 +
       | {{Italic title|{{{italic_title}}}}}
 
       | {{Italic title|t=1}}
 
       | {{Italic title|t=1}}
      }}
 
    | {{Italic title|t=1}}
 
 
     }}
 
     }}
 
   }}
 
   }}
}}{{ #vardefine: $pagename | {{ #explode: {{ #var: $pagename }} | ( }}
+
  | {{
 +
    #if: {{{italic_title|}}}
 +
    | {{Italic title|{{{italic_title}}}}}
 +
  }}
 
}}{{Infobox
 
}}{{Infobox
| above        = {{ #if: {{{name|}}} | {{{name}}} | {{ #var: $pagename }} }}
+
| above        = {{ #if: {{{name|}}} | {{{name}}} | {{ #explode: {{PAGENAME}} | ( }} }}
| image        = {{ #if: {{{image<includeonly>|</includeonly>}}} | [[File:{{PAGENAME:{{{image}}}}}|{{ #vardefine: $width | {{ #ifexpr: {{ #imgw: {{{image}}} }} < 257 | {{ #imgw: {{{image}}} }} | 257 }} }}{{ #iferror: {{ #ifexpr: {{{width}}} < 257 | {{ #ifexpr: {{{width}}} < {{ #var: $width }} | {{{width}}} | {{ #var: $width }} }} | {{ #var: $width }} }} | {{ #var: $width }} }}px|{{ #if: {{{caption<includeonly>|</includeonly>}}} | {{{caption}}} | {{ #if: {{{name|}}} | {{{name}}} | {{ #var: $pagename }} }} }}]] }}
+
| image        = {{ #if: {{{image<includeonly>|</includeonly>}}} | [[File:{{{image}}}|{{ #if: {{{width|}}} | {{ #iferror: +{{{width}}} | 229 | {{ #ifexpr: {{{width}}} < 229 | {{{width}}} | 229 }} }} | 229 }}px|{{ #if: {{{caption<includeonly>|</includeonly>}}} | {{{caption}}} | {{ #if: {{{name|}}} | {{{name}}} | {{ #explode: {{PAGENAME}} | ( }} }} }}]] }}
  
| abovestyle  = {{ #if: {{ #var: $italicize_title }}{{ #pos: {{{name}}} | '' }} || font-style: italic; }}
+
| abovestyle  = {{ #if: {{{non-italic_title|}}}{{ #pos: {{{name}}} | '' }} || font-style: italic; }}
| bodyclass    = plainlist
+
| bodyclass    = list-noicon
| labelstyle  = vertical-align: middle; background-color: #DDF;
+
| labelstyle  = vertical-align: middle; background: #DDF;
| headerstyle  = background-color: #CCF;
+
| headerstyle  = background: #CCF;
  
| data1        = {{ #if: {{{en_name<includeonly>|</includeonly>}}}{{{name|}}}{{{fr_name|}}}{{{de_name|}}}{{{it_name|}}}{{{pt_name|}}}{{{es_name|}}}<!--
+
| data1        = {{Infobox
                      -->{{{ja_name|}}}{{{romaji_name|}}}{{{ja_trans_name|}}}{{{ko_name|}}}{{{hanja_name|}}}{{{ko_rr_name|}}}{{{ko_trans_name|}}}
+
   | child        = yes
   | {{Infobox
+
  | headerstyle  = background: #CCF;
    | child        = yes
+
  | labelstyle  = vertical-align: middle; background: #DDF;
    | headerstyle  = background-color: #CCF;
 
    | labelstyle  = vertical-align: middle; background-color: #DDF;
 
  
    | header1      = Names
+
  | header1      = Names
  
    | label2      = English
+
  | label2      = {{nowrap|{{flag|United Kingdom}} English}}
    | data2        = {{ #if: {{{en_name<includeonly>|</includeonly>}}}
+
  | data2        = {{
      | ''{{{en_name}}}''[[English name::{{{en_name}}}| ]]
+
    #if: {{{en_name<includeonly>|</includeonly>}}}
      | {{ #if: {{{name|}}}
+
    |
        | {{{name}}}[[English name::{{ #replace: {{{name}}} | '' }}| ]]
+
* ''[[English name::{{{en_name}}}]]''
        | ''{{ #var: $pagename }}''[[English name::{{ #var: $pagename }}| ]]
+
    | {{
      }}
+
      #if: {{{name|}}}
 +
      | {{{name}}}[[English name::{{ #replace: {{{name}}} | '' }}| ]]
 +
      | ''[[English name::{{ #explode: {{PAGENAME}} | ( }}]]''
 
     }}
 
     }}
 +
  }}
  
    | label3      = French
+
  | label3      = {{nowrap|{{flag|France}} French}}
    | data3        = {{ #if: {{{fr_name<includeonly>|</includeonly>}}} | ''<span lang="fr">{{{fr_name}}}</span>''[[French name::{{{fr_name}}}| ]] }}
+
  | data3        = {{ #if: {{{fr_name<includeonly>|</includeonly>}}} | ''<span lang="fr">[[French name::{{{fr_name}}}]]</span>'' }}
  
    | label4      = German
+
  | label4      = {{nowrap|{{flag|Germany}} German}}
    | data4        = {{ #if: {{{de_name<includeonly>|</includeonly>}}} | ''<span lang="de">{{{de_name}}}</span>''[[German name::{{{de_name}}}| ]] }}
+
  | data4        = {{ #if: {{{de_name<includeonly>|</includeonly>}}} | ''<span lang="de">[[German name::{{{de_name}}}]]</span>'' }}
  
    | label5      = Italian
+
  | label5      = {{nowrap|{{flag|Italy}} Italian}}
    | data5        = {{ #if: {{{it_name<includeonly>|</includeonly>}}} | ''<span lang="it">{{{it_name}}}</span>''[[Italian name::{{{it_name}}}| ]] }}
+
  | data5        = {{ #if: {{{it_name<includeonly>|</includeonly>}}} | ''<span lang="it">[[Italian name::{{{it_name}}}]]</span>'' }}
  
    | label6      = Portuguese
+
  | label6      = {{nowrap|{{flag|Portugal}} Portuguese}}
    | data6        = {{ #if: {{{pt_name<includeonly>|</includeonly>}}} | ''<span lang="pt">{{{pt_name}}}</span>''[[Portuguese name::{{{pt_name}}}| ]] }}
+
  | data6        = {{ #if: {{{pt_name<includeonly>|</includeonly>}}} | ''<span lang="pt">[[Portuguese name::{{{pt_name}}}]]</span>'' }}
  
    | label7      = Spanish
+
  | label7      = {{nowrap|{{flag|Spain}} Spanish}}
    | data7        = {{ #if: {{{es_name<includeonly>|</includeonly>}}} | ''<span lang="es">{{{es_name}}}</span>''[[Spanish name::{{{es_name}}}| ]] }}
+
  | data7        = {{ #if: {{{es_name<includeonly>|</includeonly>}}} | ''<span lang="es">[[Spanish name::{{{es_name}}}]]</span>'' }}
  
    | data8        = {{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{{romaji_name|}}}{{{ja_trans_name|}}}
+
  | data8        = {{Infobox
       | {{Infobox Japanese name|ja_name={{{ja_name<includeonly>|</includeonly>}}}|romaji_name={{{romaji_name<includeonly>|</includeonly>}}}|ja_trans_name={{{ja_trans_name<includeonly>|</includeonly>}}}|short_header=y|headerstyle=text-align: center; background-color: #ddf;}}
+
    | child        = yes
 +
    | headerstyle  = background: #DDF;
 +
    | labelstyle  = background: #EEF;
 +
 
 +
    | header1      = {{ #if: {{{ja_name<includeonly>|</includeonly>}}} | {{flag|Japan}}&nbsp;Japanese }}
 +
 
 +
    | label2      = {{ #ifeq: <includeonly>{{{ja_name}}}</includeonly> | {{Ruby/split|{{{ja_name}}}}} | Japanese | Kanji and furigana }}
 +
    | data2        = {{ #if: {{{ja_name|}}} | <span lang="ja">{{ #ifeq: <includeonly>{{{ja_name}}}</includeonly> | {{Ruby/split|{{{ja_name}}}}} | [[Japanese name::{{{ja_name}}}]] | {{{ja_name}}} }}</span> }}
 +
 
 +
    | label3       = Kanji
 +
    | data3        = {{ #ifeq: <includeonly>{{{ja_name}}}</includeonly> | {{Ruby/split|{{{ja_name}}}}} || <span lang="ja-Jpan">[[Japanese name::{{Ruby/split|{{{ja_name}}}}}]]</span> }}
 +
 
 +
    | label4      = Furigana
 +
    | data4        = {{ #ifeq: <includeonly>{{{ja_name}}}</includeonly> | {{Ruby/split|{{{ja_name}}}}} || <span lang="ja-Hrkt">{{Ruby/split|{{{ja_name}}}|top}}</span> }}
 +
 
 +
    | label5      = Rōmaji
 +
    | data5        = {{ #if: {{{romaji_name<includeonly>|</includeonly>}}} | ''<span lang="ja-Latn-hepburn">[[Romaji name::{{{romaji_name}}}]]</span>'' }}
 +
 
 +
    | label6      = Translated
 +
    | data6      = {{ #if: {{{ja_trans_name<includeonly>|</includeonly>}}} | ''[[Japanese translated name::{{{ja_trans_name}}}]]'' }}
 
     }}
 
     }}
  
    | data9        = {{ #if: {{{ko_name<includeonly>|</includeonly>}}}{{{hanja_name|}}}{{{ko_rr_name|}}}{{{ko_trans_name|}}}
+
  | data9        = {{Infobox
      | {{Infobox
+
    | child        = yes
        | child        = yes
+
    | headerstyle  = background: #DDF;
        | headerstyle  = background-color: #DDF;
+
    | labelstyle  = background: #EEF;
        | labelstyle  = background-color: #EEF;
 
  
        | header1      = {{ #if: {{{ko_name<includeonly>|</includeonly>}}} | Korean }}
+
    | header1      = {{ #if: {{{ko_name<includeonly>|</includeonly>}}} | {{flag|South Korea}}&nbsp;Korean }}
  
        | label2      = Korean
+
    | label2      = Korean
        | data2        = {{ #if: {{{ko_name<includeonly>|</includeonly>}}} | <span lang="ko">{{{ko_name}}}</span>[[Korean name::{{{ko_name}}}| ]] }}
+
    | data2        = {{ #if: {{{ko_name<includeonly>|</includeonly>}}} | <span lang="ko">[[Korean name::{{{ko_name}}}]]</span> }}
  
        | label3      = Base text
+
    | label3      = Base text
        | data3        = {{ #if: {{Ruby/detect|{{{ko_name}}}<noinclude><ruby/></noinclude>}} | <span lang="ko">{{Ruby/split|{{{ko_name}}}|lang=ko}}</span> }}
+
    | data3        = {{ #ifeq: <includeonly>{{{ko_name}}}</includeonly> | {{Ruby/split|{{{ko_name}}}}} || <span lang="ko">{{Ruby/split|{{{ko_name}}}}}</span> }}
  
        | label4      = Hangul
+
    | label4      = Hangul
        | data4        = {{ #if: {{Ruby/detect|{{{ko_name}}}<noinclude><ruby/></noinclude>}} | <span lang="ko-Hang">{{Ruby/split|{{{ko_name}}}|top|lang=ko}}</span> }}
+
    | data4        = {{ #ifeq: <includeonly>{{{ko_name}}}</includeonly> | {{Ruby/split|{{{ko_name}}}}} || <span lang="ko-Hang">{{Ruby/split|{{{ko_name}}}|top}}</span> }}
  
        | label5      = Hanja
+
    | label5      = Hanja
        | data5        = {{ #if: {{{hanja_name<includeonly>|</includeonly>}}} | <span lang="ko-Hani">{{{hanja_name}}}</span>[[Hanja name::{{{hanja_name}}}| ]] }}
+
    | data5        = {{ #if: {{{hanja_name<includeonly>|</includeonly>}}} | <span lang="ko-Hani">[[Hanja name::{{{hanja_name}}}]]</span> }}
  
        | label6      = Revised Romanization
+
    | label6      = Revised Romanization
        | data6        = {{ #if: {{{ko_rr_name<includeonly>|</includeonly>}}} | ''<span lang="ko-Latn">{{{ko_rr_name}}}</span>''[[Korean Revised Romanization name::{{{ko_rr_name}}}| ]] }}
+
    | data6        = {{ #if: {{{ko_rr_name<includeonly>|</includeonly>}}} | ''<span lang="ko-Latn">[[Korean Revised Romanization name::{{{ko_rr_name}}}]]</span>'' }}
  
        | label7      = Translated
+
    | label7      = Translated
        | data7        = {{ #if: {{{ko_trans_name<includeonly>|</includeonly>}}} | ''{{{ko_trans_name}}}''[[Translated Korean name::{{{ko_trans_name}}}| ]] }}
+
    | data7        = {{ #if: {{{ko_trans_name<includeonly>|</includeonly>}}} | ''[[Korean translated name::{{{ko_trans_name}}}]]'' }}
        }}
 
      }}
 
 
     }}
 
     }}
 
   }}
 
   }}
  
| data2        = {{ #if: {{{language<includeonly>|</includeonly>}}}{{{author|}}}{{{illustrator|}}}{{{publisher|}}}{{{release_date|}}}<!--
+
| data2        = {{Infobox
                      -->{{{ja_release_date|}}}{{{en_release_date|}}}{{{isbn|}}}{{{isbn-13|}}}{{{length|}}}{{{price|}}}
+
   | child        = yes
   | {{Infobox
+
  | headerstyle  = background: #CCF;
    | child        = yes
+
  | labelstyle  = vertical-align: middle; background: #DDF;
    | headerstyle  = background-color: #CCF;
 
    | labelstyle  = vertical-align: middle; background-color: #DDF;
 
  
    | header1      = Book information
+
  | header1      = Book information
  
    | label2      = Language
+
  | label2      = Language
    | data2        = {{{language<includeonly>|</includeonly>}}}
+
  | data2        = {{{language<includeonly>|</includeonly>}}}
  
    | label3      = Author
+
  | label3      = Author
    | data3        = {{{author<includeonly>|</includeonly>}}}
+
  | data3        = {{{author<includeonly>|</includeonly>}}}
  
    | label4      = Illustrator
+
  | label4      = Illustrator
    | data4        = {{{illustrator<includeonly>|</includeonly>}}}
+
  | data4        = {{{illustrator<includeonly>|</includeonly>}}}
  
    | label5      = Publisher
+
  | label5      = Publisher
    | data5        = {{{publisher<includeonly>|</includeonly>}}}
+
  | data5        = {{{publisher<includeonly>|</includeonly>}}}
  
    | label6      = Release date
+
  | label6      = Release date
    | data6        = {{ #if: {{{release_date<includeonly>|</includeonly>}}} |
+
  | data6        = {{{release_date<includeonly>|</includeonly>}}}<!-- this'll need to handle multiple releases, including by region, if we're to use this for e.g. manga volumes -->
* {{{release_date}}}
 
      }}{{ #if: {{{ja_release_date<includeonly>|</includeonly>}}} |
 
* {{{ja_release_date}}} (<abbr title="Japanese">ja</abbr>)
 
      }}{{ #if: {{{en_release_date<includeonly>|</includeonly>}}} |
 
* {{{en_release_date}}} (<abbr title="English">en</abbr>)
 
      }}
 
  
    | label7      = ISBN
+
  | label7      = ISBN
    | data7        = {{ #if: {{{isbn|}}}
+
  | data7        = {{ #if: {{{isbn<includeonly>|</includeonly>}}}
      | {{IfSemantics
+
    | {{IfSemantics
        | {{ #arraymap: {{{isbn}}}
+
      | {{ #arraymap: {{{isbn}}}
          |*
+
        |*
          |$isbn
+
        |$isbn
          |* [[ISBN::$isbn| ]] {{ISBN|$isbn|plainlink=yes}}
+
        |* [[ISBN::$isbn| ]] [[Special:BookSources/$isbn|$isbn]]
          |\n
+
        |\n
          }}
 
        | {{ISBN|{{{isbn}}}|plainlink=yes}}
 
 
         }}
 
         }}
       }}<noinclude>{{{isbn}}}</noinclude>
+
       | {{{isbn}}}
 +
      }}
 +
    }}
  
    | label8      = ISBN-13
+
  | label8      = ISBN-13
    | data8        = {{ #if: {{{isbn-13|}}}
+
  | data8        = {{ #if: {{{isbn-13<includeonly>|</includeonly>}}}
      | {{IfSemantics
+
    | {{IfSemantics
        | {{ #arraymap: {{{isbn-13}}}
+
      | {{ #arraymap: {{{isbn-13}}}
          |*
+
        |*
          |$isbn13
+
        |$isbn13
          |* [[ISBN-13::$isbn13| ]] {{ISBN|$isbn13|plainlink=yes}}
+
        |* [[ISBN-13::$isbn13| ]] [[Special:BookSources/$isbn13|$isbn13]]
          |\n
+
        |\n
          }}
 
        | {{ISBN|{{{isbn-13}}}|plainlink=yes}}
 
 
         }}
 
         }}
       }}<noinclude>{{{isbn-13}}}</noinclude>
+
       | {{{isbn-13}}}
 +
      }}
 +
    }}
  
    | label9      = Length
+
  | label9      = Length
    | data9        = {{{length<includeonly>|</includeonly>}}}
+
  | data9        = {{{length<includeonly>|</includeonly>}}}
  
    | label10      = Price
+
  | label10      = Price
    | data10      = {{{price<includeonly>|</includeonly>}}}
+
  | data10      = {{{price<includeonly>|</includeonly>}}}
    }}
 
 
   }}
 
   }}
  
Line 171: Line 181:
 
         #if: {{{curr|}}}
 
         #if: {{{curr|}}}
 
         | '''''{{{curr}}}'''''
 
         | '''''{{{curr}}}'''''
         | '''''{{ #if: {{{en_name|}}} | {{{en_name}}} | {{ #var: $pagename }} }}'''''
+
         | '''''{{ #if: {{{en_name|}}} | {{{en_name}}} | {{ #explode: {{PAGENAME}} | ( }} }}'''''
 
       }}
 
       }}
 
     }}<br /><div style="float: right; text-align:right;">{{
 
     }}<br /><div style="float: right; text-align:right;">{{
Line 183: Line 193:
 
     }}</div>
 
     }}</div>
 
   }}
 
   }}
}}<!--
+
}}<noinclude>
 
 
-->[[Japanese release date::{{ #explode: {{{ja_release_date|}}} | &lt;ref }}| ]]<!--
 
-->[[English release date::{{ #explode: {{{en_release_date|}}} | &lt;ref }}| ]]<!--
 
 
 
# Earliest release date. Either the value from the "release_date" parameter or whichever is earliest out of English and Japanese.
 
-->[[Release date::{{ #if: {{{release_date|}}}
 
  | {{ #explode: {{{release_date|}}} | &lt;ref }}
 
  | {{Earlier date
 
    | {{ #explode: {{{ja_release_date|}}} | &lt;ref }}
 
    | {{ #explode: {{{en_release_date|}}} | &lt;ref }}
 
    }}
 
  }}| ]]<!--
 
 
 
--><noinclude>
 
  
{{Documentation}}[[Category:Infobox templates|Book]]
+
{{Documentation}}[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Please note that all contributions to Yugipedia are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International License (see Yugipedia:Licensing for more details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)
Preview page with this template
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template