Extension talk:Page Schemas

[Download link does not work]
Hi there, I would love to download the extension Page Schemas, but have unfortunately not been able to. I went onto the Extesion:PageShemas, under “Code and download” area where it says: “You can download the Page Schemas code, in .tgz format, here.” The download link “here” was as follows: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/PageSchemas.git;a=snapshot;h=4dd93fe74c8c39b6438b92f4927cfa71ca3b901a;sf=tgz Once I am clicking on the above link I am getting the following error message: “Unable to download gitweb from gerrit.wikimedia.org. Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.” Would anybody please be able to help? Many thanks Pan


 * The link works for me. Could you try again? Gerrit may have been unavailable for a short time. Instead of clicking, you could also try "right-click / save as". Cavila MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.1 11:21, 15 February 2013 (UTC)

Hello Cavilla, I've just tried again and got the same error message. However, completely by chance I found the following link http://www.mediawiki.org/wiki/Special:ExtensionDistributor/Autoincrement and by selecting the extension I wanted it did allow me to download the PageSchemas files. Thanks for your reply. Pan

Issue with side infobox
Hi, I am having an odd error. The infobox came out as expected when I was using the other way to use a form (manually create property, create template, create form). When I deleted the template/form and tried to re-make the exact same thing in page schemas, i get a jumpled mess peppered with red links that say "Template:!" where the infobox should be.

Thanks so much for any help,

Matt


 * You should create the page at "Template:!", with just a single character as the contents: "|". I think the latest version of Semantic Forms takes care of creating that page automatically. Yaron Koren (talk) 19:23, 30 July 2013 (UTC)


 * Perfect, thank you. I did download the semantic bundle maybe 2 days ago which had semantic forms. Wondering if that doesnt have the latest version and perhaps I should go update it....Matt

Two minor questions on page schemas (image upload, edit function)
Question 1: I am having trouble creating a form input field in a side infobox template of form created in page schemas - what I want is to have the user hit an upload button, they upload an image from their desktop, and then the picture shows (not the filename eg xyz.png). I did read in "Working with Mediawiki" by Yaron Koren about uploading files - where he says "This is done simply by adding the parameter "uploadable" to that field's declaration in the form definition (although this was for the shows filename xyz.png example) and I was unsure where exactly I put "uploadable" - any guidance here would be much appreciated.

Question 2: In Page Schemas if you select the output to be "sections" - when the user is reading the page each section has an "edit" hyperlink above it. unfortunately this takes you to editing the source code, not the form. Is it possible to either change this to point to the form, or remove it entirely? Thanks for any advice - I believe these answers will help the average person use page schemas more! --Matt


 * Hi - (1) you should add it in the form input's "parameter names and their values..." field. (2) you should add to the template. That's really a bug in the software - that tag should get added to the template directly. Yaron Koren (talk) 16:21, 31 July 2013 (UTC)


 * Yaron, in response to (1), within the edit schema function, I added to the "additional XML field" of each field in the template that uses sections.  I also tried to manually add it to the code by hitting edit on the category page rather than edit schema, in many different places.....the latest one I pasted below just to see if you can let me know if I am doing something wrong:







NOEDITSECTION (I took out the __  __ on this posting)

Course Overview


 * All my tries yielded nothing. I can't help but wonder if perhaps I have a setting either wrong, or not in, localsettings.php.  especially since it looks like the  worked on this page....


 * As for item (2) about uploading docs, In the "Enter parameter names and their values as key=value pairs, separated by commas (if a value contains a comma, replace it with "\,"). For example: size=20, mandatory" field of "Form Input" in the Edit Schema section, I added "uploadable" (without " ") - when I refresh and go to my page, oddly it displays the following in my field on the Read tab of the page using the schema: "File:Mail-envelope.png" - I did not type or put that in. The code from the edit tab of the Category page for this, as created by edit schema, looks like this (BTW, i tried not to but maybe i killed the edit tabs in this page....can delete after.

  Score Card  Text   text <Parameter name="uploadable"/> </semanticforms_FormInput> </Field>
 * Thanks again for the time you have spent on this subject, and all others, Matt


 * For (2) (which you called (1)), I don't think there's way to add it via Page Schemas at all - which is unfortunate. For (1) - that's very strange; I can't replicate that strange behavior. What version of MediaWiki are you using? Yaron Koren (talk) 13:48, 1 August 2013 (UTC)


 * Version MediaWiki 	1.21.1


 * PHP 	5.3.24 (cgi-fcgi)


 * MySQL 	5.0.96-log


 * Page Schemas (Version 0.3.1)


 * http://coursecaddy.org/index.php?title=Special:Version


 * Just to summarize since I screwed up the numbering (2 threads next time) - no way to ad NOEDITPAGES on a massive scale through page schemas, you have to do it page by page manually. for "uploadable," the way I have it should work, but something odd is going on - I re-did it this morning and instead of insterting envelope.png, its just a blank box I can type in, you can see that here: http://coursecaddy.org/index.php?title=Rustic_Canyon - Matt


 * It looks like "uploadable=", instead of "uploadable", is being added to the form, which causes the problem. This may have been fixed in the most recent SF version; I'm not sure. Yaron Koren (talk) 15:38, 1 August 2013 (UTC)
 * Thanks! That was an easy fix.....and easy to implement on a mass scale but simply upating the form: after generating pages. Folow up question, once you upload a file through semantic forms, it loads the file into the file namespace and images directory, which is great.  How would you (if its possible) have it automatically display the image on the page in which you uploaded, after you upload it through semantic forms?  Again, trying to make this user friendly so they dont have to then type the [{FILE:...) to display.  thx as always, matt


 * The string "File:" needs to be added to the template, right before the variable that holds the file name, like " File: ". Again, that's a bug in Semantic Forms - it might have been fixed in the most recent version, but I'm less sure about this one. Yaron Koren (talk) 14:51, 2 August 2013 (UTC)


 * Worked perfectly, thanks. BTW I did update page schemas and semantic forms, both were a rev behind.  The uploadable bug is still there, and this one. - Matt

Output Format:Sections
I wonder if its a bug or I am doing something wrong. In using the Output Format:Sections functionality of page schemas, an odd thing happens with the template output. A " | " is added to the beginning of each section in the actual page that executes the templates through forms. I tinkered around with removing | from various parts of the template, with no luck. Any idea? example of output below:

Course Overview


 * Rustic Canyon is a tribute to the....


 * No idea. Can you link to the template? Yaron Koren (talk) 12:49, 5 August 2013 (UTC)


 * Sure, check out how the page looks here (see the " | " at the beginning of each section?) http://coursecaddy.org/index.php?title=Rustic_Canyon. The template is here: http://coursecaddy.org/index.php?title=Template:Course_Body & http://coursecaddy.org/index.php?title=Template:Yardage_Book.


 * I am also having some trouble with the field descriptions & display labels in the Yardage Book section of the form itself, and I don't know if perhaps it's related to the above. Once we get root cause on the above i'll decide if i should start another thread....Thanks,  Matt


 * Those extra pipes are coming from the "Course Body" template. Yaron Koren (talk) 15:58, 6 August 2013 (UTC)


 * I saw that too. When i change the output format in Page schemas to plain text and remove them from the template manually (i'm still wondering why Page Schemas adds them?) it looks great.  Perhaps I will just revert back to plain text.  When I try to remove them when the page schemas output is "sections" - it goes haywire.


 * Sorry, I didn't understand. Yaron Koren (talk) 11:35, 7 August 2013 (UTC)