„Wikipédia:Látszer” változatai közötti eltérés

Tartalom törölve Tartalom hozzáadva
Nincs szerkesztési összefoglaló
1. sor:
[[Image:popup-preview.png|thumb|400px]]
 
 
==Fordítandó==
Az előnézet cucc <!--légyszi légyszi legyen ez a hivatalos neve :) --> segítségével könnyen el lehet a Wikipédia cikkek elejét olvasni és sok wikipédiás tevékenység megoldható vele, az egér link fölött tartásával.
 
46 ⟶ 43 sor:
* Gyorsbillenytűk (opcionális)
* Linkek automatikus javítása az átirányítások és egyértelműsítő lapok átugrására (opcionális) (a magyar fordításnál még nem tesztelt, illetve a huwikin nem biztos, hogy működik)
<!--
 
== Installation ==
 
73 ⟶ 70 sor:
To install the script on the commons or wiktionary, repeat this procedure on those wikis.
To '''uninstall''' the script, delete the above lines from the same page and clear your browser's cache.
-->
== Használati útmutató==
Ez az eszköz előugró ablakocskákat hoz létre ha egy link vagy kép fölé viszed az egeret.
 
A vitathatóan legfontosabb képességeit a figyelőlistánál lehet használni.
== Usage guide ==
 
This tool generates "popup hints" when you hover the mouse pointer over active links and images.
 
Many of the arguably most important features can be used from the watchlist.
 
*hover over a diff link to show a summary of the difference that edit has made
*hover over a link to an article version to show a short excerpt of the version
 
There should also be some "navigation links" which access many functions including one-click reversion, editing that page and so on. These may appear in the popup itself, or may be hidden in an "actions" menu depending on your browser and your settings.
 
In normal articles:
 
*hold the mouse over links pulls up a short excerpt of the linked-to article, then hover over the actions link if necessary to see more commands
*if you hold the shift key then you can drag the popup around
 
== Configuration (optional) ==
=== Changing the appearance of your popups ===
 
By editing your user [[Cascading Style Sheets|CSS]] file, you can change the appearance of the popups. Your user CSS file has exactly the same name as the javascript file, but with "css" instead of "js" at the end. So for most people, the file to edit is [[Special:Mypage/monobook.css|monobook.css]].
 
Here is an example which gives an orange-flavoured popup with a border and changes the font used. This makes the popups look pretty silly, but it shows the sort of thing you can do if you feel like it.
 
<pre>
.navpopup {
background-color: #FFBE20 !important;
font-family: serif !important;
color: #404 !important;
font-size: medium !important;
}
</pre>
 
=== Options ===
 
There are some options that you can set. To do so, edit your user javascript file (such as [[Special:Mypage/monobook.js|monobook.js]]) and add a line of the form
:<tt>''option'' = ''value'';</tt>
 
where <tt>''option''</tt> and <tt>''value''</tt> are chosen from the table below. For example, to prevent all downloading and turn on admin links, you need something like this in your javascript file:
 
<pre>
// [[User:Lupin/popups.js]] - please include this line
 
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
simplePopups=true;
popupAdminLinks=true;
</pre>
 
{| class="wikitable" cellpadding="4" border="1"
|colspan=3|<center>'''Configuration options'''</center>
|-
!Option
!Values*
!Description
{{/General options}}
{{/Edit summary options}}
{{/Preview options}}
{{/Technical options}}
{{/Experimental options}}
|}
 
<nowiki>*</nowiki>Default values are listed in bold
 
More options may be added, and requests for more configurability are welcome.
 
=== Advanced customization ===
You can define custom filters for articles. These are javascript functions which are run after the page statistics are generated, and their output is appended (as HTML) to that part of the popup. (Note that if simplePopups is true or popupSummaryData is false, then nothing will be displayed).
 
The way to set this up is to write a filter function which accepts a string (the wikitext of the article) as input, and returns a fragment of HTML. Repeat for as many filters as you want, and then create an array <tt>extraPopupFilters</tt> which contains all of the functions, in the order in which you want them to be run.
 
For example, let's say you want to be told whenever the wikitext of an article contains a table written using HTML tags rather than wiki markup. One way to do this is to add the following to your user javascript file:
 
<pre>
// initialize the array - only do this once
extraPopupFilters=[];
 
// define the function
function popupFilterHtmlTable (wikiText) {
if (/<table/i.test(wikiText)) return '&amp;lt;table&amp;gt;';
else return '';
};
 
// add the function to the array (you can repeat this for lots of functions)
extraPopupFilters.push(popupFilterHtmlTable);
</pre>
 
Then when a popup is generated for a page containing an HTML table, you should see &lt;table&gt; in the popup. (It may also appear for other pages, such as this page. Correcting this defect is left as an exercise for the reader).
 
== Translations ==
 
Please see [[/Translation|this page]] for translations of the script interface and of this page into other languages. You'll also find instructions for creating a translation yourself.
 
