Difference between revisions of "Template:Teaser"

From Culture.si
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{{Teaser
 
{{Teaser
 
| image = FileName.jpg
 
| image = FileName.jpg
| caption = Caption for the teaser image
+
| caption = Caption for the teaser image, will be read from the image page if missing
| Text of the teaser .... Use 1= if the text contains equal signs.
+
|  
 +
Text of the teaser .... Use 1= if the text contains equal signs.
 
}}
 
}}
 
</nowiki></pre></noinclude><includeonly><div id="teaser">
 
</nowiki></pre></noinclude><includeonly><div id="teaser">
Line 9: Line 10:
 
| {{#ifeq:{{{caption}}}|{{{caption|}}}|{{Image|{{{image}}}|caption={{{caption}}}}}|{{Image|{{{image}}}}}
 
| {{#ifeq:{{{caption}}}|{{{caption|}}}|{{Image|{{{image}}}|caption={{{caption}}}}}|{{Image|{{{image}}}}}
 
}}{{#set:TeaserImgDesc={{{caption|{{#show:image:{{{image}}}|?Description}}}}}}}
 
}}{{#set:TeaserImgDesc={{{caption|{{#show:image:{{{image}}}|?Description}}}}}}}
}}{{{1}}}
+
}}
 +
{{{1}}}
 
</div>
 
</div>
 
{{{=
 
{{{=
| real_image = {{{image|{{#arr:getitem|{{#arr:getitem|{{#arr:match|{{{1}}}|(File:{{!}}Image:{{!}}image\{{!}}).*\.(jpg{{!}}JPG)}}|0|}}|0|}}}}}
+
| real_image = {{#if:{{{image|}}}|File:{{{image}}}|{{#arr:getitem|{{#arr:getitem|{{#arr:match|{{{1}}}|(File:{{!}}Image:{{!}}image\{{!}}).*\.(jpg{{!}}JPG)}}|0|}}|0|}}}}
 
| intro = {{first_sentence|{{{1}}}}}
 
| intro = {{first_sentence|{{{1}}}}}
 
}}}{{#if:{{#str:trim|{{{1|}}}}}
 
}}}{{#if:{{#str:trim|{{{1|}}}}}

Latest revision as of 18:36, 13 April 2021

{{Teaser
| image = FileName.jpg
| caption = Caption for the teaser image, will be read from the image page if missing
| 
Text of the teaser .... Use 1= if the text contains equal signs.
}}