mediawiki::web: use floor/min instead of inline_template

Change-Id: Ib92f7723b7b5c9dc9f6d4db57ca426b5254fe680