Template:Improve caption/doc: Difference between revisions

From CAPipedia
en>DesertPipeline
m →‎See also: Add {{Inline cleanup tags}}
 
m Text replacement - "Wikipedia[^:]" to "CAPipedia"
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
Wikitext:
Wikitext:


<code><nowiki>[[File:Wikipedia-logo-v2-en.svg|thumb|left|Example caption{{Improve caption|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}]]</nowiki></code>
<code><nowiki>[[File:CAPipedialogo-v2-en.svg|thumb|left|Example caption{{Improve caption|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}]]</nowiki></code>


Output:
Output:
{{clear}}
{{clear}}
[[File:Wikipedia-logo-v2-en.svg|thumb|left|Example caption{{Improve caption|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}]]
[[File:CAPipedialogo-v2-en.svg|thumb|left|Example caption{{Improve caption|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}]]
{{clear}}
{{clear}}
====Missing caption====
====Missing caption====
Line 25: Line 25:
Wikitext:
Wikitext:


<code><nowiki>[[File:Wikipedia-logo-v2-en.svg|thumb|left|{{Improve caption|missing=y|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}]]</nowiki></code>
<code><nowiki>[[File:CAPipedialogo-v2-en.svg|thumb|left|{{Improve caption|missing=y|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}]]</nowiki></code>


Output:
Output:
{{clear}}
{{clear}}
[[File:Wikipedia-logo-v2-en.svg|thumb|left|{{Improve caption|missing=y|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}]]
[[File:CAPipedialogo-v2-en.svg|thumb|left|{{Improve caption|missing=y|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}]]
{{clear}}
{{clear}}


Line 50: Line 50:
"example": "January 2013",
"example": "January 2013",
"type": "date",
"type": "date",
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}",
"autovalue": "January 2024",
"required": true
"required": true
}
}

Latest revision as of 13:39, 23 January 2024

[[Category:Template documentation pages{{#translation:}}]]

This template can be used to tag image captions that need improvement, or images which need a caption.

Usage

Place this template within the caption of the image. If tagging a caption that needs improvement, place the template directly after the end of the caption's text without a space. If there is a full stop at the end of the caption, place the template directly after the full stop.

For images without any text in the caption, simply place the template in the caption.

See the Template data section for parameters.

Examples

Caption needing improvement

Wikitext:

[[File:CAPipedialogo-v2-en.svg|thumb|left|Example caption{{Improve caption|date=November 2024}}]]

Output:

File:CAPipedialogo-v2-en.svg
Example caption[improve caption]

Missing caption

Wikitext:

[[File:CAPipedialogo-v2-en.svg|thumb|left|{{Improve caption|missing=y|date=November 2024}}]]

Output:

File:CAPipedialogo-v2-en.svg
[needs caption]

Template data

<templatedata> { "params": { "missing": { "description": "If this parameter is passed and not empty, the text of the tag and hover text will change to indicate the image's caption is missing.", "type": "boolean", "suggested": true }, "reason": { "description": "Replaces the default hover text.", "type": "string", "suggested": true }, "date": { "description": "The date this tag was added. E.g., \"January 2013\" NOT \"jan13\"", "example": "January 2013", "type": "date", "autovalue": "January 2024", "required": true } }, "format": "inline", "description": "This template can be used to tag image captions that need improvement, or images which need a caption." } </templatedata>

See also

Template:Image captions for cleanup – banner template to tag an article, or a section of an article, as needing caption improvements