Template:Infobox file: Difference between revisions

Template page
Content added Content deleted
m (Borderman moved page Template:File-infobox to Template:Infobox file: naming inline with other templates)
(template updated)
 
Line 1: Line 1:
<includeonly>
<onlyinclude>
{|class="rohtable" style="width:100%;"
{|class="wikitable" style="width:100%;"
|-
|-
|style="width:9em; background:#50ab8a; text-align:right; padding-right:5px; color:white;" | '''Description'''
{{#if:{{{description}}}|{{!}}style="width:10em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Description'''
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{description}}}}}
|{{{1|{{{Description}}}}}}
|-
|-
|style="width:9em; background:#50ab8a; text-align:right; padding-right:5px; color:white;" | '''Date'''
{{#if:{{{author}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Author'''
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{author}}}}}
|{{{2|{{{Date}}}}}}
|-
|-
|style="width:9em; background:#50ab8a; text-align:right; padding-right:5px; color:white;" | '''Source'''
{{#if:{{{published_date}}}|{{!}}style="width:10em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Published date'''
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{published_date}}}}}
|{{{3|{{{Source}}}}}}
|-
|-
|style="width:9em; background:#50ab8a; text-align:right; padding-right:5px; color:white;" | '''Author'''
{{#if:{{{published_by}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Published by'''
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{published_by}}}}}
|{{{4|{{{Author}}}}}}
|-
|-
|style="width:9em; background:#50ab8a; text-align:right; padding-right:5px; color:white;" | '''Published'''
{{#if:{{{source}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Source'''
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{source}}}}}
|{{{5|{{{Published}}}}}}
|-
|-
|style="width:9em; background:#50ab8a; text-align:right; padding-right:5px; color:white;" | '''Licensing'''
{{#if:{{{catalogue_number}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Catalogue No.'''
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{catalogue_number}}}}}
|{{{6|{{{Licensing}}}}}}
|-
|}</onlyinclude>
{{#if:{{{database_number}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Database No.'''
=== Usage ===
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{database_number}}}}}
<pre>{{File-infobox
|-
|Description=
{{#if:{{{permission}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Permission'''
|Date=
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{permission}}}}}
|Source=
|-
|Author=
{{#if:{{{series}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Series'''
|Published=
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{series}}}}}
|Licensing=}}</pre>
|-

{{#if:{{{subject}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''Subject'''
<noinclude>
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{subject}}}}}
[[Category:Template]]
|-
[[Category:Infobox templates]]
{{#if:{{{file_type}}}|{{!}}style="width:9em; background:#; text-align:; padding-right:5px; color:#50ab8a;" {{!}} '''File type'''
</noinclude>
{{!}}style="padding-left:5px; vertical-align: top;" colspan="2" {{!}} {{{file_type}}}}}
|}</includeonly><noinclude>{{doc|{{Infobox file/doc}}}}</noinclude>

Latest revision as of 10:55, 30 April 2024

Template documentation

Usage

This infobox template should always be used to provide additional information relating to the uploaded file on individual file pages. Unused parameters will be hidden. Copy and paste the following into the summary section on the file page and fill out as many parameters as necessary. Licensing should be included for all files uploaded below this template.

{{Infobox file
 |description      =
 |author           =
 |published_date   =
 |published_by     =
 |source           = 
 |catalogue_number =
 |database_number  =
 |permission       =
 |series           =
 |subject          =
 |file_type        =
}}

Example

Below is how it looks with most of the parameters filled in.

Description Men of the Lonsdale Battalion involved with bayonet training.
Author Various authors and illustrators.
Published date 1915
Source The Lonsdale Battalion Border Regiment, September 1914 to June 1915.
Permission This publication is in the Public Domain. It is no longer in copyright in the United Kingdom and the United States of America.
Subject Military
File type Photograph
The above documentation is transcluded from Template:Infobox file/doc.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.