Difference between revisions of "Template:File Properties"

From Green Family Wiki
Jump to: navigation, search
m (5 revisions imported: Initial import from smithfam)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
* ''family'': Family the photo is associated with, if any; multiple families can be separated by semicolon (;)
 
* ''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 (;)
 
* ''place'': Place the photo is associated with, if any; multiple places can be separated by semicolon (;)
</noinclude><includeonly>{{#set:
+
Sets [[Property:File Name]], [[Property:File Caption]], [[Property:File Year]], [[Property:File Family]], [[Property:File Place]], and [[Property:File Relationship]].</noinclude><includeonly>{{#set:
 +
| 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}} }}
 +
| File Relationship={{#if: {{{family|}}} | {{#if: {{{place|}}} | both | family }} | {{#if: {{{place|}}} | place | none}} }}
 
}}{{For Each|{{{family|}}}|;||
 
}}{{For Each|{{{family|}}}|;||
 
| template=File Properties/Set Family
 
| template=File Properties/Set Family
Line 14: Line 16:
 
== File Properties ==
 
== File Properties ==
 
{| class="wikitable file-properties"
 
{| class="wikitable file-properties"
 +
|-
 +
! Name
 +
| {{Short File Name|{{PAGENAME}}}}
 
|-
 
|-
 
! Caption
 
! Caption

Latest revision as of 12:11, 7 December 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 (;)

Sets Property:File Name, Property:File Caption, Property:File Year, Property:File Family, Property:File Place, and Property:File Relationship.