Difference between revisions of "User:Stargazer/Caption"

From The Coppermind
Jump to navigation Jump to search
m (If on {{{2}}})
(+docs)
Line 1: Line 1:
<onlyinclude><small><center>By {{a|{{{1}}}}}</center></small> {{#if:{{{2|}}}|{{{2}}}|}}</onlyinclude>
<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 />
}}

Revision as of 17:00, 24 April 2020

By [[Coppermind: Artists/{{{1}}}|{{{1}}}]]

The caption template is used to easily credit artists and add a caption when a file is used.

Template

{{caption
|1=
|2=
}}

Parameters

Highlighted lines indicate mandatory parameters. If not used, they will either appear as "unknown" or produce an error.

{{caption}} Parameters
Parameter Description Examples
1 Use the first parameter to indicate the name of the artist. This forwards to {{a}}, so it should match the name of the artist's Coppermind:Artists page.

botanicaxu
taratjah

2 Use the second parameter to provide a caption.

Hoid and Frost
The Stormfather