| ?前?面或章節需要更新。
請更新本文以反映近況和新增?容。完成修改時,請移除本模板。
|
Navigation popups
(譯名:彈出式導航)提供一?使用?多?基百科功能的?出??,只要?鼠??停在?部?接上就能非常方便地使用??功能。源代?在
MediaWiki:Gadget-popups.js
。
- 鼠??停于?目(及用??)上:
- ?鼠??停在一??目?接?,可???目前一部分的文本
- ???目的第一??片
- ??所指向?面的信息,包括?面大小、?接?、所含?像和分?的?目,以及?面建立至今的??
- 如果是重定向?、小作品或是消?????提示
- ???可?行?面??,?看?面?史,?看最近的版本,?看最近的??者
[1]
,?看自我最后更改以?的??
[1]
,移??面,?看?入,?出更改,??或解除???面,保?、解除保?或更改保?(限管理?),?入???,?????及??新??。
- 鼠??停于?像?接?:
- ???像
- ???像注?
- ???像?接
- 如果?像位于commons上??有提示
- 鼠??停于用?相??接?:
- ??可??用??,用?空?,用????,??用????,?????新??,??用?,??????,用?日志,?除用?(限管理?),封禁用?(限管理?),用?????(
X!'s Edit Counter
),封禁日志。
- 鼠??停于脚注:
- ?停于任何wiki?接:
- 在??列表、?面?史和?出更改中可???史版本,??入任何一?版本。
- 在?????wiki?接(使用鼠??定一?wiki?接)。
- 在???史?可??回退破?。
- ?基搜索,
global Wikipedia search
和
Google
搜索。
- 快捷?(可?)。
- 自?修??接以??重定向和消??(可?)。
- ?能工作于所有?基媒?站点。
安?之前,?必??有一?中文?基百科的??,???才可以使用?出式?航菜?的功能。如果??有??,那??需要
申?一?
然后登入。
在註冊以後,請點選右上角「參數設置」,選擇「小工具」頁籤,勾選「導航Popup」的相關項目以?用Popup工具。
也可以直接引用
load.php
的?案,但不建議使用:
mw.loader.load('//zh.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
- 如果?曾經使用其他方法引用導航Popup,這些方法已過時,請?載曾經加上的相關JavaScript?本,然后保存??除??器?存。
- 下面列出了使用不同面板下?需要修改原有編輯的?面:
過時的引用方法
?必???的用??新建(??)一?特殊的文?,?大多?人??,??相?的文?是
vector.js
(位於User:?的用戶名/vector.js)。點選左邊的連結就可以編輯這個?案。
?外,如果?使用的面板不是預設的Vector,下面列出了不同情?下?需要??的?面:
下一步,点?"??本?",?制下面的文本粘?在?的?面中(不要把下面的用戶名修改成??的用?名),然后保存?面。
使用英文維基上的最新版本,加上中文介面?案:
// [[User:Lupin/popups.js]] - please include this line
importScript
(
"http://en.wikipedia.org/wiki/User:Lupin/popups.js?action=raw&ctype=text/javascript&dontcountme=s"
);
importScript
(
"User:??的小B/jstool/strings-zh.js"
);
User:??的小B
作過修改的版本:
// [[:en:User:Lupin/popups.js]] - please include this line
// [[User:??的小B/jstool/popups.js]] - 請保留此行
importScript
(
"User:??的小B/jstool/popups.js"
);
importScript
(
"User:??的小B/jstool/strings-zh.js"
);
User:Vipuser
所製作的中文界面:
// [[User:Vipuser/popups.js]] - ?保留此行
importScript
(
"User:vipuser/popups.js"
);
在保存?面之后,?刷新?的??器?存(?于
Internet Explorer
或
Firefox
可以使用快捷?Ctrl+F5),然后?定?的??器?有禁用javascript脚本。??,在?把鼠??停在一??基百科的?部?接上片刻之后,就可以看到一??出式菜?了。
需要安?脚本在commons或者wiktionary上的?候,重?上面的步?在其他wiki上就可以了。
需要
??
脚本?,只需在同一?面?除?添加的上面?行文本然后保存??除??器?存?可。
只要修改個人的
CSS
?,?就可以變更popups的外觀(默認根據
Mediawiki:Gadget-popups.css
),?個人的CSS?如下:
User:?的用戶名/vector.css
.
此?其中一個範例,background-color?背景?色、font-family?字型種類、color?文字?色、font-size?文字大小。
.
navpopup
{
background-color
:
#BFFF00
!important
;
font-family
:
arial
!important
;
color
:
#008000
!important
;
font-size
:
13
px
;
}
span
.
popup_contribs
>
a
.
popupNavLink
{
display
:
block
;
/* 加寬“貢獻”,使得懸浮更加方便 */
}
??
[
??
]
?可以自行設定一些選項。從下面的表格中選擇
選項
以及
?
,每項屬性單獨一行添加到
?的用戶自定?JavaScript?面
。
window.選項 = ?;
?例來說,要打開管理員功能的屬性,?需要修改?的JavaScript?案如下:
window
.
popupStructure
=
'menus'
;
window
.
popupAdminLinks
=
true
;
配置??
選項 (Option)
|
? (Value)
默??是
粗?
|
描述
|
popupDelay
|
0.5
,十?制小?
|
停留幾秒後導航Popup才顯示。
|
popupHideDelay
|
0.5
,十?制?
|
彈出式?口的隱藏延遲
|
simplePopups
|
true
,
false
|
如果??想要?示?接,或者??流量消耗?多,可以把??????
true
。???据就不?被下?,poups也???示?接列表,除非???下列????true:
popupUserInfo
,
popupPreviewDiffs
,
popupPreviewHistory
,
popupCategoryMembers
,
imagePopupsForImages
。
|
popupStructure
|
'original'
,
'fancy'
,
'fancy2'
,
'menus'
,
'
shortmenus'
,
'lite'
,
'nostalgia'
|
??popups的??。??
截?示例
。
simplePopups
???
true
或者?的??器支持菜?有???默?是
'original'
,??中有所有?航?接。
'fancy'
、
fancy2
和
'nostalgia'
是
'original'
的??。
simplePopups
不?true?默?是
simplePopups
,?鼠??停在popup??上?,?把?接列表??在菜??中。
'menus'
是
'shortmenus'
的增强版本,提供有更多?接。
最后,
'lite'
是一?非常??的版本,?提供??,?有?航?接。
注意,?定此?量需使用?引?,例如
popupStructure
=
'fancy'
;
。
|
popupActionsMenu
|
true
,
false
|
When using menus, you can either have the title link in the popup generating a menu (if this is set to
false
) or a separate "actions" menu (if this is set to
true
, the default).
|
popupImages
|
true
,
false
|
?設?
false
,則不顯示圖像。
|
popupAdminLinks
|
true
,
false
|
?設?
true
,則管理員可使用Popup執行封禁,刪除頁面,保護或解除保護頁面。
|
popupShortcutKeys
|
true
,
false
|
If this variable is set to
true
then you can focus some of the links in the popups quickly by pressing keys. When you hover the mouse over a link with a shortcut, the shortcut key appears at the end of the popup hint. For example, in Firefox or Opera, to quickly edit an article in a new tab you can type '
e Control-Enter
'. Internet Explorer users beware: shortcut keys don't work and turning this option on will reveal various bugs, so it's not recommended.
|
popupDragging
|
true
,
false
|
?設?
true
,則能?按住shift鍵不放,用滑鼠拖曳popups視?。
|
popupFixRedirs
|
true
,
false
|
?設?
true
,則能?以點選"Redirects"連結而自動地修正重定向頁面。
|
popupRedirAutoClick
|
'wpSave'
,
'wpPreview'
,
'wpDiff'
|
The button which is automatically pressed when fixing redirects.
|
popupFixDabs
|
true
,
false
|
?設?
true
,則能?以點選Popup上的一個連結自動修正連向消?義頁的錯誤。
|
popupNavLinks
|
true
,
false
|
?設?
true
,則popups會顯示導航連結,
false
則關閉此功能。
|
popupLastEditLink
|
true
,
false
|
?設?
true
,則popus會顯示最近一次編輯?接,
false
則關閉此功能。
|
popupHistoricalLinks
|
true
,
false
|
When hovering over links to old revisions and diff links, extra links such as "editOld" are generated if this is
true
. Otherwise, you get the same links as when hovering over an ordinary link.
|
popupPreviews
|
true
,
false
|
If this is
true
and you haven't set
simplePopups
, then a preview of the first part of the article will appear. (
Reports of pages for which this is done badly
are most welcome). If
false
, then this is switched off.
|
popupSummaryData
|
true
,
false
|
?設?
true
,則popups會顯示目標頁的摘要,
false
則關閉此功能。
|
popupLastModified
|
true
,
false
|
?設?
true
,則popups會顯示該頁面最後一次編輯距今的時間。
|
popupOnlyArticleLinks
|
true
,
false
|
?設?
true
, 則popups只在連往頁面的連結才會?動。否則,許多連結(例如編輯,?助)均會?動popups。
|
imagePopupsForImages
|
true
,
false
|
By default, preview images are loaded even when hoving over visible images. Setting this to
false
turns that off.
|
popupMaxWidth
|
300
,整?或者
false
|
Popup視?的最大寬度的像素。若設?
false
則Popup視?將擴展至容納?所含有的內容。
|
popupInitialWidth
|
整?或者
false
|
The initial width of the popup in pixels. Setting this to
false
means the popup will initially be the size needed to accommodate its initial contents.
|
popupRevertSummary
|
字符串
|
回復時的編輯摘要。 %s ?回復的版本ID。
|
popupFixRedirsSummary
|
字符串
|
修正重定向時的編輯摘要。 第一個 %s ?置換的重向定頁名稱,第二個 %s ?置換的目標頁面名稱。
|
popupFixDabsSummary
|
字符串
|
The edit summary used when disambiguating links. The first %s appearing in this string is replaced with the disambiguation page, and the second %s is replaced with the target page.
|
預覽選項
(preview options)
|
popupHistoryPreviewLimit
|
25
, an integer
|
|
popupCategoryMembers
|
true
,
false
|
|
popupPreviewHistory
|
true
,
false
|
|
popupContribsPreviewLimit
|
25
, 一個整數
|
貢獻預覽限制
|
popupPreviewKillTemplates
|
true
,
false
|
如果?
true
,文章中提到的模板只是從預覽刪除了。否則,他們以原始的維基文本形式出現。
|
popupPreviewRawTemplates
|
true
,
false
|
|
popupPreviewFirstParOnly
|
true
,
false
|
|
popupMaxPreviewSentences
|
5
, 一個整數
|
|
popupMaxPreviewCharacters
|
600
, 一個整數
|
預覽文章的第一段的摘錄的長度。
|
技???
|
popupNavLinkSeparator
|
字符串,
' ⋅ '
|
HTML inserted between the navigation links. This defaults to
' • '
in
Konqueror
and to
' · '
in Microsoft browsers, as they don't appear to like the ⋅ character.
|
popupAppendRedirNavLinks
|
true
,
false
|
If
true
, then a new set of navigation links is generated for the target of redirects; if
false
, then you're warned about the redirect but no navigation links are generated. This does nothing if
popupNavLinks
is
false
.
|
removeTitles
|
true
,
false
|
此標題(popup的預設提示)of links are moved to the main link of the popup if this is
true
. If this is
false
then they're not.
|
????
|
下列???未??充分??,?且未??:
popupLiveOptions
,
popupCookies
,
popupUnsimplifyLink
。想要????(以及其?未????)的最??互??法就是做如下?置:
popupLiveOptions=true
.
|
可能更多的??,也?迎建?更多?置需求。
進階設定
[
??
]
?能??文章定義客製化的過濾。這些是javascript在頁面統計?生後執行的功能,?們的輸出將附加(as HTML)?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
extraPopupFilters
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:
// initialize the array - only do this once
extraPopupFilters=new Array();
// define the function
function popupFilterHtmlTable (wikiText) {
if (/<table/i.test(wikiText)) return '<table>';
else return '';
};
// add the function to the array (you can repeat this for lots of functions)
extraPopupFilters.push(popupFilterHtmlTable);
Then when a popup is generated for a page containing an HTML table, you should see <table> 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).
如果?位能?出這些問題的原因,麻煩請
告訴我
(英文)
。中文版可以和
維遊
聯繫。
- 某些人發現使用此?本時,會使
Safari
的許多功能出現故障。
- 在某些版本的
Internet Explorer
,當
popupFixDabs
的選項?“true”時,消?義頁如
mummification
無法顯示所有的?應有的連結。
- 在 Internet Explorer裏,
鍵盤快捷鍵失效,
彈出?口也無法拖曳。有人發現快捷鍵絲毫無損
- 指針移動到
??
上,不顯示彈?。但是可以依次將指針移動到
用?乙
>
用?
>
??
來顯示貢獻的彈?。
??任何漏洞、??,或者有任何建?或改?,??系
en:Wikipedia_talk:Tools/Navigation_popups
。
中文版因?由
?游
?化,所以?直接和?游?系。
此工具有賴於許多其他的付出者:
- ^
1.0
1.1
On selected browsers, including Microsoft Internet Explorer
- ^
2.0
2.1
2.2
On selected browsers, including Mozilla Firefox