Difference between revisions of "Template:Infobox animanga/Header"

From blackwiki
Jump to navigation Jump to search
imported>TheFarix
m
imported>Xaosflux
(#if: {{{ja_romaji|}}} | <br />({{transl|ja|{{{ja_romaji}}}}}) - requested on talk)
 
(17 intermediate revisions by 8 users not shown)
Line 3: Line 3:
 
   | <table class="infobox" style="width: 22em">
 
   | <table class="infobox" style="width: 22em">
 
}}{{Infobox
 
}}{{Infobox
|decat          = yes
+
| decat          = yes
|child          = {{{child|<includeonly>yes</includeonly>}}}
+
| child          = {{{child|<includeonly>yes</includeonly>}}}
|bodystyle      = border-spacing:2px;
+
| bodystyle      = border-spacing:2px;
|italic title  = {{{italic title|}}}
+
| italic title  = {{{italic title|}}}
  
|subheader      = {{
+
| subheaderstyle = background:#CCF; font-size:125%; font-style:italic; font-weight:bold;
 +
| subheader      = {{
 
   #ifeq: {{NAMESPACE}} | Template
 
   #ifeq: {{NAMESPACE}} | Template
   | {{{name<includeonly>|</includeonly>}}}
+
   | {{{name|}}}
 
   | {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
 
   | {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
 
}}
 
}}
|subheaderstyle = font-size:125%; font-weight:bold; font-style:italic; background:#CCF;
 
  
|image          = {{{image<includeonly>|</includeonly>}}}
+
| image          = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{imagesize|{{{image_size|}}}}}} |sizedefault=frameless |alt={{{alt|}}} }}
|caption        = {{{caption<includeonly>|</includeonly>}}}
+
| caption        = {{{caption|}}}
|captionstyle  = font-size:smaller;
 
  
|headerstyle    = background:#DDF; font-weight:normal;  
+
| headerstyle    = background:#DDF; padding:0.3em; line-height:1.3em; font-weight:normal;  
  
|header1  = {{
+
| header1  = {{
   #if: {{{ja_kanji<includeonly>|</includeonly>}}} | {{lang|ja|{{{ja_kanji}}}}}{{
+
   #if: {{{ja_kanji|}}} | {{Nihongo2|{{bigger|{{{ja_kanji}}}}}}}{{
     #if: {{{ja_romaji<includeonly>|</includeonly>}}} | <br /><span style="font-size:smaller;">(''{{{ja_romaji}}}'')</span>
+
     #if: {{{ja_romaji|}}} | <br />({{transl|ja|{{{ja_romaji}}}}})
 
   }}
 
   }}
 
}}
 
}}
  
|label2  = Genre
+
| label2  = Genre
|data2    = {{{genre<includeonly>|</includeonly>}}}
+
| data2    = {{{genre|}}}
 +
 
 +
| label3  = Created&nbsp;by
 +
| data3    = {{{creator|}}}
 
}}{{
 
}}{{
 
   #ifeq: {{NAMESPACE}} | {{ns:0}} | {{
 
   #ifeq: {{NAMESPACE}} | {{ns:0}} | {{
Line 37: Line 39:
 
     }}
 
     }}
 
   }}
 
   }}
}}{{
 
  #if: {{{image|}}} | {{ #if: {{{caption|}}} || [[Category:Anime and manga articles with a missing image caption]] }}
 
 
}}{{
 
}}{{
 
   #switch: {{NAMESPACE}}
 
   #switch: {{NAMESPACE}}
Line 47: Line 47:
 
   | Wikipedia talk =
 
   | Wikipedia talk =
 
   | {{
 
   | {{
     #ifeq: {{{image|¬}}} | ¬ | [[Category:Anime and manga articles with missing infobox parameters]]
+
     #ifeq: {{{image|¬}}} | ¬ | [[Category:Anime and manga articles with missing image parameters]]
 
   }}{{
 
   }}{{
     #ifeq: {{{caption|¬}}} | ¬ | [[Category:Anime and manga articles with missing infobox parameters]]
+
     #ifeq: {{{caption|¬}}} | ¬ | [[Category:Anime and manga articles with missing image parameters]]
 
   }}{{
 
   }}{{
     #ifeq: {{{genre|¬}}} | ¬ | [[Category:Anime and manga articles with missing infobox parameters]]
+
     #ifeq: {{{genre|¬}}} | ¬ | [[Category:Anime and manga articles with missing genre parameters]]
 
   }}
 
   }}
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|ecchi}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|ecchi}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shōnen}} | 0 | | {{
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shōnen}} | -1 | | {{
     #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shōnen-ai}} | 0 | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
     #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shōnen-ai}} | -1 | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
   }}
 
   }}
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shonen}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shonen}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shounen}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shounen}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shōjo}} | 0 | | {{
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shōjo}} | -1 | | {{
     #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shōjo-ai}} | 0 | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
     #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shōjo-ai}} | -1 | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
   }}
 
   }}
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shojo}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shojo}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 +
}}{{
 +
  #ifeq: {{Str find long|{{lc:{{{genre}}}}}|shoujo}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|shoujo}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|seinen}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|seinen}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|josei}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|josei}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|kodomo}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|kodomo}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #ifeq: {{Str find long|{{lc:{{{genre}}}}}|children}} | -1 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
 
}}{{
 
}}{{
   #ifeq: {{Strfind short|{{lc:{{{genre}}}}}|children}} | 0 | | [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
+
   #invoke:Check for unknown parameters|check
 +
  | unknown = [[Category:Anime and manga articles using obsolete and incorrect infobox parameters|_VALUE_{{PAGENAME}}]]
 +
  | child | italic title
 +
  | name
 +
  | image | caption | imagesize | image_size | alt
 +
  | ja_kanji | ja_romaji| genre
 +
  | creator
 
}}<noinclude>
 
}}<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:11, 31 December 2019

Template documentation[view] [edit] [history] [purge]
{{{name}}}
Example.svg
This is an example image
Template:Nihongo2
(Template:Transl)
Genre{{{genre}}}
Created by{{{creator}}}
{{Infobox animanga/Header
| name            = 
| image           = 
| caption         = 
| ja_kanji        = 
| ja_romaji       = 
| genre           = <!-- Note: Use and cite reliable sources to identify genre/s, not personal interpretation. Please don't include more than three genres (per [[MOS:A&M]]). -->
| creator         = 
}}

Script error: No such module "aligned table".

Tracking categories