Difference between revisions of "Template:Art"

From The Coppermind
Jump to navigation Jump to search
m (a bad cat for it)
m
Line 3: Line 3:
 
<!-- ELSE -->|{{row/kv|Artist |{{{artist|''unknown''}}} }}|}}
 
<!-- ELSE -->|{{row/kv|Artist |{{{artist|''unknown''}}} }}|}}
 
{{#if:{{{tracer|}}} |{{row/kv|Tracer |{{{tracer}}} }}|}}
 
{{#if:{{{tracer|}}} |{{row/kv|Tracer |{{{tracer}}} }}|}}
  +
{{#if:{{{translation|}}}|{{row/kv|Translation|{{{translation}}} }}|}}
 
{{#if:{{{book|}}} |{{row/kv|Book |{{book tag|{{{book}}}|}} }}|}}
 
{{#if:{{{book|}}} |{{row/kv|Book |{{book tag|{{{book}}}|}} }}|}}
 
{{#if:{{{series|}}} |{{row/kv|Series |{{series tag|{{{series}}}|}} }}|}}
 
{{#if:{{{series|}}} |{{row/kv|Series |{{series tag|{{{series}}}|}} }}|}}
Line 20: Line 21:
 
-->{{#if:{{{tracer|}}}|<set-property key="art-tracer">{{{tracer}}}</set-property>}}<!--
 
-->{{#if:{{{tracer|}}}|<set-property key="art-tracer">{{{tracer}}}</set-property>}}<!--
 
-->{{#if:{{{source|}}}|<!-- -->|[[Category: Missing source link]]}}<!--
 
-->{{#if:{{{source|}}}|<!-- -->|[[Category: Missing source link]]}}<!--
-->{{#if:{{{translation|}}}|[[category: art+translation=]]}}<!--
 
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
This is used on files to add source information
 
   
== Parameters ==
+
=== Description ===
  +
The '''art''' template is used to assign metadata to pieces of visual art, both official and fan-made.
[[:Template:Art]] supports the following parameters, of which <code>artist</code> and <code>source</code>:
 
  +
  +
=== Template ===
 
<pre class=mw-code>
 
<pre class=mw-code>
 
{{art
 
{{art
|artist=
+
|#artist=
 
|tracer=
 
|tracer=
 
|book=
 
|book=
Line 38: Line 39:
 
</pre>
 
</pre>
   
;<code>artist</code> (or <code>#artist</code>)
 
:<span style="color:#ff0000">'''Required'''</span> This parameter should link to the artist's Coppermind page.
 
::'''Example''': <code><nowiki>|artist=[[Isaac Stewart]]</nowiki></code>
 
::'''Example''': <code><nowiki>|artist=[[User: Botanicaxu]]</nowiki></code>
 
::'''Example''': <code><nowiki>|artist=[[Coppermind: Artists/Sheep|Sheep]]</nowiki></code>
 
::'''Example''': <code><nowiki>|#artist=Sheep</nowiki></code> is the same as the above
 
   
  +
=== Parameters ===
;<code>source</code>
 
  +
:<span style="color:#ff0000">'''Required'''</span> This parameter should link to a publicly viewable webpage where the image can be found, preferably the artist's website or social media.
 
  +
Highlighted lines indicate '''mandatory''' parameters.
::'''Example''': <code><nowiki>|source=[https://www.dandossantos.com/gallery/#/lightweaver/ Dan dos Santos' Website]</nowiki></code>
 
  +
: If the file is a cropped/traced version of another piece of art already on the coppermind, that file can be the source:
 
  +
{| class="wikitable" width=100%
::'''Example''': <code><nowiki>|source=[[:File: Roshar.png]]</nowiki></code>
 
  +
<!-- ------------- -->
  +
<!-- TABLE CAPTION -->
  +
<!-- ------------- -->
  +
|+ {{t|Art}} Parameters
  +
  +
<!-- -------------- -->
  +
<!-- COLUMN HEADERS -->
  +
<!-- -------------- -->
  +
|-
  +
! scope="col" style="font-weight: bold;" | Parameter
  +
! scope="col" style="font-weight: bold;" | Description
  +
! scope="col" style="font-weight: bold;" | Examples
  +
  +
<!-- ------------------- -->
  +
<!-- ROW: #artist/artist -->
  +
<!-- ------------------- -->
  +
|- style="background:#FFDEAD;"
  +
| style="text-align: center;" | <code>#artist</code> <br><small>or</small><br> <code>artist</code>
  +
| Use <code>#artist</code> to automatically link to the artist's Coppermind page (<small>under <code>Coppermind:Artists</code></small>) by just supplying their name. If necessary, <code>artist</code> can be used to manually link to their page.
  +
| style="white-space: nowrap;" |
  +
These two are equivalent:<br>
  +
<code><nowiki>|#artist=Petar Penev</nowiki></code><br>
  +
<code><nowiki>|artist=[[Coppermind:Artists/Petar Penev|Petar Penev]]</nowiki></code>
  +
  +
<!-- ----------- -->
  +
<!-- ROW: source -->
  +
<!-- ----------- -->
  +
|- style="background:#FFDEAD;"
  +
| style="text-align: center;" | <code>source</code>
  +
| Use this to link to a publicly viewable webpage where the image can be found, preferably the artist's website or social media.<br>
  +
If the file is a cropped/traced version of another piece of art already uploaded to the Coppermind, that file can be used as the source.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|source=[https://www.dandossantos.com/gallery/#/lightweaver/ Dan dos Santos' Website]</nowiki></code><br>
  +
<code><nowiki>|source=[[:File: Roshar.png]]</nowiki></code>
  +
  +
<!-- ----------- -->
  +
<!-- ROW: tracer -->
  +
<!-- ----------- -->
  +
|-
  +
| style="text-align: center;" | <code>tracer</code>
  +
| When the image is a traced vector graphic this parameter should link to the tracer's Coppermind user page.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|tracer=[[:User:WeiryWriter]]</nowiki></code>
  +
  +
<!-- --------- -->
  +
<!-- ROW: book -->
  +
<!-- --------- -->
  +
|-
  +
| style="text-align: center;" | <code>book</code>
  +
| Use this to associate the art piece with a specific book. This is mostly used when uploading interior art from the book in question.<br>
  +
'''Note:''' The value here is forwarded to the {{t|book tag}} template, which then forwards it to {{t|b}}. This means the original value must be valid for those templates as well. See their pages for details.
  +
| style="white-space: nowrap;" |
  +
All of these are equivalent:<br>
  +
<code><nowiki>|book=sa1</nowiki></code><br>
  +
<code><nowiki>|book=wok</nowiki></code><br>
  +
<code><nowiki>|book=twok</nowiki></code>
  +
  +
<!-- ----------- -->
  +
<!-- ROW: series -->
  +
<!-- ----------- -->
  +
|-
  +
| style="text-align: center;" | <code>series</code>
  +
| Use this to associate the art piece with a book series.<br>
  +
'''Note:''' The value here is forwarded to the {{t|series tag}} template, which means it must be one of the valid values for that template. See the {{t|series tag}} page for more details.
  +
| style="white-space: nowrap;" |
  +
All of these are equivalent:<br>
  +
<code><nowiki>|series=sa</nowiki></code><br>
  +
<code><nowiki>|series=stormlight</nowiki></code><br>
  +
<code><nowiki>|series=stormlight archive</nowiki></code><br>
  +
<code><nowiki>|series=the stormlight archive</nowiki></code>
   
  +
<!-- ------------- -->
;<code>tracer</code>
 
  +
<!-- ROW: file type-->
: When the image is a traced vector graphic this parameter should link to the tracer's Coppermind user page.
 
  +
<!-- ------------- -->
::'''Example''': <code><nowiki>|tracer=[[:User:WeiryWriter]]</nowiki></code>
 
  +
|-
  +
| style="text-align: center;" | <code>type</code>
  +
| This parameter can be used to assign a category tag to the art piece. See the [[#Type Tags]] section below for more details.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|type={{cat tag|Art}}</nowiki></code>
   
  +
|}
;<code>series</code>
 
:The value here is passed to the {{t|series tag}} template, which means it must be one of the valid values for that template. This will add a link to the series page and include the file in the series category.
 
::'''Example''': <code>|series=Stormlight</code>
 
   
  +
=== Type Tags ===
;<code>book</code>
 
  +
The <code>type</code> parameter provides a row for [[:category: link macros|tags]] which categorize the file in different ways:
:The value here is passed to the {{t|book tag}} template, which means it must be one of the valid values for that template. This will add a link to the book page and include the file in the series category. This argument is mostly used on interior art from the book in question, or for books which aren't part of a series.
 
  +
* {{t|cat tag|character images}} is placed on any image depicting a [[:category: characters|character]]
::'''Example''': <code>|book=sotd</code>
 
  +
* {{t|cat tag|interior art}} is used to indicate when a file is from inside one of the published books
  +
* {{t|cat tag|art}} is used on artist depictions of scenes and other more complex images
  +
* {{t|cat tag|maps}} categorize any cartographic images
  +
* {{t|cat tag|symbols}} & {{t|cat tag|diagrams}} indicate the obvious
  +
* {{t|cat tag|chapter icons}} collect all the images used in books with icons in the chapter headings
   
  +
It also allows for any other kind of tagging for images when it makes sense
;<code>type</code>
 
<!-- TODO -->
 
:This parameter can be used to assign a category tag to the art piece.
 
::'''Values''': <code>Art</code>, <code>Books/Book</code>
 
::'''Example''': <code><nowiki>|type={{cat tag|Art}}</nowiki></code>
 
   
 
[[Category: Infoboxes]]
 
[[Category: Infoboxes]]

Revision as of 16:31, 6 March 2019

Artist unknown
Source unknown
File type {{{type}}}

Description

The art template is used to assign metadata to pieces of visual art, both official and fan-made.

Template

{{art
|#artist=
|tracer=
|book=
|series=
|source=
|type=
}}


Parameters

Highlighted lines indicate mandatory parameters.

{{Art}} Parameters
Parameter Description Examples
#artist
or
artist
Use #artist to automatically link to the artist's Coppermind page (under Coppermind:Artists) by just supplying their name. If necessary, artist can be used to manually link to their page.

These two are equivalent:
|#artist=Petar Penev
|artist=[[Coppermind:Artists/Petar Penev|Petar Penev]]

source Use this to link to a publicly viewable webpage where the image can be found, preferably the artist's website or social media.

If the file is a cropped/traced version of another piece of art already uploaded to the Coppermind, that file can be used as the source.

|source=[https://www.dandossantos.com/gallery/#/lightweaver/ Dan dos Santos' Website]
|source=[[:File: Roshar.png]]

tracer When the image is a traced vector graphic this parameter should link to the tracer's Coppermind user page.

|tracer=[[:User:WeiryWriter]]

book Use this to associate the art piece with a specific book. This is mostly used when uploading interior art from the book in question.

Note: The value here is forwarded to the {{book tag}} template, which then forwards it to {{b}}. This means the original value must be valid for those templates as well. See their pages for details.

All of these are equivalent:
|book=sa1
|book=wok
|book=twok

series Use this to associate the art piece with a book series.

Note: The value here is forwarded to the {{series tag}} template, which means it must be one of the valid values for that template. See the {{series tag}} page for more details.

All of these are equivalent:
|series=sa
|series=stormlight
|series=stormlight archive
|series=the stormlight archive

type This parameter can be used to assign a category tag to the art piece. See the #Type Tags section below for more details.

|type={{cat tag|Art}}

Type Tags

The type parameter provides a row for tags which categorize the file in different ways:

  • {{cat tag|character images}} is placed on any image depicting a character
  • {{cat tag|interior art}} is used to indicate when a file is from inside one of the published books
  • {{cat tag|art}} is used on artist depictions of scenes and other more complex images
  • {{cat tag|maps}} categorize any cartographic images
  • {{cat tag|symbols}} & {{cat tag|diagrams}} indicate the obvious
  • {{cat tag|chapter icons}} collect all the images used in books with icons in the chapter headings

It also allows for any other kind of tagging for images when it makes sense