[00:03:14] (CR) Cicalese: Text properties, semantic query results, optional hide subtitle. (2 comments) [extensions/SemanticTitle] - https://gerrit.wikimedia.org/r/114957 (owner: Cicalese) [00:04:37] (CR) Cicalese: Text properties, semantic query results, optional hide subtitle. (1 comment) [extensions/SemanticTitle] - https://gerrit.wikimedia.org/r/114957 (owner: Cicalese) [00:47:19] So I want a hook to automatically create pages for red links upon page save: $wgHooks['ArticleSaveComplete'][] = 'MyExtensionHooks::SFCreatePageJob'; where SFCreatePageJob is as defined here: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FSemanticForms.git/8ab4f7aab17510c013ee8becd21f8cbdd918b3aa/includes%2FSF_CreatePageJob.php [00:47:34] What would be the correct syntax? I'm not sure if and how to input any parameters in SFCreatePageJob [00:47:37] Thanks. [01:07:50] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1023 (queryprinter-listprinter - eae2a32 : mwjames): The build has errored. [01:07:50] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/eae2a32cb101 [01:07:50] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/20099572 [05:13:56] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1028 (sparql - 366147a : mwjames): The build was broken. [05:13:56] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/366147a30f67 [05:13:56] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/20109239 [08:54:59] Hello everyone. I have a question. I want to use the POEM extension to display a variable, but can't seem to figure out where I place the poem tag relative to the {{variable}}. It seems like "variable" already renders the text as such with no line breaks. Any ideas? [09:00:14] DanielT80MWQ: {{variable}} gives you exactly the value that is saved there [09:00:59] sven^: what do you recommend? I'm using this for actual poems, so that's what I need... Any ideas? [09:02:23] how do you set the variables? [09:04:42] I'm just starting so I can do whatever is needed -- basically I have a form where people can enter lyrics, and then I want it to display on the template. People will enter it with single line breaks (can't ask them to enter double line breaks) and then I want it to display that way [09:10:02] Got disconnected, if anyone happened to post regarding the poem thing [09:30:57] so actually you just want the formatting modifiers of that poem extension to apply to your variable? [09:31:17] you can just do {{{variable}}} then [09:36:46] Trying [09:39:57] No luck... [09:40:06] I created this using Semantic Forms, not sure if it's relevant [09:41:59] paste the resulting page text on dpaste.org or some other paste service [09:42:12] it's pretty simple... It just says [09:42:14] D [09:42:23] Without a new line break... [09:43:06] The text is in Hebrew so I don't wanna bug you, but i placed the variable twice, with and without . Do I need to do something for the tag to pick up? [09:45:17] actually the HTML source looks good [09:45:22]
Line1 [09:45:23] Line2
[09:45:37] Meaning it does parse the class... [09:48:39] I cannot help you if I do not know how your code looks. Create a simple example or something. [09:49:41] https://dpaste.de/mUpT [09:49:48] Thanks again for your time [09:52:43] oh well... there are a lot of brackets missing in Line 17... (I think) [09:53:59] Hmm... I actually deleted some when creating the template, I'll try removing it [09:54:30] no good even if I remove that line [09:54:58] I am not even sure what that code is.. is it the template? is it the page source? [09:55:07] The template [09:55:49] I think i'll try and re-do everything and clean it up a bit and come back and re-post [09:56:23] https://dpaste.de/30p0 [09:56:26] look at that. [09:56:35] Template and a page using it [09:56:46] Yup, that's what I have... [09:58:10] I am not sure if it's a good idea to use hebrew in the template definitions. MediaWiki isn't really multi-language and I usually try to avoid every character that is not "normal english", even äöü [09:58:45] You mean with the variable names? Very well... Will re-create and come back. Thanks [10:13:14] (CR) Cicalese: Text properties, semantic query results, optional hide subtitle. (1 comment) [extensions/SemanticTitle] - https://gerrit.wikimedia.org/r/114957 (owner: Cicalese) [12:54:09] when using the askAPI, is there a way to get the property type like when using MWDIProperty::findPropertyTypeID ? [14:19:54] So I want a hook to automatically create pages for red links upon page save: $wgHooks['ArticleSaveComplete'][] = 'MyExtensionHooks::SFCreatePageJob'; where SFCreatePageJob is as defined here: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FSemanticForms.git/8ab4f7aab17510c013ee8becd21f8cbdd918b3aa/includes%2FSF_CreatePageJob.php [14:19:59] What would be the correct syntax? I'm not sure if and how to input any parameters in SFCreatePageJob [14:20:03] Thank you. [15:00:12] robolobster: For a manual on writing mediawiki special page extensions see https:// www.mediawiki.org/wiki/Manual:Special_pages [15:01:37] Um, actually forget that. You don't need a special page. [15:02:54] Try http://www.mediawiki.org/wiki/Manual:Developing_extensions [18:11:29] FoxT hi, thanks! [18:37:39] Plop hello everybody, I was wondering if there are some plugins for semantic wiki/mediawiki to create plot based on datas of the wiki ? [20:06:47] (CR) Yaron Koren: Text properties, semantic query results, optional hide subtitle. (2 comments) [extensions/SemanticTitle] - https://gerrit.wikimedia.org/r/114957 (owner: Cicalese) [20:12:17] maijin: one of the result formats in the "charts" section might be what you're looking for: http://semantic-mediawiki.org/wiki/Semantic_Result_Formats [20:12:45] ok [20:12:54] Yaron: that is what I was looking for [20:15:32] thanks [21:27:54] (CR) Rcdeboer: [C: 1] Text properties, semantic query results, optional hide subtitle. (2 comments) [extensions/SemanticTitle] - https://gerrit.wikimedia.org/r/114957 (owner: Cicalese)