Difference between revisions of "Template:Teaser"

From Culture.si
Line 1: Line 1:
 
<includeonly>{{#if:{{#str:trim|{{{1|}}}}}|{{dataRow|Teaser100|{{first_sentence|{{{1}}}}}}}
 
<includeonly>{{#if:{{#str:trim|{{{1|}}}}}|{{dataRow|Teaser100|{{first_sentence|{{{1}}}}}}}
{{ImageDataRow|TeaserImg|{{{image|{{#arr:getitem|{{#arr:getitem|{{#arr:match|{{{1}}}|(File:{{!}}Image:{{!}}image\{{!}}).*\.(jpg{{!}}JPG)}}|0|}}|0|}}}}}}}{{dataRow|TeaserText|{{#eval:text|{{first_sentence|{{{1}}}}}}}}}
+
{{ImageDataRow|TeaserImg|{{#if:{{{image}}}||{{#arr:getitem|{{#arr:getitem|{{#arr:match|{{{1}}}|(File:{{!}}Image:{{!}}image\{{!}}).*\.(jpg{{!}}JPG)}}|0|}}|0|}}}}}}{{dataRow|TeaserText|{{#eval:text|{{first_sentence|{{{1}}}}}}}}}
 
<div id="teaser">
 
<div id="teaser">
 
{{{1}}}
 
{{{1}}}

Revision as of 17:15, 11 August 2015