Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Credited image: Difference between revisions

Template page
Increase default image width from frameless to 800px for better presentation
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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>
<includeonly><div class="credited-image" style="text-align:center; margin:1em 0;">[[File:{{{1}}}|{{{width|400px}}}|{{{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.
Line 11: Line 11:


=== Parameters ===
=== Parameters ===
* '''1''' (required): The filename of the uploaded image
* '''image''' (required): The filename of the uploaded image
* '''credit''': The photographer/artist credit text
* '''credit''': The photographer/artist credit text
* '''width''': Image width (default: frameless/original)
* '''width''': Image width (default: frameless/original)

Latest revision as of 21:28, 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

  • image (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
Contents