টেমপ্লেট:Userscript/নথি
অবয়ব
এটি টেমপ্লেট:Userscript-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল টেমপ্লেট পাতার অংশ নয়। |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
This template is used to create userscript listings, primarily for use at Wikipedia:User scripts, but it can be used on any page.
Usage
[সম্পাদনা]{{userscript |code= [.js address] |name= [script name] |doc= [documentation page address] }}
At least |code=
-or- |doc=
is required. The template will attempt to determine defaults for any information not entered.
- Check the accuracy of the links after placing this template! If any defaults are incorrect for your script, enter the necessary parameters explicitly.
- If you end up leaving the template with no "(source)" link produced, make sure your documentation page includes complete installation instructions, along with any necessary code page addresses.
- You can make up any name for the
|name
parameter. It is just for display purposes.
Default logic details |
---|
|
Additional parameters
[সম্পাদনা]- This template enables an automatic installation link for editors who use automatic installer scripts like User:Equazcion/ScriptInstaller. If you have reason to disable automatic installation for a particular script (e.g. because it requires more than just the usual importScript line), add the following parameter:
|noautoinstall=yes
. - To suppress the creation of a footnote with installation instructions, set
|noref=yes
.
Examples
[সম্পাদনা]All parameters specified: {{userscript|name=sharebox!!!!!|code=User:TheDJ/sharebox.js|doc=User:TheDJ/sharebox}}
- Produces: sharebox!!!!![১] (source)
Code only: {{userscript|code=User:TheDJ/sharebox.js}}
Doc only: {{userscript|doc=User:TheDJ/sharebox}}
- Produces: sharebox
Use {{reflist}}
to produce specific installation instructions:
- ↑ Copy the following code, click here, then paste:
{{subst:iusc|1=User:TheDJ/sharebox.js}}
- ↑ Copy the following code, click here, then paste:
{{subst:iusc|1=User:TheDJ/sharebox.js}}
{{Wikipedia:User scripts/Navbox}}