[00:00:50] The custom tag is to strip new lines from parse functions. When the output comes to the browser it leave category tags and (last I cheked) [[Foo]] was correctly rendered properly. [00:01:11] Let me give regular links a try. [00:01:39] if so, how about [[Image:]] and an interlang or interwiki (if you have any set up) ? [00:04:01] hi, how do i make it possible to upload other file types? [00:04:53] Add to localsettings.php array_push($wgFileExtensions, 'FILE TYPE'); [00:05:12] That may be the outdated way I'm not sure, but it works still. [00:05:59] if you have simple mime detection on you may need to extend it too [00:06:24] also, some file types are blacklisted beyond that, and may need removal from the blacklist [00:06:41] http://www.mediawiki.org/wiki/Manual:$wgFileExtensions http://www.mediawiki.org/wiki/Manual:%24wgStrictFileExtensions http://www.mediawiki.org/wiki/Manual:%24wgFileBlacklist [00:07:18] Splarka: I did a few test cases, and they all worked when the code is contained within the tag. The issue is when the tag is returning a value for the category name. [00:08:32] are you doing a parser tag or parser function {{#foobar}} ? [00:09:05] {{#tag:foo|bar}} as the tag has template vars inside it. [00:09:19] Splarka, i'm guessing rar is blacklisted... how do i remove it? [00:09:37] rar doesn't look blacklisted [00:09:57] hmm... then why isn't it working? [00:10:02] array_push it to the $wgFileExtensions as YurtleTheTurtle said [00:10:25] mm, possibly disable mime detection if it is enabled [00:10:26] i added it to $wgFileExtensions = array( directly [00:10:30] 03brion * r36827 10/trunk/extensions/TitleKey/rebuildTitleKeys.php: fix for path [00:10:41] Yurtle: what syntax are you using? [00:10:49] [[Category:{{#tag:foo|bar}}]] ? [00:11:04] Yep [00:11:09] ew [00:11:14] [[Category:Test {{#tag:striplines| eh hem}}]] to be specific [00:11:31] you might try registering a parser tag and parser function [00:11:33] well not exactly, its more like [[Category:Test {{tempalte}}]] [00:11:41] {{#striplines}} as well as [00:11:46] and the template containes the #tag, tag [00:11:58] (not sure if that would work) [00:12:03] Alright I'll give it a try [00:12:10] but also, check if {{urlencode:}} works in that syntax [00:12:20] and if it does, then that might be a good bit of code to steal [00:12:36] (a core parser function, don't be fooled by the lack of hash) [00:12:41] Thanks [00:13:12] /includes/parser/CoreParserFunctions.php [00:13:31] (well, in 1.13, in 1.12 it is in /includes) [00:14:10] DeFender1031: is http://www.mediawiki.org/wiki/Manual:%24wgVerifyMimeType set? [00:14:16] urlencode dose work in that syntax. I'll convert my function now. [00:15:17] Yurtle: your extension seems kind of odd as an xml tag anyways, because it would rely on direct user input, when its real use would be as a template parameter [00:15:35] (even though there is always #tag, it is an extra step) [00:16:05] usually the point of xml tags is to preserve newlines, like
, , etc
[00:17:24] 	It was more so set-up to make ParseFunctions more readable. At the moment I'm the only one who can deciper a 3 page, single line template. But your right.
[00:17:51] 	where would it be set if it was?
[00:20:08] 	DeFender1031: if it isn't in your localsettings then it is true
[00:20:22] 	try maybe "$wgVerifyMimeType= false;" temporarily to see if it works
[00:22:34] 	no change
[00:22:46] 	still can't upload rar
[00:23:53] 	Splarka: Changeing it from a tag to a Parser did the trick. Thank you.
[00:24:05] 	DeFender, your host isn't blocking it is it?
[00:24:28] 	Sure its a problem with MediaWiki?
[00:24:40] 	YurtleTheTurtle, my host in localhost
[00:24:43] 	is*
[00:24:54] 	proably not then :)
[00:25:05] 	you got it
[00:26:01] 	Hey
[00:26:13] 	hey folks, im trying to make a link label on my wiki page so i can reference the page#label somewhere else without having to make == categories == and the editor keeps on translating my  tag to <a>
[00:26:19] 	how can i force it to see the html?
[00:26:51] 	Hey, do you guys know where I can suggest new wiki ideas?
[00:27:23] 	Obsidian I belive there is an anchor extension.
[00:27:39] 	That should do what your looking for without exposing you to HTML injection.
[00:27:45] 	VenomousNinja, you may want to try a wiki hosting site such as wikia
[00:28:05] 	YurtleTheTurtle: alrighty, thanks :)
[00:28:26] 	DeFender1031: Yes, but I know there was a way to suggest new wikis for the wikimedia foundation.
[00:28:57] 	not as such
[00:29:01] 	ObsidianX: use id=""
[00:29:21] 	and this channel is not affiliated with that foundation, it's just support for the software they use
[00:29:32] 	  works in all major browsers like an  with  #foobar
[00:29:37] 	VenomousNinja, wikia is run by many of the people who also staff wikimedia
[00:29:42] 	VenomousNinja, /join #wikia
[00:29:47] 	ask there
[00:29:53] 	Splarka: ahh alright, thank you, too :)
[00:29:53] 	-_-
[00:30:15] 	So, your basically saying you can't help me, Defender?
[00:30:19] 	YurtleTheTurtle, curious much?
[00:30:26] 	all major = all browsers made in the last ~8 years or so
[00:30:39] 	VenomousNinja, i'm saying go to #wikia and ask there (i'm there too, but it's off-topic here)
[00:31:03] 	Splarka: haha
[00:31:06] 	Mhm, but that isn't technically part of the mediawiki foundation, isn't it?
[00:31:21] 	there is no mediawiki foundation ^_^
[00:31:22] 	damn, so no ie4 support :(
[00:31:22] 	DeFender1031: Yep :) but I'm intrested in wikia becasue they have contacted my wiki a few times trying to convert us.
[00:31:24] 	ask there to find out
[00:31:29] 	they'll know more than me
[00:31:32] 	i'm just a lurker
[00:32:04] 	Ve^Nin, also, the foundation is wikimedia, not mediawiki
[00:32:22] 	wikimedia is an organization, mediawiki is a piece of software
[00:32:22] 	Wikimedia is the foundation that runs Wikipedia/Wiktionary/wikisource/wikiquote, etc etc. MediaWiki is the software they created as an open source project, that many use... this channel then is just a support channel for the software, you might try #wikimedia
[00:33:35] 	lesse, the ID attribute is HTML4...
[00:34:44] 	so Splarka, any other idea on why it isn't working?
[00:35:23] 	how big is it? what error do you get?
[00:36:18] 	there are many reasons for an upload to fail
[00:38:06] 	there is no error, I press submit, and it just empties the form
[00:38:28] 	Splarka: Will adding error_reporting(E_ALL); work? I'm not sure if MediaWiki will reset this or not.
[00:40:48] 	DeFender1031: are you running from file:// or http://localhost ?
[00:41:06] 	03simetrical * r36828 10/trunk/phase3/includes/Linker.php: Wrap comments to 79 chars, not some arbitrary number. Fix a typo in a comment. Add some escaping that's probably unnecessary but makes me feel better.
[00:41:06] 	Yurtle: no idea, ask someone who knows php ^_^
[00:41:40] 	localhost
[00:41:48] 	why would i use file://?
[00:41:54] 	:) well that would work but I didn't know if mediawiki sets its own error reporting level.
[00:42:14] 	Def: *shrug*... can you upload *any* file?
[00:42:15] 	Is it brining you back to the upload window?
[00:42:18] 	YurtleTheTurtle, is that directed at me?
[00:42:29] 	Yes, sorry
[00:45:21] 	YurtleTheTurtle, yes
[00:45:24] 	Splarka, yes
[00:45:33] 	of similar size?
[00:46:17] 	Alright I just set-up my test wiki and uploaded a rar OK by just adding array_push($wgFileExtensions, 'rar'); to localsettings. No error means its probably a PHP issue. Let me look really quick.
[00:47:30] 	the 100 meg default limit is only for copying from URL, the upload limit (memory limit and POST sizes) in your php.ini may be lower
[00:48:26] 	my PHP file size limit is 20MB
[00:48:31] 	the RAR is well below that
[00:48:39] 	What is post_max_size?
[00:51:00] 	post_max_size = 20M
[00:52:24] 	add print_r($GLOBALS); to the bottom of your localsettings, then search for [_FILES], is the array populated?
[00:52:37] 	(Search for files in the web output)
[00:54:18] 	before you said that I restarted Apache
[00:54:27] 	now I get: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 28378327 bytes) in /usr/share/mediawiki/includes/Sanitizer.php on line 1039
[00:54:42] 	How big is this file?
[00:54:51] 	well under 20M
[00:55:23] 	also, notice that the amount it tried to allocate is less than the allowed size
[00:56:12] 	Yep thats typical. One second, I think this is an issue with the memory_limit let me look.
[00:57:52] 	03simetrical * r36829 10/trunk/phase3/includes/Linker.php: Tweak code style a little more: add more escaping and make the default value for $class clearer. Add some comments, rename poorly-named variables, use lowercase for reserved words.
[00:57:58] 	okay, I just doubled the amount of RAM PHP is allowed to use
[00:58:07] 	it's working now
[00:58:33] 	Upload warning: * It is recommended that files are no larger than 150 KB; this file is 13.53 MB.
[00:58:38] 	How much did you up it to?
[00:58:46] 	I figure\ with all the RAM I have, who cares if PHP can now use up to 256MB
[00:58:52] 	You can remove that warning if you like, I'm not sure what the config's name is though.
[00:59:18] 	meh, the warning isn't as annoying as not being able to upload...
[00:59:32] 	I can imagine. Good luck with the rest of your site.
[00:59:42] 	thanks
[00:59:46] 	Now I have to fix my damn extra lines...
[00:59:59] 	and thankjs for helping me track it down
[01:00:27] 	It seems to be what I do all day with my clients. Take care.
[01:11:45] 	Splarka you still around?
[01:11:56] *Splarka 	twitches
[01:12:01] 	a bit
[01:12:39] 	Heh, I'm having anothe wikicode issue with that tag. Let me strip the example down really quick.
[01:12:59] *Charitwo 	eats CIA-54
[01:13:00] *CIA-54 	tastes crunchy
[01:13:38] 	the code {{#ifeq: {{{foo|0}}} |1 | 
3 [[bar|foobar]] |}} contained within the custom tag, only returns
3, but the same code not in the tag returns the link as it shuold. [01:13:40] o.O [01:14:56] thatsa odd [01:15:32] ya. I just tried replacing the | with {{!}} and it also didn't work. [01:15:40] what about just [[bar]] ? [01:15:58] Please hold. [01:16:30] or something like: {{#if:{{{foo|}}}|yes [[bar]]|no [[bar]]}} *holding now* [01:17:52] 03simetrical * r36830 10/trunk/phase3/includes/Linker.php: More comments, refactor for less code duplication. [01:18:04] I should spend a rainy day refactoring and commenting Linker.php. [01:18:15] Or a non-rainy day, since honestly it's not like I leave the house anyway. [01:20:29] Some of it's fine, actually. [01:22:09] Splarka: No to your test case, and no to mine. (Links are rendered in neither) Additionally, if both cases are in at the same time it is only recognizing the first one. [01:22:43] Now if I remove the new-lines by hand (what the tag is doing), I get more screwy results... [01:22:55] then you're doing something screwy, heh [01:23:19] how about just [[Foo]] compared to {{#if:1|[[Foo]]}} ? [01:23:46] Heh, its not reading the tag correctly. Its translating [[Live food]] yes into a link to /live_food with the text Live Foodyes [01:24:34] Time to expand it and look for missing braces [01:24:43] hmm [01:24:55] yikes, are you parsing the code yourself? [01:25:03] (hopefully not, heh) [01:25:12] I dont quite follow. [01:25:23] I mean, you aren't trying to write your own link parser are you? [01:25:37] Oh no. [01:25:40] okay [01:25:51] you can use Special:ExpandTemplates with the xml parse tree option to see the preprocessor logic [01:25:55] might find a clue there [01:32:00] Hmmm, so when did [[foo]]bar become a link to foo with label foobar ? [01:32:10] Never knew that. [01:32:15] IIRC a while ago [01:32:24] helps for things like [[plural]]s [01:32:36] and [[suffix]]ation [01:32:43] (which isn't a word) [01:32:45] ah, learn somthing new everyday. [01:32:49] I was going to say :) [01:33:05] woah... stux is a regfular here? [01:33:11] gerular* [01:33:14] er [01:33:21] damn i can't type today [01:38:13] Did you know how to use ExpandTemplates? Its giving me an HTML comment in place of the missing link. [01:38:53] btw, that [[Foo]]bar -- it is called a LinkTrail [01:39:26] Ah alright. [01:39:31] it depends on content-language and behaves differently in different languages [01:39:41] for example, rtl languages or languages without spaces [01:40:31] mostly useful for changing tense or pluralizing some simple topics like "[[kill]]ing [[river]]s" [01:40:54] Poor rivers [01:41:03] and it's been around for quite a while, but was recently redone by Dantman [01:41:28] eg, '''[[foo]]''' and [[bar [01:41:36] ]]'s won't linktrail (in english anyway) [01:41:45] its just a feature I never used. [01:41:54] sorry, distraction, what was the html comment? [01:42:23] {{#if:1|[[Foo]]}} gives: [01:42:24] [01:42:34] [01:42:37]