mediawiki: use native min/floor funcs rather than inline_template

..but be cautious about it by not using the result just yet.
A follow-up patch will replace the inline_template call.

Change-Id: I20c205d3854aeb76abf2c6cb4404f3a2ba8dc343
Merge "mediawiki: use native min/floor funcs rather than inline_template" into production