== Browser problems ==
===Safari===
Some people have found that [[Safari (web browser)|Safari]] crashes a lot when running this script. [[User:Lupin|Lupin]] would be interested to hear if this is still the case or not, and would greatly welcome assistance from someone who knows some javascript in getting to the bottom of these problems.
 
The menus do not function correctly in the most recent releases of Safari. Using a [http://nightly.webkit.org/builds/ Webkit nightly build] may give correctly functioning menus, but note that WebKit nightlies are notoriously unstable.
 
===Opera===
Older versions of Opera have bugs which prevent the menus from functioning correctly. Using a [http://www.opera.com/download/ current version] (9.0 or higher) should give correctly functioning menus, but you may still experience problems sometimes, with popups not loading, or not disappearing after the mouse is moved away.
 
== Feedback ==
 
Bugs, problems, suggestions and enhancements to [[User talk:Lupin|Lupin]], please.
 
*egy difflink fölött tartva az egeret összefoglalja a változtatást
I have set up a page where you can list [[User:Lupin/Pages with buggy previews|pages with incorrect previews]].
*egy szócikk változatra mutató link fölött tartva egy rövid részletet mutat az adott változatból
 
Ezentúl "navigációs linkeket" is mutat, melyekkel egy kattintással elérhető a lap visszaállítása, szerkesztése és még sok más funkció. Ezek a böngészőtől és beállításoktól függően vagy rejtve vannak az "akciók" menüben, vagy nem.
== Development version ==
 
Szócikkekben:
This tool remains under development. The very latest version is available at [[User:Lupin/popupsdev.js]] and it sees new features before the stable version. Be warned that it does break every so often, though. If you do want to install it, you can type
*tartsd az egeret a linkek fölött a linkelt oldal rövid kivonatának előhozásához, illetve az "akciók" menüben lévő oldalak eléréséhez
<nowiki>{{subst:js|User:Lupin/popupsdev.js}}</nowiki>
*a Shift gomb nyomvatartásával az előugró előnézet ablakot lehet mozgatni ide-oda
into your user javascript file and delete your current popups installation from that file.
 
== Beállítás (opcionálisl) ==
==See also==
*Lásd az [http://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups#Configuration_.28optional.29 eredeti angol oldalt], a különböző változók nevei azonosak
* [[Wikipedia:Easy navigation]] &ndash; Proposed guideline
==Készítők==
* [http://meta.wikimedia.org/wiki/Help:User_style Help:User style] &ndash; Customize Wikipedia page layout
Az eszközt [[:en:User:Lupin]] készítette, mások munkái amit felhasznált
*[[:en:User:Pilaf/InstaView]] ([[née]] [[:en:User:Pilaf/Live Preview|Live Preview]]) by [[:en:User:Pilaf|Pilaf]]
*egy Javascript [[MD5]] hash függvény Paul Johnstontól és másoktól, ami [http://pajhome.org.uk/crypt/md5 itt] elérhető
*Aaron Boodman [http://www.youngpup.net/2001/domdrag domdrag] -ja
*Egy diff falgoritmusán [http://ejohn.org/projects/javascript-diff-algorithm/ implementációja] John Resig által
Az eszköz korábbi változata, Erik Bosrup [http://www.bosrup.com/web/overlib overlib]-jét használta
 
===Wikipédiások akik segítettek===
==Credits and external links==
*[[User:Brian0918|Brian0918]]
This tool depends on some other peoples' work:
*[[User:Eddideigel|Eddideigel]]
*[[User:Pilaf/InstaView]] ([[née]] [[User:Pilaf/Live Preview|Live Preview]]) by [[User:Pilaf|Pilaf]]
*[[User:IceKarma|IceKarma]]
*a Javascript [[MD5]] hash function by Paul Johnston and others, available [http://pajhome.org.uk/crypt/md5 here]
*[[User:Mike Dillon|Mike Dillon]]
*[http://www.youngpup.net/2001/domdrag domdrag] by Aaron Boodman
*[[User:Yurik|Yurik]]
*An [http://ejohn.org/projects/javascript-diff-algorithm/ implementation] of a diff algorithm by John Resig
*[[User:Zocky|Zocky]]
Older versions of the tool used [http://www.bosrup.com/web/overlib overlib] by Erik Bosrup.
*[[User:Zyxw|Zyxw]]
===Wikipedians who have helped===
*....és még sokan mások
*[[User:Brian0918|Brian0918]] - a little code and lots of inspiration
*[[User:Eddideigel|Eddideigel]] - translation work
*[[User:IceKarma|IceKarma]] - aborting download code, making much better use of bandwidth
*[[User:Mike Dillon|Mike Dillon]] - the page age code
*[[User:Yurik|Yurik]] - with his fantastic [[User:Yurik/Query_API|mediawiki BotQuery extension]]
*[[User:Zocky|Zocky]] - the menus
*[[User:Zyxw|Zyxw]] - preview enhancements
*....and many more with helpful suggestions, comments and bug reports
 
[[Category:Wikipédia adminisztráció]]