Template:Infobox animanga/Print: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
mNo edit summary
(copy new code from sandbox)
Line 1: Line 1:
<includeonly>{{Infobox/row
{{Infobox
| data = {{
|child = {{{child|<includeonly>yes</includeonly>}}}
|bodystyle = border-spacing:2px;

|subheader = {{
#switch: {{ lc: {{{type}}} }}
#switch: {{ lc: {{{type}}} }}
| novel = Novel
| novel = Novel
Line 10: Line 13:
| #default = Manga
| #default = Manga
}}
}}
| datastyle = background:#CCF; font-weight:bold;
|subheaderstyle = background:#CCF; font-weight:bold;

}}{{Infobox/row
|headerstyle = background:#EEF; font-weight:normal;
| data = {{ #if: {{{title|}}} | ''{{{title}}}'' }}
| datastyle = background:#EEF;
|labelstyle = 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 = {{ #ifeq: {{{illustrator}}} | {{{author}}} || {{{illustrator|}}} }}
|data3 = {{ #ifeq: {{{illustrator}}} | {{{author}}} || {{{illustrator<includeonly>|</includeonly>}}} }}

}}{{Infobox/row
| label = Published&nbsp;by
|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 = Imprint
|label7 = Magazine
|data7 = {{
| labelstyle = background:#EEF;
| data = {{{label|{{{imprint|}}}}}}
#switch: {{ lc: {{{type}}} }}
| novel =
}}{{
| #default = {{ #if: {{{magazine<includeonly>|</includeonly>}}} | ''{{{magazine}}}'' }}
#switch: {{ lc: {{{type}}} }}
}}
| novel =

| #default =
|label8 = English magazine
{{Infobox/row
| label = Magazine
|data8 = {{
#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}}} }}
#switch: {{ lc: {{{type}}} }}
| novel = Published
| novel = Published
| #default = {{ #if: {{{published|}}} | Published | Original run }}
| #default = {{ #if: {{{published|}}} | Published | Original run }}
}}
}}
|data9 = {{
| labelstyle = background:#EEF;
| data = {{
#switch: {{ lc: {{{type}}} }}
#switch: {{ lc: {{{type}}} }}
| novel = {{{published|}}}
| novel = {{{published|}}}
| #default = {{
| #default = {{
#if: {{{published|}}} | {{{published}}} | {{
#if: {{{published|}}} | {{{published}}} | {{
#if: {{{first|}}} | {{nowrap|{{{first}}}}} – {{
#if: {{{first<includeonly>|</includeonly>}}} | {{nowrap|{{{first}}}}} – {{
#if: {{{last|}}} | {{nowrap|{{{last}}}}} | ongoing
#if: {{{last<includeonly>|</includeonly>}}} | {{nowrap|{{{last}}}}} | ongoing
}}
}}
}}
}}
}}
}}
}}
}}

}}{{Infobox/row
| label = Volumes
|label10 = Volumes
|data10 = {{
| labelstyle = background:#EEF;
| data = {{
#switch: {{ lc: {{{type}}} }}
#switch: {{ lc: {{{type}}} }}
| novel =
| novel =
| #default = {{
| #default = {{
#if: {{{volumes|}}} | {{{volumes}}} {{
#if: {{{volumes<includeonly>|</includeonly>}}} | {{{volumes}}} {{
#if: {{{volume_list|}}}{{{chapter_list|}}} | <span class="noprint">([[{{{volume_list|{{{chapter_list}}}}}}|List of volumes]])</span>
#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}} | {{
#ifeq: {{NAMESPACE}} | {{ns:0}} | {{
#switch: {{ lc: {{{type|manga}}} }}
#switch: {{ lc: {{{type|manga}}} }}
Line 88: Line 86:
| serial novel = <!-- [[Category:Japanese serial novels]] --> [[Category:Japanese novels]]
| serial novel = <!-- [[Category:Japanese serial novels]] --> [[Category:Japanese novels]]
| light novel = [[Category:Light novels]]
| light novel = [[Category:Light novels]]
}}
}}{{ <!-- What a hack -->
}}{{ <!-- What a hack -->
#if: {{{magazine|}}} | | {{
#if: {{{first|}}} | {{
#if: {{{magazine|}}} | | {{
#iferror: {{
#if: {{{first|}}} | {{
#ifexpr: {{{volumes|0}}} <= 1 | {{
#iferror: {{
#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: {{{first|}}} | {{
#if: {{{published|}}} || [[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 -->
}}{{ <!-- Obsolete parameter check -->
Line 128: Line 126:
#ifeq: {{{first|{{{published|¬}}}}}} | ¬ | [[Category:Anime and manga articles with missing infobox parameters]]
#ifeq: {{{first|{{{published|¬}}}}}} | ¬ | [[Category:Anime and manga articles with missing infobox parameters]]
}}{{ <!-- Flag icon check -->
}}{{ <!-- Flag icon check -->
#ifeq: {{Str find|{{{publisher}}}|Flag of}} | -1 |
#ifeq: {{Str find long|{{{publisher}}}|Flag of}} | -1 |
| [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
| [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
}}{{
}}{{
#ifeq: {{Str find|{{{magazine}}}|Flag of}} | -1 |
#ifeq: {{Str find long|{{{magazine}}}|Flag of}} | -1 |
| [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
| [[Category:Anime and manga articles using obsolete and incorrect infobox parameters]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>

{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 16:08, 9 January 2011

Manga
{{{title}}}
Written by{{{author}}}
Illustrated by{{{illustrator}}}
Published by{{{publisher}}}
English publisher{{{publisher_en}}}
Imprint{{{imprint}}}
Magazine{{{magazine}}}
English magazine{{{magazine_en}}}
Original run{{{first}}}{{{last}}}
Volumes{{{volumes}}} (List of volumes)