Open main menu

Changes

no edit summary
<noinclude>
This template is used to extract the first paragraph from a given text. If the first paragraph of the text is longer than 1000 characters, only the first 997 characters are returned, and a <code><nowiki>&#2018230;</nowiki></code> is added.
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely returns them.
-->|<!-- if there are two or more paragraphs
-->{{#ifexpr: {{#var: varPos}} > 1000|<!--
-->{{#sub: {{{vartext|}}}|0|997}}&#2018230;<!--
-->|{{#explode_e: {{{vartext|}}}|\n|0}}<!--
-->}}<!-- ifexpr
-->|<!-- if there is one paragraph or less
-->{{#ifexpr: {{#len: {{{vartext|}}}|}} > 1000|<!--
-->{{#sub: {{{vartext|}}}|0|997}}&#2018230;<!--
-->|{{{vartext|}}}<!--
-->}}<!-- ifexpr
-->}}<!-- if
--></includeonly>