VID-1888 Add hook to add type='navigation' to galleries if needed
VID-1888 Split out anonymous function into named function
VID-1888 Change param value, remove param if no links
Its, not it's
Merge pull request #4467 from Wikia/VID-1888

VID-1888 Add hook to add type='navigation' to galleries if needed