Template

MediaInfo: Difference between revisions

From Illustrations in German Translations of Mark Twain's Works

No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
__NOTOC__
__NOTOC__
=== Use of this Template ===
=== Use of this Template ===
* Use on File pages to provide plain metadata that MediaViewer will actually display.
* Use on File pages to provide metadata for MediaViewer.
* 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 (e.g. "Illustration 5")
** illustration= illustration number
** 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>
'''Title:''' {{{title|}}}
{{MediaInfo
{{#if:{{{chapter|}}}| • '''Chapter:''' {{{chapter}}} }}
| title       = {{{title|}}}
{{#if:{{{illustration|}}}| • '''Illustration:''' {{{illustration}}} }}
| chapter    = {{{chapter|}}}
{{#if:{{{illustrator|}}}| • '''Illustrator:''' {{{illustrator}}} }}
| illustration= {{{illustration|}}}
{{#if:{{{year|}}}| • '''Year:''' {{{year}}} }}
| illustrator = {{{illustrator|}}}
{{#if:{{{tags|}}}| • '''Tags:''' {{{tags}}} }}
| year        = {{{year|}}}
| tags        = {{{tags|}}}
}}
</nowiki></pre>
</nowiki></pre>


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

Revision as of 19:03, 9 September 2025

Use of this Template

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

Content of this Template

As Wikitext

{{MediaInfo
 | title       = {{{title|}}}
 | chapter     = {{{chapter|}}}
 | illustration= {{{illustration|}}}
 | illustrator = {{{illustrator|}}}
 | year        = {{{year|}}}
 | tags        = {{{tags|}}}
}}

As Rendered On This Page

Template loop detected: Template:MediaInfo