Difference between revisions of "User:Stargazer/Caption"

+docs
m (If on {{{2}}})
(+docs)
<onlyinclude><small><center>By {{a|{{{1}}}}}</center></small> {{#if:{{{2|}}}|{{{2}}}|}}</onlyinclude>
 
The '''caption''' template is used to easily credit artists and add a caption when a file is used.
 
=== Template ===
<pre class=mw-code>
{{caption
|1=
|2=
}}
</pre>
 
=== Parameters ===
Highlighted lines indicate '''mandatory''' parameters. If not used, they will either appear as "''unknown''" or produce an error.
 
{{docs|title={{t|caption}} Parameters}}
 
<!-- -------- -->
<!-- ROW: {{{1}}} -->
<!-- -------- -->
{{docs/row/required
|param=1
|desc= Use the first parameter to indicate the name of the artist. This forwards to {{t|a}}, so it should match the name of the artist's [[Coppermind:Artists]] page.
|eg=
<code>botanicaxu</code><br />
<code>taratjah</code>
}}
 
<!-- -------- -->
<!-- ROW: {{{w}}} -->
<!-- -------- -->
{{docs/row/optional
|param=2
|desc= Use the second parameter to provide a caption.
|eg=
<code>Hoid and Frost</code><br />
<code>The Stormfather</code><br />
}}