Template:File Properties: Difference between revisions

From Fish Family Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
* ''place'': Place the photo is associated with, if any; multiple places can be separated by semicolon (;)
* ''place'': Place the photo is associated with, if any; multiple places can be separated by semicolon (;)
</noinclude><includeonly>{{#set:
</noinclude><includeonly>{{#set:
| File Name={{#regex: {{PAGENAME}} | /(.*?)(\.[^.]*)?$/ | \1}}
| File Name={{Short File Name|{{PAGENAME}}}}
| File Caption={{#if: {{{caption|}}} | {{{caption}}} | {{PAGENAME}} }}
| File Caption={{#if: {{{caption|}}} | {{{caption}}} | {{PAGENAME}} }}
| File Year={{Year| {{{year|}}} | {{REVISIONYEAR}} }}
| File Year={{Year| {{{year|}}} | {{REVISIONYEAR}} }}
Line 15: Line 15:
== File Properties ==
== File Properties ==
{| class="wikitable file-properties"
{| class="wikitable file-properties"
|-
! Name
| {{Short File Name|{{PAGENAME}}}}
|-
|-
! Caption
! Caption

Revision as of 06:12, 1 July 2015

Generate a table describing a file's properties, and set the associated properties.

  • caption: Description of the file
  • year: Year of the file; default is the page modification year
  • family: Family the photo is associated with, if any; multiple families can be separated by semicolon (;)
  • place: Place the photo is associated with, if any; multiple places can be separated by semicolon (;)