Open main menu

Changes

no edit summary
<noinclude>
Use this template to extract the first page number from a page-page string. For instance, if <code><nowiki>|pages="23-45"</nowiki></code>, the template will return 23. If <code><nowiki>|pages="234"</nowiki></code>, the template will return 234. If an empty string is passed as a value, an empty string is returned.
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
</noinclude><includeonly><!--
-->{{#if: {{{pages|}}}|<!--
-->{{#vardefine: varSepPos|{{#pos: {{{pages|}}}|-}}|}}<!-- -->{{#if: {{#var: varSepPos}}|<!--
-->|<!-- separator is found: extract first page
--><!--