Template:Picture with subtitle: Difference between revisions

Template page
(Tried to generate an fix template)
 
(Update to German Version)
Line 1: Line 1:
{{#switch: {{{4}}}
{{#switch: {{{4}}}| center = <center>
| center = <center>
<br>
{{(!}}
{{(!}}
{{!-}}
{{!-}}
{{!}}[[File:{{{1}}}{{!}}{{{5}}}{{!}}Picture {{#expr:{{{2}}}}}: {{{3}}}]]
{{!}}[[File:{{#ifexist: File:{{{1|}}} |{{{1}}}{{!}}{{{5}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} |Figure {{{2}}}: |}}{{{3}}}]]
{{!-}}
{{!-}}
{{!}}  
{{!}}  
{{!-}}
{{!-}}
{{!}}align="left" style="font-size:85%;"{{!}}'''Picture {{#expr:{{{2}}}}}: {{{3}}}'''
{{!}}align="left" style="font-size:85%; width: {{{5}}};"{{!}}'''{{#if: {{{2|}}} |Figure {{{2}}}: |}} {{{3}}}'''
{{!)}}
{{!)}}
</center>
</center>
Line 14: Line 12:
| right = {{(!}} style="float:{{{4}}}"
| right = {{(!}} style="float:{{{4}}}"
{{!-}}
{{!-}}
{{!}}[[File:{{{1}}}{{!}}{{{5}}}{{!}}Picture {{#expr:{{{2}}}}}: {{{3}}}]]
{{!}}[[File:{{#ifexist: File:{{{1|}}} |{{{1}}}{{!}}{{{5}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} |Figure {{{2}}}: |}}{{{3}}}]]
{{!-}}
{{!-}}
{{!}}  
{{!}}  
{{!-}}
{{!-}}
{{!}}style="font-size:85%; align:left;"{{!}}'''Picture {{#expr:{{{2}}}}}: {{{3}}}'''
{{!}}style="font-size:85%; align:left; width: {{{5}}};"{{!}}'''{{#if: {{{2|}}} |Figure {{{2}}}: |}} {{{3}}}'''
{{!)}}
{{!)}}
| #default = {{(!}}
| #default = {{(!}}
{{!-}}
{{!-}}
{{!}}[[File:{{{1}}}{{!}}{{{4}}}{{!}}Picture {{#expr:{{{2}}}}}: {{{3}}}]]
{{!}}[[File:{{#ifexist: File:{{{1|}}} |{{{1}}}{{!}}{{{4}}} |No-photo.jpg{{!}}300px{{!}}link=Special:Upload&wpDestFile={{{1}}}}}{{!}}{{#if: {{{2|}}} |Figure {{{2}}}: |}}{{{3}}}]]
{{!-}}
{{!-}}
{{!}}  
{{!}}  
{{!-}}
{{!-}}
{{!}}style="font-size:85%; align:left;"{{!}}'''Picture {{#expr:{{{2}}}}}: {{{3}}}'''
{{!}}style="font-size:85%; align:left; width: {{{4}}};"{{!}}'''{{#if: {{{2|}}} |Figure {{{2}}}: |}} {{{3}}}'''
{{!)}}
{{!)}}
}}
}}<noinclude>
<noinclude>


This Template generates the Pictur subtitle. The syntax is as followed:
This Template generates the Pictur subtitle. The syntax is as following:
<br>
<br>


Line 37: Line 34:
<br>
<br>
<br>
<br>
For example:
For example:<br>
<br>
* Without positioning
 
<nowiki>{{Picture_with_subtitle | DMXC2_Manual_Kanaluebersicht_Fenster.png | 2.2 | The channel overview | 400px}}</nowiki>
<nowiki>{{Picture_with_subtitle | DMXC2_Manual_Kanaluebersicht_Fenster.png | 2 | The channel overview | center | 400px}}</nowiki>
* With positioning
<nowiki>{{Picture_with_subtitle | DMXC2_Manual_Kanaluebersicht_Fenster.png | 2.2 | The channel overview | center | 400px}}</nowiki>
</noinclude>
</noinclude>

Revision as of 12:25, 2 March 2025

{{{3}}}
{{{3}}}

This Template generates the Pictur subtitle. The syntax is as following:

{{picture_with_subtitle | <Filename> | <Number of picture> | <Subtitle> | <Position (optional)> | <Picturesize (optional)>}}

For example:

  • Without positioning

{{Picture_with_subtitle | DMXC2_Manual_Kanaluebersicht_Fenster.png | 2.2 | The channel overview | 400px}}

  • With positioning

{{Picture_with_subtitle | DMXC2_Manual_Kanaluebersicht_Fenster.png | 2.2 | The channel overview | center | 400px}}