Template

MediaInfo: Difference between revisions

From Illustrations in German Translations of Mark Twain's Works

Undo revision 1193 by HMHTEST (talk)
Tag: Undo
Undo revision 1192 by HMHTEST (talk)
Tag: Undo
Line 1: Line 1:
__NOTOC__
__NOTOC__
=== Use of this Template ===
=== Use of this Template ===
* Use on File pages to provide metadata for MediaViewer.
* Use on File pages to provide plain metadata that MediaViewer will actually display.
* Variables:
* Variables:
** title       = short title of the image
** title = short title of the image
** chapter     = chapter reference (e.g. "Chapter 1")
** chapter = chapter reference (e.g. "Chapter 1")
** illustration= illustration number
** illustration = illustration number (e.g. "Illustration 5")
** illustrator = name of the illustrator
** illustrator = name of the illustrator
** year       = year of creation/publication
** year = year of creation/publication
** tags       = comma-separated list of tags
** tags = comma-separated list of tags
* Copy: <nowiki>{{MediaInfo|title=|chapter=|illustration=|illustrator=|year=|tags=}}</nowiki>
 
* Copy: <nowiki>{{File description
| title       =  
| chapter     =  
| illustration=  
| illustrator =  
| year       =  
| tags       =  
}}</nowiki>
 


=== Content of this Template ===
=== Content of this Template ===
==== As Wikitext ====
==== As Wikitext ====
<pre><nowiki>
<pre><nowiki>
{{MediaInfo
'''Title:''' {{{title|}}}
| title      = {{{title|}}}
{{#if:{{{chapter|}}}| • '''Chapter:''' {{{chapter}}} }}
| chapter     = {{{chapter|}}}
{{#if:{{{illustration|}}}| • '''Illustration:''' {{{illustration}}} }}
| illustration= {{{illustration|}}}
{{#if:{{{illustrator|}}}| • '''Illustrator:''' {{{illustrator}}} }}
| illustrator = {{{illustrator|}}}
{{#if:{{{year|}}}| • '''Year:''' {{{year}}} }}
| year       = {{{year|}}}
{{#if:{{{tags|}}}| • '''Tags:''' {{{tags}}} }}
| tags        = {{{tags|}}}
}}
</nowiki></pre>
</nowiki></pre>


==== As Rendered On This Page ====
==== As Rendered On This Page ====
<onlyinclude>
<onlyinclude>
{{MediaInfo
'''Title:''' {{{title|}}}
| title      = {{{title|}}}
{{#if:{{{chapter|}}}| • '''Chapter:''' {{{chapter}}} }}
| chapter     = {{{chapter|}}}
{{#if:{{{illustration|}}}| • '''Illustration:''' {{{illustration}}} }}
| illustration= {{{illustration|}}}
{{#if:{{{illustrator|}}}| • '''Illustrator:''' {{{illustrator}}} }}
| illustrator = {{{illustrator|}}}
{{#if:{{{year|}}}| • '''Year:''' {{{year}}} }}
| year       = {{{year|}}}
{{#if:{{{tags|}}}| • '''Tags:''' {{{tags}}} }}
| tags        = {{{tags|}}}
}}
</onlyinclude>
</onlyinclude>

Revision as of 19:14, 9 September 2025

Use of this Template

  • Use on File pages to provide plain metadata that MediaViewer will actually display.
  • Variables:
    • title = short title of the image
    • chapter = chapter reference (e.g. "Chapter 1")
    • illustration = illustration number (e.g. "Illustration 5")
    • illustrator = name of the illustrator
    • year = year of creation/publication
    • tags = comma-separated list of tags
  • Copy: {{File description | title = | chapter = | illustration= | illustrator = | year = | tags = }}


Content of this Template

As Wikitext

'''Title:''' {{{title|}}}
{{#if:{{{chapter|}}}| • '''Chapter:''' {{{chapter}}} }}
{{#if:{{{illustration|}}}| • '''Illustration:''' {{{illustration}}} }}
{{#if:{{{illustrator|}}}| • '''Illustrator:''' {{{illustrator}}} }}
{{#if:{{{year|}}}| • '''Year:''' {{{year}}} }}
{{#if:{{{tags|}}}| • '''Tags:''' {{{tags}}} }}


As Rendered On This Page

Title: