Difference between revisions of "Template:Art"

m
updated the template with support for #source
m (The type parameter is currently required, so I made the docs reflect that)
m (updated the template with support for #source)
{{#if:{{{book|}}} |{{row/kv|Book |{{book tag|{{{book}}}|}} }}|}}
{{#if:{{{series|}}} |{{row/kv|Series |{{series tag|{{{series}}}|}} }}|}}
 
<!-- -->{{row/kv|Source |{{{source|''unknown''}}} }}
<!-- SOURCE -->
{{#if:{{{#source|}}}
|<!-- THEN
-->{{#if:{{#pos:{{{#source}}}|artstation.com/}} <!-- -->| {{row/kv|Source|[{{{#source}}} ArtStation]}} |}}<!--
-->{{#if:{{#pos:{{{#source}}}|behance.net/}} <!-- -->| {{row/kv|Source|[{{{#source}}} Behance]}} |}}<!--
-->{{#if:{{#pos:{{{#source}}}|deviantart.com/}} <!-- -->| {{row/kv|Source|[{{{#source}}} DeviantArt]}} |}}<!--
-->{{#if:{{#pos:{{{#source}}}|facebook.com/}} <!-- -->| {{row/kv|Source|[{{{#source}}} Facebook]}} |}}<!--
-->{{#if:{{#pos:{{{#source}}}|instagram.com/}} <!-- -->| {{row/kv|Source|[{{{#source}}} Instagram]}} |}}<!--
-->{{#if:{{#pos:{{{#source}}}|reddit.com/}} <!-- -->| {{row/kv|Source|[{{{#source}}} Reddit]}} |}}<!--
-->{{#if:{{#pos:{{{#source}}}|tumblr.com}} <!-- -->| {{row/kv|Source|[{{{#source}}} Tumblr]}} |}}<!--
-->{{#if:{{#pos:{{{#source}}}|twitter.com/}} <!-- -->| {{row/kv|Source|[{{{#source}}} Twitter]}} |}}
|<!-- ELSE
-->{{#if:{{{source|}}} | {{row/kv|Source|{{{source}}}}} | {{row/kv|Source|''Unknown''}} }}
}}
 
<!-- -->{{row/kv|File type |{{{type}}} }}
|}<includeonly><!--
-->{{#if:{{{modified|}}}|<set-property key="art-modified">{{{modified}}}</set-property>}}<!--
-->{{#if:{{{official|}}} | [[category: official artwork]] }}<!--
-->{{#if:{{{#source|}}}{{{source|}}}|<!-- -->|[[category: missing source link]]}}<!--
 
--></includeonly><noinclude>
|book=
|series=
|#source=
|type={{cat tag|Character images|Art}}
}}
<code><nowiki>|artist=[[Coppermind:Artists/Petar Penev|Petar Penev]]</nowiki></code>
 
<!-- --------------------- -->
<!-- ROW: #source / source -->
<!-- --------------------- -->
|- style="background:#FFDEAD;"
| style="text-align: center;" | <code>#source</code> <br><small>or</small><br> <code>source</code>
| Use this to link to a publicly viewablepublic webpage where the image can be found, preferably the artist's website or social media.<br>
<small>'''Note:''' <code>#source</code> automatically generates a link to ArtStation, Behance, DeviantArt, Facebook, Instagram, Twitter, and Tumblr; just provide the URL.
If the source is not one of these websites (e.g. it's the artist's personal website), use <code>source</code> to manually link to it.</small><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.<br>
When naming the source, use just the website's name (e.g. '''Facebook''' instead of '''Facebook post''', or '''17th Shard''' instead of '''17th Shard gallery''').
| style="white-space: nowrap;" |
<code><nowiki>|#source=https://www.instagram.com/p/B8je6gfDuOi/</nowiki></code><br>
<code><nowiki>|source=[https://www.dandossantos.com/gallery/#/lightweaver/ Dan dos Santos' Website]</nowiki></code><br>
<code><nowiki>|source=[[:File: Roshar.png]]</nowiki></code>