Actions

Template

Difference between revisions of "Art"

From Sonic Retro

m
 
(47 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| style="border: 2px solid red; padding: .5em 1em; margin: auto; text-align: left;"
+
{{#vardefine:artType|{{#switch:{{{type|}}}
| This image is official artwork{{ #if: {{{character|}}} | depicting [[{{{character}}}]] | }}{{ #if: {{{character2|}}} | and [[{{{character2}}}]] | }}{{ #if: {{{game|}}} | for the game ''[[{{{game}}}]]]'' | }}.{{ #if: {{{source|}}} | <br>The original file was found on {{{source}}}. | }}
+
|box=Box artwork
|}
+
|#default=Artwork
<includeonly>
+
}}}}<includeonly>[[Category:All {{lc:{{#var:artType}}}}]]</includeonly>{{Imagetag
{{ #if: {{{game|}}} | | {{ #if: {{{character|}}} | | {{ #if: {{{source|}}} | | [[Category:Artwork]] }} }} }}
+
| image=
{{ #if: {{{game|}}} | | {{ #if: {{{source|}}} | | [[Category:Unsourced Artwork]] }} }}
+
| text=
{{ #if: {{{game|}}} | [[Category:Artwork for {{{game}}}]] | [[Category:Undesignated Artwork]] }}
+
This image is official artwork{{#if:{{{author|}}}| &nbsp;created by [[{{{author|}}}]]|}}{{ #if: {{{character|}}} | {{ #switch: {{{character}}}
{{ #ifeq: {{{character}}} | no | | {{ #if: {{{character|}}} | [[Category:Artwork of {{{character}}}]] | [[Category:Uncharacterised Artwork]] }} }}
+
| no=
{{ #if: {{{character2|}}} | [[Category:Artwork of {{{character2}}}]] | }}
+
| Groups=&nbsp;depicting multiple characters
{{ #if: {{{source|}}} | [[Category:Artwork from {{{source}}}]] | }}</includeonly>
+
| groups=&nbsp;depicting multiple characters
<noinclude>[[Category:Image Templates|Art]]</noinclude>
+
| Group=&nbsp;depicting multiple characters
 +
| group=&nbsp;depicting multiple characters
 +
| <includeonly>&nbsp;depicting [[{{{character}}}]]</includeonly>
 +
}} | }}{{ #if: {{{character2|}}} | &nbsp;and [[{{{character2}}}]] | }}{{ #if: {{{game|}}} | &nbsp;for the video game, ''[[{{{game}}}]]'' | }}{{ #if: {{{cartoon|}}} | &nbsp;for the cartoon, ''[[{{{cartoon}}}]]'' | }}{{ #if: {{{anime|}}} | &nbsp;for the anime, ''[[{{{anime}}}]]'' | }}{{ #if: {{{film|}}} | &nbsp;for the film, ''[[{{{film}}}]]'' | }}{{ #if: {{{comic|}}} | &nbsp;for the comic, ''[[{{{comic}}}]]'' | }}{{ #if: {{{book|}}} | &nbsp;for the book, ''[[{{{book}}}]]'' | }}{{ #if: {{{magazine|}}} | &nbsp;for the magazine, ''[[{{{magazine}}}]]'' | }}{{ #if: {{{event|}}} | &nbsp;for the event, ''[[{{{event}}}]]'' | }}.{{ #if: {{{source|}}} | <br>Source: {{{source}}}{{{ref|}}} | }}{{ #if: {{{source|}}} | {{ #if: {{{originalname|}}} | ,&nbsp; | }} | }}{{ #if: {{{originalname|}}} | {{ #if: {{{originalfile|}}} | {{file|{{{originalfile}}}|<tt>{{{originalname}}}</tt>}} | <tt>{{{originalname}}}</tt> }} | }}
 +
}}<includeonly>
 +
{{ #if: {{{game|}}} | | {{ #if: {{{cartoon|}}} | | {{ #if: {{{anime|}}} | | {{ #if: {{{comic|}}} | | {{ #if: {{{book|}}} | | {{ #if: {{{magazine|}}} | | {{ #if: {{{character|}}} | | {{ #if: {{{source|}}} | | [[Category:Artwork]] }} }} }} }} }} }} }} }}{{
 +
#if: {{{source|}}} | | [[Category:Unsourced artwork]] }}{{
 +
#if: {{{game|}}} | {{#vardefine:game|yes}}[[Category:Artwork for {{{game}}}]] | }}{{
 +
#if: {{{cartoon|}}} | {{#vardefine:cartoon|yes}}[[Category:Artwork for {{{cartoon}}}]] | }}{{
 +
#if: {{{anime|}}} | {{#vardefine:anime|yes}}[[Category:Artwork for {{{anime}}}]] | }}{{
 +
#if: {{{film|}}} | {{#vardefine:film|yes}}[[Category:Artwork for {{{film}}}]] | }}{{
 +
#if: {{{comic|}}} | {{#vardefine:comic|yes}}[[Category:Artwork for {{{comic}}}]] | }}{{
 +
#if: {{{book|}}} | {{#vardefine:book|yes}}[[Category:Artwork for {{{book}}}]] | }}{{
 +
#if: {{{magazine|}}} | {{#vardefine:magazine|yes}}[[Category:Artwork for {{{magazine}}}]] | }}{{
 +
#if: {{{event|}}} | {{#vardefine:event|yes}}[[Category:Artwork for {{{event}}}]] | }}{{
 +
#ifeq: {{{character}}} | no | | {{ #if: {{{character|}}} | [[Category:Artwork of {{#switch:{{{character}}}|Groups=groups|Group=groups|group=groups|Enemies=enemies|{{{character}}}}}]] | [[Category:Uncharacterised artwork]] }} }}{{
 +
#if: {{{character2|}}} | [[Category:Artwork of {{{character2}}}]] | }}{{
 +
#if: {{{source|}}} | [[Category:Artwork from {{{source}}}]] | }}{{
 +
#if: {{{author|}}} | [[Category:Artwork by {{{author}}}]] | [[Category:Unauthored artwork]]}}{{
 +
#if: {{{development|}}}|{{#if:{{#var:game}}|{{GD|{{{game|}}}}}}}{{#if:{{#var:cartoon}}|[[Category:{{{cartoon}}} development images]]|}}{{#if:{{#var:anime}}|[[Category:{{{anime}}} development images]]|}}{{#if:{{#var:film}}|[[Category:{{{film}}} development images]]|}}|}}{{BadNameCheck|{{PAGENAME}}}}{{#if:{{#var:game}}{{#var:cartoon}}{{#var:anime}}{{#var:film}}{{#var:comic}}{{#var:book}}{{#var:magazine}}{{#var:event}}||[[Category:Undesignated artwork]]}}</includeonly><noinclude>
 +
==Usage==
 +
<pre>
 +
{{art
 +
| character=
 +
| character2=
 +
| game=
 +
| cartoon=
 +
| anime=
 +
| film=
 +
| comic=
 +
| book=
 +
| magazine=
 +
| event=
 +
| source=
 +
| ref=
 +
| originalname=
 +
| originalfile=
 +
| author=
 +
| development=
 +
}}
 +
</pre>
 +
 
 +
[[Category:Image templates]]</noinclude>

Latest revision as of 09:38, 10 August 2023

This image is official artwork.

Usage

{{art
| character=
| character2=
| game=
| cartoon=
| anime=
| film=
| comic=
| book=
| magazine=
| event=
| source=
| ref=
| originalname=
| originalfile=
| author=
| development=
}}