Template:Image with Caption: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{4}}}| center = <center>
<includeonly>{{#switch: {{{4}}}| center = <center>
{{(!}}
{{(!}}
{{!-}}
{{!-}}
{{!}}[[file:{{#ifexist: Datei:{{{1|}}} |{{{1}}}{{!}}{{{5}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} | {{{2}}} |}}{{{3}}}]]
{{!}}[[File:{{#ifexist: File:{{{1|}}} |{{{1}}}{{!}}{{{5}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} | {{{2}}} |}}{{{3}}}]]
{{!-}}
{{!-}}
{{!}}  
{{!}}  
Line 12: Line 12:
| right = {{(!}} style="float:{{{4}}}"
| right = {{(!}} style="float:{{{4}}}"
{{!-}}
{{!-}}
{{!}}[[file:{{#ifexist: Datei:{{{1|}}} |{{{1}}}{{!}}{{{5}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} | {{{2}}} |}}{{{3}}}]]
{{!}}[[File:{{#ifexist: File:{{{1|}}} |{{{1}}}{{!}}{{{5}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} | {{{2}}} |}}{{{3}}}]]
{{!-}}
{{!-}}
{{!}}  
{{!}}  
Line 20: Line 20:
| #default = {{(!}}
| #default = {{(!}}
{{!-}}
{{!-}}
{{!}}[[file:{{#ifexist: Datei:{{{1|}}} |{{{1}}}{{!}}{{{4}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} | {{{2}}} |}}{{{3}}}]]
{{!}}[[File:{{#ifexist: File:{{{1|}}} |{{{1}}}{{!}}{{{4}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} | {{{2}}} |}}{{{3}}}]]
{{!-}}
{{!-}}
{{!}}  
{{!}}  
Line 26: Line 26:
{{!}}style="font-size:85%; align:left; width: {{{4}}};"{{!}}'''{{#if: {{{2|}}} | {{{2}}} |}} {{{3}}}'''
{{!}}style="font-size:85%; align:left; width: {{{4}}};"{{!}}'''{{#if: {{{2|}}} | {{{2}}} |}} {{{3}}}'''
{{!)}}
{{!)}}
}}
}}</includeonly>
<noinclude>
<noinclude>



Latest revision as of 21:20, 2 March 2025


This template creates a caption. The syntax is:

{{Image_With_Caption | <File name> | <Image number> | <Caption> | <Position (optional)> | <Image size (optional)>}}

for example:

  • without position
{{Image_With_Caption | DMXC2_Manual_Kanaluebersicht_Fenster.png | 2.2 | Die Kanalübersicht | 400px}}
  • with position
{{Image_With_Caption | DMXC2_Manual_Kanaluebersicht_Fenster.png | 2.2 | Die Kanalübersicht | center | 400px}}