Difference between revisions of "Template:Infobox Wikipedia user script"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]
imported>Headbomb ((s)) |
imported>Headbomb (| label7 = Maintainer(s) | data7 = {{{maintainer|}}}) |
||
| Line 35: | Line 35: | ||
| data6 = {{{updated|{{#time:F j, Y|{{REVISIONTIMESTAMP:{{{mainsource|{{#ifexist:{{FULLPAGENAME}}.js|{{FULLPAGENAME}}.js|{{#ifexist:{{FULLPAGENAME}}.css|{{FULLPAGENAME}}.css|{{FULLPAGENAME}}}}}}}}}}}}}<br /> ({{Time ago|{{#time:H:i j F Y|{{REVISIONTIMESTAMP:{{{mainsource|{{#ifexist:{{FULLPAGENAME}}.js|{{FULLPAGENAME}}.js|{{#ifexist:{{FULLPAGENAME}}.css|{{FULLPAGENAME}}.css|{{FULLPAGENAME}}}}}}}}}}}}}|min_magnitude=days}})}}} | | data6 = {{{updated|{{#time:F j, Y|{{REVISIONTIMESTAMP:{{{mainsource|{{#ifexist:{{FULLPAGENAME}}.js|{{FULLPAGENAME}}.js|{{#ifexist:{{FULLPAGENAME}}.css|{{FULLPAGENAME}}.css|{{FULLPAGENAME}}}}}}}}}}}}}<br /> ({{Time ago|{{#time:H:i j F Y|{{REVISIONTIMESTAMP:{{{mainsource|{{#ifexist:{{FULLPAGENAME}}.js|{{FULLPAGENAME}}.js|{{#ifexist:{{FULLPAGENAME}}.css|{{FULLPAGENAME}}.css|{{FULLPAGENAME}}}}}}}}}}}}}|min_magnitude=days}})}}} | ||
| − | | label7 = | + | | label7 = Maintainer(s) |
| − | | data7 = {{{ | + | | data7 = {{{maintainer|}}} |
| − | | label8 = [[ | + | | label8 = [[Web browser|Browser]] support |
| − | | data8 = {{{ | + | | data8 = {{{browsers|}}} |
| − | | label9 = | + | | label9 = [[WP:Skin|Skin]] support |
| − | | data9 = {{{ | + | | data9 = {{{skins|}}} |
| − | | label10 = GitHub repository | + | | label10 = Source{{#if:{{{beta|}}}|<hr />Beta}} |
| − | | | + | | data10 = {{{source| {{#if:{{{mainsource|}}}| [[{{{mainsource|}}}]] }} }}}{{#if:{{{beta|}}}|<hr />{{{beta}}}}} |
| + | |||
| + | | label11 = GitHub repository | ||
| + | | data11 = {{#ifeq:{{{github|}}}|||{{GitHub|{{{github}}}}}}} | ||
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> | ||
Revision as of 17:57, 16 February 2020
| Updated | February 16, 2020 (Template:Time ago) |
|---|
[[Category:Infobox templates|Template:Remove first word]]
Example
![]() MyScript in action | |
| Description | Does something useful |
|---|---|
| Author(s) | Username |
| Status | Stable |
| First released | Template:Start date and age |
| Version | 2.1.0 |
| Updated | Template:Start date and age |
| Browser support | Firefox, Chrome |
| Skin support | Vector |
| Source | User:Username/Example.js |
{{infobox user script
| name = MyScript
| desc = Does something useful
| author = [[User:Username|Username]]
| updated = {{start date and age|2013|03|03}}
| status = Stable
| released = {{start date and age|2008|07|07}}
| version = 2.1.0
| source = [[User:Username/Example.js]]
| skins = Vector
| browsers = [[Firefox]], [[Google Chrome|Chrome]]
| logo = [[File:Wikimedia-logo.svg|50px]]
| screenshot = [[File:Floater script screenshot.png|300px]]
| screenshot-caption = MyScript in action
}}
- Add
|styled = yesfor an alternate colored version (see second example):
| MyScript | |
|---|---|
| Description | Does something useful |
| Author(s) | Username |
| Status | Stable |
| First released | Template:Start date and age |
| Version | 2.1.0 |
| Updated | Template:Start date and age |
| Browser support | Firefox, Chrome |
| Skin support | Vector |
| Source | User:Username/Example.js |
{{infobox user script
| name = MyScript
| desc = Does something useful
| author = [[User:Username|Username]]
| updated = {{start date and age|2013|03|03}}
| released = {{start date and age|2008|07|07}}
| status = Stable
| version = 2.1.0
| source = [[User:Username/Example.js]]
| skins = Vector
| browsers = [[Firefox]], [[Google Chrome|Chrome]]
| styled = yes
}}
Usage
This infobox is intended to be used on user script description/documentation pages.
Parameters
- name: The name of the script. Defaults to page name.
- desc: A short description of what the script does.
- author: The script author's user name.
- release: When the script was first released.
- updated: The date of last update. Use {{start date and age}} to automatically display time since the last update.
- status: Script's development status. You may describe this any way you like, such as alpha/beta/release, or stable/experimental/inactive.
- source: The source code page.
- skins: Supported skins.
- browsers: Supported web browser(s).
- github: The script's repository on GitHub.
- gitlab: The script's repository on GitLab.
- logo: Image file address for logo
- screenshot: Image file address for screenshot
- screenshot-caption: Text caption for screenshot
- styled: Set to
yesfor an alternate colored version (see example above)
The following parameters can aid in automatic installation:
- mainsource: The main source file, which is to be loaded from the user's custom script.
- install-target: The preferred page on which the script should be included. The default is
common.js.
{{Wikipedia:User scripts/Navbox}}
| The above documentation is transcluded from Template:Infobox Wikipedia user script/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
