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|{{#arr:getitem|{{#arr:getitem|{{#arr:match|{{{1}}}|(File:{{!}}Image:{{!}}image\{{!}}).*\.(jpg{{!}}JPG)}}|0|}}|0|}}}}
+
{{ImageDataRow|TeaserImg|{{#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}}}
 
</div>
 
</div>
{{setProp|TeaserText|{{#eval:text|{{#eval:parse|{{first_sentence|1={{{1}}}}}}}}}}}
 
 
{{setProp|Teaser100|{{#eval:parse|{{first_sentence|1={{{1}}}}}}}}}
 
{{setProp|Teaser100|{{#eval:parse|{{first_sentence|1={{{1}}}}}}}}}
 
{{setProp|teaser|{{#replace:{{#replace:{{#replace:{{{1|}}}|320px|282px}} |250px|221px}}  |568px|282px}}}}
 
{{setProp|teaser|{{#replace:{{#replace:{{#replace:{{{1|}}}|320px|282px}} |250px|221px}}  |568px|282px}}}}
 
{{#prop:set|Teaser|{{#replace:{{#replace:{{#replace:{{{1|}}}|320px|282px}} |250px|221px}}  |568px|282px}}}}}}</includeonly>
 
{{#prop:set|Teaser|{{#replace:{{#replace:{{#replace:{{{1|}}}|320px|282px}} |250px|221px}}  |568px|282px}}}}}}</includeonly>

Revision as of 21:05, 25 May 2015