[go: nahoru, domu]

Wikipedia:Shortdesc helper: Difference between revisions

Content deleted Content added
Varixai (talk | contribs)
Reorganized the Enabling section and added additional details for other gadgets. Updated grammar for clarity.
Cleaned up image placement (to eliminate unnecessary white space in wide browser windows) and other matters, including "Anchor" template placement per the template's own instructions.
 
Line 28:
'''Shortdesc helper''' ('''SDH''') is a [[Wikipedia:Gadget|gadget]] for adding, editing, and importing [[WP:SHORTDESC|short descriptions]].
 
== <span class="anchor" id="Installation"></span> Enabling ==
{{anchor|Installation}}
# Navigate to the the [[Special:Preferences#mw-prefsection-gadgets|Gadgets tab]] of your Preferences page.
# In the "Editing" section, Check the box next to "''Shortdesc helper: easily add and edit page short descriptions''".
Line 42 ⟶ 41:
== Usage ==
{{further|Wikipedia:WikiProject Short descriptions#Editing using Shortdesc helper gadget}}
 
When activated, the article's short description will be displayed on the page immediately under the line "From Wikipedia, the free encyclopedia", and edits may be made by clicking the buttons to the right of the short description (see image). An edit summary may be added using the "summary" button.
 
Line 47:
 
By default, adding short descriptions to an article also adds the description to Wikidata if Wikidata has no description. This can be changed in the settings.
{{clear}}
 
== Options ==
[[File:Shortdesc_helper_settings_screenshot.png|left|thumb|391px|Settings as of version 3.4.3]]
Shortdesc helper may be configured using the settings window that can be accessed when editing or adding a short description by clicking the gear-wheel button on the right.
 
[[File:Shortdesc_helper_settings_screenshot.png|leftcenter|thumb|391px|Settings as of version 3.4.3]]
{{clear}}
 
== Installation on another wiki ==
Shortdesc helper will automatically detect if it is loaded on another wiki, and allow viewing and editing of Wikidata descriptions on those wikis.
 
=== For individual use ===
Add
 
{{#invoke:Sandbox/Galobtter/Shortdesc_helper|append}}
 
to [[Special:MyPage/common.js]] on that wiki to use the script on another wiki.
 
=== As a gadget ===
To install Shortdesc helper on another wiki, create a file named "MediaWiki:Gadget-Shortdesc-helper.js" with the content (comments there note how to localize):
 
{{#invoke:Sandbox/Galobtter/Shortdesc_helper|main}}
 
and create a CSS file named "MediaWiki:Gadget-Shortdesc-helper-pagestyles-vector.css" with the content of [[MediaWiki:Gadget-Shortdesc-helper-pagestyles-vector.css]].
 
Then, add to [[MediaWiki:Gadgets-definition]]:
 
<syntaxhighlight lang=text>
* Shortdesc-helper-loader[ResourceLoader|dependencies=mediawiki.api,mediawiki.notify,user.options,mediawiki.util|skins=vector,monobook,modern,timeless|peers=Shortdesc-helper-pagestyles-vector]|Shortdesc-helper.js