User:Pemaksa/Modularize

This makes the function more specific and harder to apply to different situations. A cleaner way is to return the link and cover the extra cases in the main functions that need them. This turns addLink into the more generic createLink: This script can be imported to skin.js or common.js by adding: or
 * If walking