Šablona:ScaleImage: Porovnání verzí
Z Star Citizen CZ/SK Wiki
(Založena nová stránka s textem „<includeonly>Image:{{{imagename}}}|{{ #if:{{#pos:{{{newwidth|100}}}|px}}|{{{newwidth|100}}}| {{#expr: ({{#imgw: {{{imagename}}} }} * {{{newwidth|100}}})…“) |
|||
| (Není zobrazena jedna mezilehlá verze od stejného uživatele.) | |||
| Řádek 1: | Řádek 1: | ||
| − | <includeonly>[[Image:{{{imagename}}}|{{ #if:{{#pos:{{{newwidth|100}}}| | + | <includeonly>[[Image:{{{imagename}}}|{{ #if:{{#pos:{{{newwidth|100}}}|%}}|{{{newwidth|100}}}| {{#expr: ({{#imgw: {{{imagename}}} }} * {{{newwidth|100}}}) / 100 }}% }}|{{{caption|}}}]]</includeonly> |
| + | |||
| + | <noinclude> | ||
| + | Příklad: | ||
| + | <pre> | ||
| + | {{ScaleImage | ||
| + | |imagename=eland.png | ||
| + | |caption=Città di Eland | ||
| + | |newwidth=80px | ||
| + | }} | ||
| + | </pre> | ||
| + | </noinclude> | ||
Aktuální verze z 29. 3. 2019, 06:23
Příklad:
{{ScaleImage
|imagename=eland.png
|caption=Città di Eland
|newwidth=80px
}}