Difference between revisions of "Template:Infobox book"

From Yugipedia
Jump to: navigation, search
(automate =P )
(Handle multiple ISBNs. Although we should probably add separate parameters for different languages.)
Line 130: Line 130:
  
 
   | label7      = ISBN
 
   | label7      = ISBN
   | data7        = {{ #if: {{{isbn<includeonly>|</includeonly>}}} | [[ISBN::{{{isbn}}}| ]] [[Special:BookSources/{{{isbn}}}|{{{isbn}}}]] }}
+
   | data7        = {{ #if: {{{isbn<includeonly>|</includeonly>}}}
 +
    | {{IfSemantics
 +
      | {{ #arraymap: {{{isbn}}}
 +
        |*
 +
        |$isbn
 +
        |* [[ISBN::$isbn| ]] [[Special:BookSources/$isbn|$isbn]]
 +
        |\n
 +
        }}
 +
      | {{{isbn}}}
 +
    }}
  
 
   | label8      = ISBN-13
 
   | label8      = ISBN-13
   | data8        = {{ #if: {{{isbn-13<includeonly>|</includeonly>}}} | [[ISBN-13::{{{isbn-13}}}| ]] [[Special:BookSources/{{{isbn-13}}}|{{{isbn-13}}}]] }}
+
   | data8        = {{ #if: {{{isbn-13<includeonly>|</includeonly>}}}
 +
    | {{IfSemantics
 +
      | {{ #arraymap: {{{isbn-13}}}
 +
        |*
 +
        |$isbn13
 +
        |* [[ISBN-13::$isbn13| ]] [[Special:BookSources/$isbn13|$isbn13]]
 +
        |\n
 +
        }}
 +
      | {{{isbn-13}}}
 +
    }}
  
 
   | label9      = Length
 
   | label9      = Length

Revision as of 14:30, 27 January 2013

{{Infobox | above = Infobox book | image = [[File:{{{image}}}|229px|{{{caption}}}]]

| abovestyle = font-style: italic; | bodyclass = list-noicon | labelstyle = vertical-align: middle; background: #DDF; | headerstyle = background: #CCF;

| data1 =

NamesUnited Kingdom English

  • {{{en_name}}}

France French{{{fr_name}}}Germany German{{{de_name}}}Italy Italian{{{it_name}}}Portugal Portuguese{{{pt_name}}}Spain Spanish{{{es_name}}}

Japan JapaneseKanji{{{ja_name}}}Furigana{{{ja_name}}}Rōmaji{{{romaji_name}}}Translated{{{ja_trans_name}}}

South Korea KoreanKorean{{{ko_name}}}Base text{{{ko_name}}}Hangul{{{ko_name}}}Hanja{{{hanja_name}}}Revised Romanization{{{ko_rr_name}}}Translated{{{ko_trans_name}}} | data2 = {{Infobox | child = yes | headerstyle = background: #CCF; | labelstyle = vertical-align: middle; background: #DDF; | header1 = Book information | label2 = Language | data2 = {{{language}}} | label3 = Author | data3 = {{{author}}} | label4 = Illustrator | data4 = {{{illustrator}}} | label5 = Publisher | data5 = {{{publisher}}} | label6 = Release date | data6 = {{{release_date}}} | label7 = ISBN | data7 =

  • [[Special:BookSources/{{{isbn}}}|{{{isbn}}}]]