Mark A. Hershberger | 1 Dec 2011 01:26
Picon

Re: 1.18 issues triage

"Steve VanSlyck" <s.vanslyck <at> spamcop.net> writes:

> 17.1 and 18.0 were released on the same day, so if not already part of
> 18.0, I would suggest that the bug fixes in 17.1 be addressed in 18.1.

The fix included in 1.17.1 was also also included in 1.18.0.

Mark.
Ron Laufer | 1 Dec 2011 17:17
Picon
Favicon

Any way to escape a tag in template?


I'm trying to use selective transclusion but via a template and I'm running into recursion issues.

I would like to create a template that, when transcluded in a page (call it page A), causes that page to have a
section surrounded by the <onlyinclude></onlyinclude> tags.   Then when I transclude page A in page
B, only the surrounded section of page A is shown in page B.  The trouble of course is that if I put those tags
in the template, then they get triggered on the first transclusion into page A.   Is there a way to
"escape" those tags such that each transclusion strips off a layer of escaping characters?  

(I tried putting the onlyincludes within nowiki tags, but apparently the onlyincludes have higher
priority than nowiki tags).

ProductVersion
MediaWiki1.15.1
PHP5.2.17 (cgi-fcgi)
MySQL5.1.60-community-log

Thanks,
Ron

--

Ron Laufer

 		 	   		  
Brion Vibber | 1 Dec 2011 17:30
Picon
Favicon
Gravatar

Re: Any way to escape a tag in template?

On Thu, Dec 1, 2011 at 8:17 AM, Ron Laufer <gonzoron <at> hotmail.com> wrote:

>
> I'm trying to use selective transclusion but via a template and I'm
> running into recursion issues.
>
> I would like to create a template that, when transcluded in a page (call
> it page A), causes that page to have a section surrounded by the
> <onlyinclude></onlyinclude> tags.   Then when I transclude page A in page
> B, only the surrounded section of page A is shown in page B.  The trouble
> of course is that if I put those tags in the template, then they get
> triggered on the first transclusion into page A.   Is there a way to
> "escape" those tags such that each transclusion strips off a layer of
> escaping characters?
>

I'm pretty sure you can't do this; <onlyinclude> etc are interpreted at the
same level of parsing as template invocations; by the time you're expanding
a template you're too deep already.

-- brion
Mark A. Hershberger | 2 Dec 2011 01:04
Picon

Re: Upgrade to 1.18

"Jeffrey T. Darlington" <jeff <at> gpf-comics.com> writes:

> [Tue Nov 29 13:09:09 2011] [error] [client {my-ip}] "" is not a valid
> magic word for "canonicalurl", referer:

Have you filed a bug for this?  I haven't seen one if you have.  Please
file one at http://bugzilla.wikimedia.org/ or, if you have already filed
one, please point me to it.

Mark.
Mark A. Hershberger | 2 Dec 2011 01:20
Picon

Re: Upgrade to 1.18

Gordon Joly <gordon.joly <at> pobox.com> writes:

> *Fatal error*: Cannot redeclare wfprofilein() (previously declared in
> /xxxxxxxx/public_html/includes/profiler/Profiler.php:14) in
> */xxxxx/public_html/includes/ProfilerStub.php* on line *25*

I filed a bug (https://bugzilla.wikimedia.org/32760) and CC'd you and
Jeff Darlington on it.  We'll cover it in the triage tomorrow (see
http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/57017).

Please join us.

Mark.
Mark A. Hershberger | 2 Dec 2011 01:45
Picon

Re: Upgrade to 1.18

mhershberger <at> wikimedia.org (Mark A. Hershberger) writes:

> "Jeffrey T. Darlington" <jeff <at> gpf-comics.com> writes:
>
>> [Tue Nov 29 13:09:09 2011] [error] [client {my-ip}] "" is not a valid
>> magic word for "canonicalurl", referer:
>
> Have you filed a bug for this?

I filed one for you now: https://bugzilla.wikimedia.org/32762

Please join us in Friday's bug triage if you can:
http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/57017

Thanks!

Mark.
Jeffrey T. Darlington | 2 Dec 2011 02:10
Favicon
Gravatar

Re: Upgrade to 1.18


mhershberger <at> wikimedia.org wrote:
>> Have you filed a bug for this?
>
>I filed one for you now: https://bugzilla.wikimedia.org/32762

Thanks for filing the bug. I hadn't done so mostly because I didn't know about the Bugzilla site. (That's why
I joined here.)

--

Jeff Darlington
General Protection Fault
http://www.gpf-comics.com/
Sal Quintanilla | 2 Dec 2011 02:17
Picon

Re: Custom Namespace hidden from search

I'd like to create a custom namespace that isn't searchable.  Defaulting
search to be disabled for the namespace is easy with
$wgNamespacesToBeSearchedDefault, but is there a way to keep it from showing
up under the Search options of "my preferences"?  This is for an intranet
site, so I don't have any problem completely hiding the Search options tab
for setting namespaces to search.  But I do need the preferences available
to users for other reasons.  It would be nice to be able to accomplish this
without editing any mediawiki files.

I'm using MW 1.16.

Thanks for reading.

Sal
Daniel Barrett | 2 Dec 2011 03:19
Favicon

Re: Custom Namespace hidden from search

Add some JavaScript to MediaWiki:Common.js that hides the items on Special:Preferences that you don't
want shown.

If you have a later Mediawiki, you can use the $wgHiddenPrefs array to hide specific areas of Special:Preferences.

DanB
Sal Quintanilla | 2 Dec 2011 04:01
Picon

Re: Custom Namespace hidden from search

Perfect, thanks Dan

-----Original Message-----
From: mediawiki-l-bounces <at> lists.wikimedia.org
[mailto:mediawiki-l-bounces <at> lists.wikimedia.org] On Behalf Of Daniel Barrett
Sent: Thursday, December 01, 2011 6:19 PM
To: salquint <at> gmail.com; MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Custom Namespace hidden from search

Add some JavaScript to MediaWiki:Common.js that hides the items on
Special:Preferences that you don't want shown.

If you have a later Mediawiki, you can use the $wgHiddenPrefs array to hide
specific areas of Special:Preferences.

DanB

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Gmane