Jump to content

User:Pemaksa/Modularize

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Pemaksa (talk | contribs) at 11:02, 11 October 2022 (Created page with '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(): ;If walking This script can be imported to skin.js or common.js by adding:<br> {{code |lang=javascript |code=importScript( '{{FULLPAGENAME}}.js' );// {{FULLPAGENAM...'). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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():

If walking

This script can be imported to skin.js or common.js by adding:
importScript( 'User:Pemaksa/Modularize.js' );// [[User:Pemaksa/Modularize.js]]
or
Modularize[1] (source)

  1. ^ Copy the following code, edit your user JavaScript, then paste:
    {{subst:lusc|1=User:Pemaksa/Modularize.js}}