Template:Infobox animanga/Print: Difference between revisions

copy new code from sandbox
mNo edit summary
(copy new code from sandbox)
Line 1:
<includeonly>{{Infobox/row
|child data = {{{child|<includeonly>yes</includeonly>}}}
|bodystyle = border-spacing:2px;
 
|subheader = {{
#switch: {{ lc: {{{type}}} }}
| novel = Novel
Line 10 ⟶ 13:
| #default = Manga
}}
| datastyle subheaderstyle = background:#CCF; font-weight:bold;
 
}}{{Infobox/row
|headerstyle = background:#EEF; font-weight:normal;
| data = {{ #if: {{{title|}}} | ''{{{title}}}'' }}
|labelstyle | datastyle = background:#EEF;
 
}}{{Infobox/row
|header1 = {{ #if: {{{title<includeonly>|</includeonly>}}} | ''{{{title}}}'' }}
| label = Written&nbsp;by
 
| labelstyle = background:#EEF;
|label2 = Written&nbsp;by
| data = {{{author|}}}
|data2 = {{{author<includeonly>|</includeonly>}}}
}}{{Infobox/row
 
| label = Illustrated&nbsp;by
|label3 = Illustrated&nbsp;by
| labelstyle = background:#EEF;
| data data3 = {{ #ifeq: {{{illustrator}}} | {{{author}}} || {{{illustrator<includeonly>|</includeonly>}}} }}
 
}}{{Infobox/row
| label label4 = Published&nbsp;by
|data4 = {{{publisher<includeonly>|</includeonly>}}}
| labelstyle = background:#EEF;
 
| data = {{{publisher|}}}
|label5 = English publisher
}}{{Infobox/row
|data5 = {{{publisher_en<includeonly>|</includeonly>}}}
| label = English publisher
 
| labelstyle = background:#EEF;
|label6 = Demographic
| data = {{{publisher_en|}}}
|data6 = {{{demographic<includeonly>|</includeonly>}}}
}}{{Infobox/row
 
| label = Demographic
|label6 = Imprint
| labelstyle = background:#EEF;
|data6 = {{{label|{{{imprint<includeonly>|</includeonly>}}}}}}
| data = {{{demographic|}}}
 
}}{{Infobox/row
| label label7 = ImprintMagazine
|data7 = {{
| labelstyle = background:#EEF;
| data #switch: {{ =lc: {{{label|{{{imprint|}type}}} }}
| novel =
}}{{
| #default = {{ #if: {{{magazine<includeonly>|</includeonly>}}} | ''{{{magazine}}}'' }}
#switch: {{ lc: {{{type}}} }}
}}
| novel =
 
| #default =
|label8 = English magazine
{{Infobox/row
| label data8 = Magazine{{
#switch: {{ lc: {{{type}}} }}
| labelstyle = background:#EEF;
| novel =
| data = {{ #if: {{{magazine|}}} | ''{{{magazine}}}'' }}
| #default = {{ #if: {{{magazine_en<includeonly>|</includeonly>}}} | ''{{{magazine_en}}}'' }}
}}{{Infobox/row
| label = English magazine
| labelstyle = background:#EEF;
| data = {{ #if: {{{magazine_en|}}} | ''{{{magazine_en|}}}'' }}
}}
 
}}{{Infobox/row
| label label9 = {{
#switch: {{ lc: {{{type}}} }}
| novel = Published
| #default = {{ #if: {{{published|}}} | Published | Original run }}
}}
|data9 = {{
| labelstyle = background:#EEF;
| data = {{
#switch: {{ lc: {{{type}}} }}
| novel = {{{published|}}}
| #default = {{
#if: {{{published|}}} | {{{published}}} | {{
#if: {{{first<includeonly>|</includeonly>}}} | {{nowrap|{{{first}}}}} – {{
#if: {{{last<includeonly>|</includeonly>}}} | {{nowrap|{{{last}}}}} | ongoing
}}
}}
}}
}}
 
}}{{Infobox/row
| label label10 = Volumes
|data10 = {{
| labelstyle = background:#EEF;
| data = {{
#switch: {{ lc: {{{type}}} }}
| novel =
| #default = {{
#if: {{{volumes<includeonly>|</includeonly>}}} | {{{volumes}}} {{
#if: {{{volume_list<includeonly>|</includeonly>}}}{{{chapter_list|}}} | <span class="noprint">([[{{{volume_list|{{{chapter_list<noinclude>|List of volumes</noinclude>}}}}}}|List of volumes]])</span>
}}
}}
}}
}}<includeonly>{{
#ifeq: {{NAMESPACE}} | {{ns:0}} | {{
#switch: {{ lc: {{{type|manga}}} }}
Line 88 ⟶ 86:
| serial novel = <!-- [[Category:Japanese serial novels]] --> [[Category:Japanese novels]]
| light novel = [[Category:Light novels]]
}}
}}{{ <!-- What a hack -->
}}{{ <!-- What a hack -->
#if: {{{magazine|}}} | | {{
#if: {{{firstmagazine|}}} | | {{
#if: {{{first|}}} #iferror:| {{
#ifexpriferror: {{{volumes|0}}} <= 1 | {{
#ifexpr: {{{volumes|0}}} <= 1 | {{
#if: {{{last|}}} || [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
#if: {{{last|}}} || [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
}}
}}
}}
}}
}}
}}{{
#ifeq: {{{title}}} | {{PAGENAME}} | [[Category:Anime and manga articles with redundant infobox parameters]]
}}{{
#if: {{{illustrator|}}} | {{
#ifeq: {{{illustrator}}} | {{{author}}} | [[Category:Anime and manga articles with redundant infobox parameters]]
}}
}}{{
#if: {{{first|}}} | {{
#ifeq: {{{first}}} | {{{last}}} | [[Category:Anime and manga articles with identical first and last infobox parameters]]
}}{{
#switch: {{ lc: {{{last}}} }}
#ifeq: {{{title}}} | {{PAGENAME}} | [[Category:Anime and manga articles with redundant infobox parameters]]
| ongoing | (ongoing)
}}{{
| on-going | (on-going)
#if: {{{illustrator|}}} | {{
| current | (current)
#ifeq: {{{illustrator}}} | {{{author}}} | [[Category:Anime and manga articles with redundant infobox parameters]]
| present | (present) = [[Category:Anime and manga articles with redundant infobox parameters]]
}}
}} | {{
#if: {{{firstpublished|}}} || [[Category:Manga (year of release {{missing)]]
#ifeq: {{{first}}} | {{{last}}} | [[Category:Anime and manga articles with identical first and last infobox parameters]]
}}{{
#switch: {{ lc: {{{last}}} }}
| ongoing | (ongoing)
| on-going | (on-going)
| current | (current)
| present | (present) = [[Category:Anime and manga articles with redundant infobox parameters]]
}} | {{
#if: {{{published|}}} || [[Category:Manga (year of release missing)]]
}}
}}
}}{{ <!-- Obsolete parameter check -->
Line 128 ⟶ 126:
#ifeq: {{{first|{{{published|¬}}}}}} | ¬ | [[Category:Anime and manga articles with missing infobox parameters]]
}}{{ <!-- Flag icon check -->
#ifeq: {{Str find long|{{{publisher}}}|Flag of}} | -1 |
| [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
}}{{
#ifeq: {{Str find long|{{{magazine}}}|Flag of}} | -1 |
| [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
}}</includeonly><noinclude>
 
{{Documentation}}
</noinclude>
Anonymous user