@ -67,8 +67,8 @@ public class Xoa_ttl { // PAGE:en.w:http://en.wikipedia.org/wiki/Help:Link; REF.
publicintWik_bgn(){returnwik_bgn;}
publicintAnch_bgn(){returnanch_bgn;}// NOTE: anch_bgn is not correct when page has trailing ws; EX: [[A #b]] should have anch_bgn of 3 (1st char after #), but instead it is 2
byte[]itm_full_ttl=Gfh_utl.Escape_html_as_bry(tmp_bfr,ttl.Full_txt_w_ttl_case());// NOTE: ttl.Full_txt() to get full ns; EX: Template:A instead of just "A"
byte[]itm_full_ttl=Gfh_utl.Escape_html_as_bry(tmp_bfr,ttl.Full_txt());// NOTE: ttl.Full_txt() to get full ns; EX: Template:A instead of just "A"
byte[]itm_atr_cls=Xoh_lnki_wtr.Lnki_cls_visited(history_mgr,wiki.Domain_bry(),ttl.Page_txt());// NOTE: must be ttl.Page_txt() in order to match Xou_history_mgr.Add
@ -37,10 +37,10 @@ public class Xoctg_double_itm implements gplx.core.brys.Bfr_arg {
byte[]lnki_cls=Xoh_lnki_wtr.Lnki_cls_visited(history_mgr,wiki.Domain_bry(),ttl.Page_txt());// NOTE: must be ttl.Page_txt() in order to match Xou_history_mgr.Add
@ -40,14 +40,14 @@ class Srch_rslt_cbk__js implements Srch_rslt_cbk {
if(i>=rslts_len)break;// rslts_end will overshoot actual rslts_len; check for out of bounds and exit; EX: default suggest will have rslts_end of 25, but "earth time" will retrieve 15 results
Srch_rslt_rowrow=rslts_list.Get_at(i);
Highlight(ctx,row);// always highlight title first; needed for suggest_box to update highlighting when increasing word; EX: Eart -> Earth; "Earth" should be highlighted, not "Eart"
try{row.Page_ttl_highlight=ctx.Highlight_mgr.Highlight(row.Page_ttl.Full_txt_w_ttl_case());}// NOTE: always highlight row; needed for when search done in url_bar (highlight=n) and then same search reused for search (highlight=y)
try{row.Page_ttl_highlight=ctx.Highlight_mgr.Highlight(row.Page_ttl.Full_txt());}// NOTE: always highlight row; needed for when search done in url_bar (highlight=n) and then same search reused for search (highlight=y)
byte[]title_bry=lnki_ttl.Full_txt_w_ttl_case();// NOTE: use Full_txt to (a) replace underscores with spaces; (b) get title casing; EX:[[roman_empire]] -> Roman empire; (c) include ns_name; EX: Help:A -> "title='Help:A'" not "title='A'"; DATE:2015-11-16
byte[]title_bry=lnki_ttl.Full_txt();// NOTE: use Full_txt to (a) replace underscores with spaces; (b) get title casing; EX:[[roman_empire]] -> Roman empire; (c) include ns_name; EX: Help:A -> "title='Help:A'" not "title='A'"; DATE:2015-11-16
@ -44,7 +44,7 @@ public class Xow_popup_html_mkr {
,hdom_bry
,wiki.Lang().Dir_ltr_bry()
,page_url
,String_.new_u8(page.Ttl().Full_txt_w_ttl_case())
,String_.new_u8(page.Ttl().Full_txt())
,popup_itm.Popup_id()
,Xow_popup_html_bldr_.Bld_fmtr_wiki(fmtr_wiki,wrdx_bfr,cur_wiki.Domain_bry(),page.Wiki().Domain_bry())// NOTE: use cur_wiki, not page_wiki; DATE:2014-06-28
@ -259,9 +259,9 @@ public class Xot_invk_tkn extends Xop_tkn_itm_base implements Xot_invk {
rv=true;
}catch(Exceptione){
if(Env_.Mode_testing())
throwErr_.new_exc(e,"xo","failed to evaluate function","page",ctx.Page().Ttl().Full_txt_w_ttl_case(),"defn",defn.Name(),"src",String_.new_u8(src,this.Src_bgn(),this.Src_end()));
throwErr_.new_exc(e,"xo","failed to evaluate function","page",ctx.Page().Ttl().Full_txt(),"defn",defn.Name(),"src",String_.new_u8(src,this.Src_bgn(),this.Src_end()));
else{
wiki.Appe().Usr_dlg().Warn_many("","","failed to evaluate function: page=~{0} defn=~{1} src=~{2} err=~{3}",ctx.Page().Ttl().Full_txt_w_ttl_case(),defn.Name(),Bry_.Replace_nl_w_tab(src,this.Src_bgn(),this.Src_end()),Err_.Message_gplx_log(e));
wiki.Appe().Usr_dlg().Warn_many("","","failed to evaluate function: page=~{0} defn=~{1} src=~{2} err=~{3}",ctx.Page().Ttl().Full_txt(),defn.Name(),Bry_.Replace_nl_w_tab(src,this.Src_bgn(),this.Src_end()),Err_.Message_gplx_log(e));
bfr.Add_str_a7("/wiki/").Add(Gfo_url_encoder_.Href.Encode(ttl.Full_db())).Add_byte_quote();// NOTE: Full_db to encode spaces as underscores; PAGE:en.q:Wikiquote:Speedy_deletions DATE:2016-01-19
Gfh_atr_.Add(bfr,Gfh_atr_.Bry__title,Xoh_html_wtr_escaper.Escape(amp_mgr,tmp_bfr,ttl.Full_txt_w_ttl_case()));// NOTE: Full_txt b/c title always includes ns, even if show_ns is off; PAGE:en.b:Wikibooks:WikiProject DATE:2016-01-20
Gfh_atr_.Add(bfr,Gfh_atr_.Bry__title,Xoh_html_wtr_escaper.Escape(amp_mgr,tmp_bfr,ttl.Full_txt()));// NOTE: Full_txt b/c title always includes ns, even if show_ns is off; PAGE:en.b:Wikibooks:WikiProject DATE:2016-01-20
@ -25,7 +25,7 @@ public class Pfunc_titleparts extends Pf_func_base {
byte[]argx=Eval_argx(ctx,src,caller,self);if(argx==null)return;// no argx; return empty
Xoa_ttlargx_as_ttl=Xoa_ttl.Parse(ctx.Wiki(),argx,0,argx.length);// transform to title in order to upper first, replace _, etc..
if(argx_as_ttl==null){bfr.Add(argx);return;}// NOTE: argx_as_ttl will be null if invalid, such as [[a|b]]; PAGE:en.w:owl and {{taxobox/showtaxon|Dinosauria}}
@ -334,7 +334,7 @@ public class Scrib_lib_mw implements Scrib_lib {
if(sub_src==null)
returnrslt.Init_fail("expandTemplate: template \""+ttl_str+"\" does not exist");// NOTE: must return error if template is missing; PAGE:en.w:Flag_of_Greenland DATE:2016-05-02
Xot_invk_mocksub_frame=Xot_invk_mock.new_(core.Frame_current().Defn_tid(),0,ttl.Full_txt_w_ttl_case(),args_ary);// NOTE: (1) must have ns (Full); (2) must be txt (space, not underscore); EX:Template:Location map+; DATE:2014-09-21
Xot_invk_mocksub_frame=Xot_invk_mock.new_(core.Frame_current().Defn_tid(),0,ttl.Full_txt(),args_ary);// NOTE: (1) must have ns (Full); (2) must be txt (space, not underscore); EX:Template:Location map+; DATE:2014-09-21
Xot_invk_mocknew_frame=Xot_invk_mock.new_(core.Frame_current().Defn_tid(),0,ttl.Full_txt_w_ttl_case(),args_ary);// NOTE: use spaces, not unders; REF.MW:$frame->getTitle()->getPrefixedText(); DATE:2014-08-14
Xot_invk_mocknew_frame=Xot_invk_mock.new_(core.Frame_current().Defn_tid(),0,ttl.Full_txt(),args_ary);// NOTE: use spaces, not unders; REF.MW:$frame->getTitle()->getPrefixedText(); DATE:2014-08-14