There are certain messages you can use, such as
[[MediaWiki:filehist-help]], [[mediawiki:metadata-help]], but they
aren't really in ideal position.
On commons, there is some user js that is sort of for this purpose:
https://commons.wikimedia.org/wiki/MediaWiki:Gadget-Stockphoto.js (and
associated .css) which adds a "Use this file on a wiki" button with
examples. Similarlly I think the MediaViewer extension also has a
button for examples.
If you're up for making your own extension, Check out the
'ImagePageAfterImageLinks' hook.
e.g. Something along the lines of
$wgHooks['ImagePageAfterImageLinks'][] = function ( $page, &$html ) {
$html .= wfMessage( 'image-page-extra-stuff'
)->inContentLanguage()->parse(); };
Untested, but in theory, placing that in LocalSettings.php would add a
new message named [[MediaWiki:image-page-extra-stuff]] to every file
page.
--
bawolff
On Sat, Aug 6, 2016 at 4:42 PM, Emanuele D'Arrigo <manu3d(a)gmail.com> wrote:
Greetings,
I'd like to customize the pre-defined content of a file page. Specifically,
one of my users has asked if it could have an "Example" section that can be
used to list a number of cut&paste-ready lines, i.e.
[[Media:MyFile.ext|MyDescription]]
I thought perhaps this was part of one of the system messages within the
MediaWiki namespace but I'm struggling to find which one.
Alternatively I could try and use the Boilerplate extension perhaps?
Thoughts?
Kind regards, Manu
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l