Difference between revisions of "Template:Infobox arc"

From Yugipedia
Jump to: navigation, search
(consistent label and font sizes)
(restore from the Internet Archive (September 28, 2021 <https://web.archive.org/web/20210928143128/https://yugipedia.com/wiki/Template:Infobox_arc?action=edit>))
 
Line 2: Line 2:
  
 
-->{{Infobox
 
-->{{Infobox
| bodyclass    = list-noicon
+
| bodyclass    = infobox-yugipedia plainlist
| titlestyle  = background: #BBF; padding: 0.2em; border: solid #AAA; border-width: 1px 1px 0 1px;
+
| titlestyle  = padding: 0.2em; border-style: solid; border-width: 1px 1px 0 1px;
| headerstyle  = background: #CCF;
+
| labelstyle  = width: 10em;
| labelstyle  = background: #DDF; width: 10em;
 
  
| title        = {{ #if: {{{name|}}} | {{{name}}} | {{ #var: $pagename }} }}
+
| title        = "{{ #if: {{{name|}}} | {{{name}}} | {{ #var: $pagename }} }}"
  
 
| image        = {{ #if: {{{image|}}} | [[File:{{PAGENAME:{{{image}}}}}|link=File:{{PAGENAME:{{{image}}}}}|{{ #iferror: {{ #ifexpr: {{{width}}} < 275 | {{{width}}} | 275 }} | 275 }}px|{{ #if: {{{caption|}}} | {{{caption}}} | {{ #if: {{{name|}}} | {{{name}}} | {{ #var: $pagename }} }} }}]] }}
 
| image        = {{ #if: {{{image|}}} | [[File:{{PAGENAME:{{{image}}}}}|link=File:{{PAGENAME:{{{image}}}}}|{{ #iferror: {{ #ifexpr: {{{width}}} < 275 | {{{width}}} | 275 }} | 275 }}px|{{ #if: {{{caption|}}} | {{{caption}}} | {{ #if: {{{name|}}} | {{{name}}} | {{ #var: $pagename }} }} }}]] }}
Line 18: Line 17:
 
   | {{Infobox
 
   | {{Infobox
 
     | child        = yes
 
     | child        = yes
    | headerstyle  = background: #CCF;
+
     | labelstyle  = width: 10em;
     | labelstyle  = background: #DDF; width: 10em;
 
  
 
     | header1      = Names
 
     | header1      = Names
Line 32: Line 30:
 
         | bodyclass  = collapsible
 
         | bodyclass  = collapsible
 
         | bodystyle  = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px);
 
         | bodystyle  = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px);
         | headerstyle = background-color: #DDF; text-align: left;
+
         | headerstyle = text-align: left;
         | labelstyle  = background-color: #EEF; width: 10em;
+
         | labelstyle  = width: 10em;
  
 
         | header1    = Japanese
 
         | header1    = Japanese
Line 72: Line 70:
 
         | bodyclass  = collapsible collapsed
 
         | bodyclass  = collapsible collapsed
 
         | bodystyle  = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px);
 
         | bodystyle  = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px);
         | headerstyle = background-color: #DDF; text-align: left;
+
         | headerstyle = text-align: left;
         | labelstyle  = background-color: #EEF; width: 10em;
+
         | labelstyle  = width: 10em;
  
 
         | header1    = Korean
 
         | header1    = Korean
Line 98: Line 96:
 
         | bodyclass  = collapsible collapsed
 
         | bodyclass  = collapsible collapsed
 
         | bodystyle  = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px);
 
         | bodystyle  = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px);
         | headerstyle = background-color: #DDF; text-align: left;
+
         | headerstyle = text-align: left;
         | labelstyle  = background-color: #EEF; width: 10em;
+
         | labelstyle  = width: 10em;
  
 
         | header1    = Other languages
 
         | header1    = Other languages
Line 130: Line 128:
 
   | {{Infobox
 
   | {{Infobox
 
     | child        = yes
 
     | child        = yes
    | headerstyle  = background: #CCF;
+
     | labelstyle  = width: 10em;
     | labelstyle  = background: #DDF; width: 10em;
 
  
 
     | header1      = Arc
 
     | header1      = Arc
Line 155: Line 152:
  
 
     | label8      = Previous
 
     | label8      = Previous
     | data8        = {{{prev<includeonly>|</includeonly>}}}
+
     | data8        = {{ #if: {{{prev<includeonly>|</includeonly>}}}
 +
      | {{ #if: {{ #pos: {{{prev}}} | '' }}
 +
        | {{{prev}}}
 +
        | "{{{prev}}}"
 +
        }}
 +
      }}
  
 
     | label9      = Next
 
     | label9      = Next
     | data9        = {{{next<includeonly>|</includeonly>}}}
+
     | data9        = {{ #if: {{{next<includeonly>|</includeonly>}}}
 +
      | {{ #if: {{ #pos: {{{next}}} | '' }}
 +
        | {{{next}}}
 +
        | "{{{next}}}"
 +
        }}
 +
      }}
  
 
     }}
 
     }}
Line 164: Line 171:
  
 
}}<noinclude>
 
}}<noinclude>
 
+
{{Documentation}}
 
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 23:37, 10 December 2023

"Infobox arc"
Names
English{{{en_name}}}
Japanese
Japanese
  • {{{ja_name}}}
Romaji
  • {{{romaji_name}}}
Translated
  • {{{ja_trans_name}}}
Arc
Medium{{{medium}}}
Series{{{series}}}
Original run{{{start_date}}}–
First chapter{{{first}}}
Last chapter{{{last}}}
Chronology
Previous"{{{prev}}}"
Next"{{{next}}}"