Difference between revisions of "Template:Teaser"
Line 1: | Line 1: | ||
− | <includeonly>{ | + | <includeonly>{{{image={{#arr:getitem|{{#arr:getitem|{{#arr:match|{{{1}}}|(File:{{!}}Image:{{!}}image\{{!}}).*\.(jpg{{!}}JPG)}}|0|}}|0|}}}}}}}{{{intro={{first_sentence|{{{1}}}}}}}} |
− | + | {{#if:{{#str:trim|{{{1|}}}}}|{{dataRow|Teaser100|{{{intro}}}}} | |
+ | {{ImageDataRow|TeaserImg|{{{image}}}}}{{dataRow|TeaserText|{{#eval:text|{{{intro}}}}}}} | ||
<div id="teaser"> | <div id="teaser"> | ||
{{{1}}} | {{{1}}} | ||
</div> | </div> | ||
− | {{setProp|Teaser100|{{#eval:parse| | + | {{#data:set|Teaser|page={{FULLPAGENAME}}|intro={{{intro}}}|image={{{image}}}}} |
+ | {{setProp|Teaser100|{{#eval:parse|{{{intro}}}}}}} | ||
{{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> |