Template:Credited image: Difference between revisions
Template page
More actions
Create credited image template for proper image attribution |
Increase default image width from frameless to 800px for better presentation |
||
| Line 1: | Line 1: | ||
<includeonly><div class="credited-image" style="text-align:center; margin:1em 0;">[[File:{{{1}}}|{{{width| | <includeonly><div class="credited-image" style="text-align:center; margin:1em 0;">[[File:{{{1}}}|{{{width|800px}}}|{{{caption|}}}{{{credit|}}}]]{{#if:{{{credit|}}}|<div class="image-credit" style="font-style:italic; font-size:0.9em; color:#666; margin-top:0.3em;">{{{credit}}}</div>}}</div></includeonly><noinclude> | ||
== Credited Image Template == | == Credited Image Template == | ||
Displays an uploaded image with an optional credit/attribution line beneath it. | Displays an uploaded image with an optional credit/attribution line beneath it. | ||
Revision as of 21:01, 11 March 2026
Credited Image Template
Displays an uploaded image with an optional credit/attribution line beneath it.
Usage
{{Credited image|filename.jpg|credit=Photographer Name}}
{{Credited image|filename.jpg|credit=Photographer Name|width=400px}}
{{Credited image|filename.jpg|width=600px}}
Parameters
- 1 (required): The filename of the uploaded image
- credit: The photographer/artist credit text
- width: Image width (default: frameless/original)
- caption: Optional caption for the image alt text
Example
Calliopea Pictures
Calliopea Pictures