2020-07-14 21:40:28 +00:00
import { htmlUserLanguageAttributes } from './utils' ;
2020-02-17 19:49:43 +00:00
2020-04-21 21:56:39 +00:00
/ * *
* @ type { MenuDefinition }
* /
2020-02-17 19:49:43 +00:00
export const pageActionsData = {
2020-04-21 21:56:39 +00:00
id : 'p-views' ,
2020-09-04 19:34:05 +00:00
class : 'vector-menu-tabs' ,
2020-04-21 21:56:39 +00:00
label : 'Views' ,
2020-07-14 21:40:28 +00:00
'html-user-language-attributes' : htmlUserLanguageAttributes ,
2020-02-17 19:49:43 +00:00
'html-items' : ` <li id="ca-view" class="collapsible selected">
< a href = "/wiki/Main_Page" > Read < / a >
< / l i >
< li id = "ca-viewsource" class = "collapsible" >
< a href = "/w/index.php?title=Main_Page&action=edit" title = " This page is protected .
You can view its source [ ⌃ ⌥ e ] " accesskey=" e " > View source < / a > < / l i >
< li id = "ca-history" class = "collapsible" >
< a href = "/w/index.php?title=Main_Page&action=history" title = "Past revisions of this page [⌃⌥h]" accesskey = "h" > View history < / a >
< / l i >
< li id = "ca-unwatch" class = "collapsible icon mw-watchlink" > < a href = "/w/index.php?title=Main_Page&action=unwatch" data - mw = "interface" title = "Remove this page from your watchlist [⌃⌥w]" accesskey = "w" > Unwatch < / a > < / l i >
`
} ;
2020-04-21 21:56:39 +00:00
/ * *
* @ type { MenuDefinition }
* /
2020-02-17 19:49:43 +00:00
export const namespaceTabsData = {
2020-04-21 21:56:39 +00:00
id : 'p-namespaces' ,
2020-09-04 19:34:05 +00:00
class : 'vector-menu-tabs' ,
2020-04-21 21:56:39 +00:00
label : 'Namespaces' ,
2020-07-14 21:40:28 +00:00
'html-user-language-attributes' : htmlUserLanguageAttributes ,
2020-02-17 19:49:43 +00:00
'html-items' : ` <li id="ca-nstab-main" class="selected"><a href="/wiki/Main_Page" title="View the content page [⌃⌥c]" accesskey="c">Main page</a></li>
< li id = "ca-talk" > < a href = "/wiki/Talk:Main_Page" rel = "discussion" title = "Discussion about the content page [⌃⌥t]" accesskey = "t" > Talk ( 3 ) < / a > < / l i > `
} ;