Extension talk:CreateBox

noinclude-text does not disappear
When preloading a template the text between the noinclude tags is still in the created article. It should disappear, shouldn't it? Boris 17:12, 11 June 2011 (UTC)

Clear on Focus
Suggestion to add to this extension, an option 'clearonfocus' which lets the default value in the createbox act as a suggestion for the user - when they click in the box the default value disappears and if they leave it empty and click out, the default value re-appears.

Add the few lines before the $output= line, and also add the $focushtml variable to the createboxInput line (fourth from the bottom here).

$submit = htmlspecialchars($wgScript); $width = acGetOption($input,'width',0); $align = acGetOption($input,'align','center'); $br = ((acGetOption($input,'break','no')=='no') ? '' : ' '); $label = acGetOption($input,'buttonlabel',wfMsgHtml("createarticle")); //---   if (acGetOption($input,'clearonfocus',0) == 0) $focushtml = ''; else $focushtml =<<      {$br}  ENDFORM;

Instructions for use: Add clearonfocus=1 to enable (or any non-zero value)


 * Somehow this is not working for me (Mediawiki 1.11.1). Added these six lines and the variable, but nothing happens...what am I missing? 193.200.193.146 04:19, 18 March 2008 (UTC)

Sidebar
Is it possible to add this to the sidebar like the searchbox?

Bug:Preload
The Preloaded content dosent show... I have tested it on www.gamemedia.jackphoenix.com and it dosent show in the editing field- --62.128.243.228 13:57, 11 August 2007 (UTC)


 * The page you need to load from needs to be in the namespace "Template" (i.e. Template:Name_of_page). Then, you create the CreateBox with the parameter "preload=template:Name_of_page"



I have PHP 5.2.6, MediaWiki 1.16.4, and MySQL 5.1.25-rc-standard installed. preload=template:Name_of_page" does not work, nothing is loaded into the edit window of either the default editor or the FCKEditor.

Invalid XHTML
In the next version, could  possibly be fixed for XHTML compliance? That is;. Seeing as it's the only one I'm guessing it was intended as closed. Another note on XHTML-compliance (which this extension might not have control over) is the placement of the form-element. The start-tag is placed within a p-element (which is an invalid location for a form), and the end-tag is outside said p-element (defining the start inside and end outside is invalid in XHTML). Such as:

 ...

213.100.72.86 19:06, 8 January 2008 (UTC)


 * The  tags is being added by the MediaWiki software. Although I do hazard a guess, that if the end tags for and   are placed on separate lines, as they are for the start tags, then the MediaWiki software will place the   elements correctly. 81.98.7.19 20:15, 9 July 2012 (UTC)

Bug with Prefix
I emailed the person who created the extension, but here is my bug I have, if anyone can help...:

If I put a Prefix, it will always create the page. Here is an example:


 * 1) the prefix is: Issue
 * 2) In my input box, to create a page, I put L345
 * 3) The page Issue L345 is created.
 * 4) I go back to my CreateBox input with prefix Issue and write down L345
 * 5) The page Issue Issue L345 is created, instead of saying: "The page Issue L345 is already created, do you want to edit or read, etc..."

Is it possible to fix this bug?

Thanks a lot!

--199.243.65.6 17:16, 13 March 2008 (UTC)

I think I fixed
Ok, I fixed the bug, but I'm not sure of the consequences of this... Please advise of any

Line 143 to

Have default text automatically set as current date and time?
Is this possible? - Derrickfarnell 19:28, 17 May 2008 (UTC)

Prefix &
I'm hoping to use this to help with subpage creation from a given page, and to generify the function (e.g. so I could easily include it on many pages), wanted to pass " /" in as the prefix. However, this was interpreted literally - So I added the line below. It is probably not elegant or complete - but addresses my need. :-)

In function acMakeBox:


 * Could you give an example of how to use your add-on ? Thanks. --Colonna 16:53, 28 September 2008 (UTC)

need an Installation paragraph
It is not said in the extension page that

require_once($IP . "/extensions/CreateBox.php" );

is needed in LocalSettings.php. Could someone do it ? Thanks. -Colonna 16:53, 28 September 2008 (UTC)

Bug In r65814 - Warning: Parameter 3 to acMakeBox expected to be a reference
The Create Box never renders on the page. The extension works find for me in MediaWiki 1.15.2 so I suspect it has to do with me running 1.15.3.

Full Error:

Warning: Parameter 3 to acMakeBox expected to be a reference, value given in /var/www/w/includes/parser/Parser.php on line 3243

My System Details:

Ubuntu 10.04 64 Bit

Product	Version MediaWiki	1.15.3 PHP	5.3.2-1ubuntu4 (apache2handler) MySQL	5.1.41-3ubuntu12

CreateBox 1.6 (r65814)

Compatibility with PHP 5.3
The problem is with PHP 5.3 compatibility. In CreateBox.php find the following line (should be around line 95):

function acMakeBox( $input, $argv, &$parser ) {

and change it to:

function acMakeBox( $input, $argv, $parser ) {


 * I found that I also needed to change line 50 in order to get the createbox to parse and render.
 * The offending code is:
 * change this to
 * I did note that there is a similar item on line 85 (, but it seems to work both with and without changing it, so I left it alone since php is not one of my strengths.
 * -AerosAtar, 30 October 2010
 * I did note that there is a similar item on line 85 (, but it seems to work both with and without changing it, so I left it alone since php is not one of my strengths.
 * -AerosAtar, 30 October 2010

Suggested parameter
Would be nice to have an extra parameter that defines whether to open the edit box in a new window. 78.147.84.36 17:53, 8 May 2010 (UTC)

Create Box Exists
I have defined the message I want to show when a user attempts to create a new article that already exists, but it does not appear to be working. Here is where I have defined the message: http://jet.wikia.com/wiki/MediaWiki:Createbox-exists

I have the most recent version of the plugin.
 * This is the text I expect:
 * Good news! "" already exists. Someone has already started work on this. You can [ edit it], [ read it], or choose to create a different page.
 * This is the text I get:
 * ERROR: The article you are attempting to create already exists.

Any help would be appreciated. Thanks --Boy.pockets 02:15, 17 August 2010 (UTC)
 * i get absolutly nothing.. its a blank page?? what i did wrong when i installed it? Flipp0 29-09 2010 16:37

Could not be used in templates?
Could you set up this extension, that the parsers replaces the template-parameters? Thanks!--84.128.138.231 12:00, 26 October 2011 (UTC)

Swedish letters
The swedish letters Å, Ä and Ö is not working. --194.16.71.2 14:17, 18 November 2011 (UTC)

Automatic Link?
Is it possible to have a link to the new page automatically appear on the same page as the new document button?

Problems while using WYSIWYG editor
Hi,

when editing page that is using CreateBox plugin i always got this parse error message when switching from WYSIWYG to Source code. Any idea why this is happening? My guess is because parameters are in many rows, and editor is trying to parse this as Wikitext, or I am wrong .... I am wondering why parameters are in many rows and not in one row passed as $argv, like in many other plugins...

XML Parsing Error: mismatched tag. Expected: &lt;/input&gt;. Location: http://147.214.200.69/index.php?title=Linux_in_CPP&action=edit Line Number 1, Column 1683: &lt;body xmlns:x="http://excel"&gt;&lt;div class="createbox" align="left"&gt;&lt;p&gt;&lt;/p&gt;&lt;form name="createbox" action="/index.php" method="get" class="createboxForm"&gt;&lt;img class="cke_hidden" src="http://147.214.200.69/extensions/WYSIWYG/ckeditor/images/spacer.gif?t=B49E5BQ" data-cke-realelement="%3Cinput%20type%3D%22hidden%22%20name%3D%22action%22%20value%3D%22create%22%20%2F%3E" data-cke-real-node-type="1" alt="Hidden Field" title="Hidden Field" data-cke-real-element-type="hiddenfield" align=""/&gt; &lt;img class="cke_hidden" src="http://147.214.200.69/extensions/WYSIWYG/ckeditor/images/spacer.gif?t=B49E5BQ" data-cke-realelement="%3Cinput%20type%3D%22hidden%22%20name%3D%22prefix%22%20value%3D%22Main%20Page%2F%22%20%2F%3E" data-cke-real-node-type="1" alt="Hidden Field" title="Hidden Field" data-cke-real-element-type="hiddenfield" align=""/&gt; &lt;img class="cke_hidden" src="http://147.214.200.69/extensions/WYSIWYG/ckeditor/images/spacer.gif?t=B49E5BQ" data-cke-realelement="%3Cinput%20type%3D%22hidden%22%20name%3D%22preload%22%20value%3D%22Template%3AEpicTemplate%22%20%2F%3E" data-cke-real-node-type="1" alt="Hidden Field" title="Hidden Field" data-cke-real-element-type="hiddenfield" align=""/&gt; &lt;img class="cke_hidden" src="http://147.214.200.69/extensions/WYSIWYG/ckeditor/images/spacer.gif?t=B49E5BQ" data-cke-realelement="%3Cinput%20type%3D%22hidden%22%20name%3D%22editintro%22%20value%3D%22%22%20%2F%3E" data-cke-real-node-type="1" alt="Hidden Field" title="Hidden Field" data-cke-real-element-type="hiddenfield" align=""/&gt; &lt;input class="createboxInput" name="title" value="" size="0" type="text"&gt; &lt;input name="create" class="createboxButton" value="Create Page for Epic" type="submit"&gt; &lt;/form&gt;&lt;/div&gt;&lt;hr/&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;List of Epics/Stories&lt;/h2&gt;&lt;div class="subpagelist"&gt;&lt;i&gt;Page "&lt;a _fcknotitle="true" href="Main_Page" class="selflink"&gt;Main_Page&lt;/a&gt;" has no subpages to list.&lt;/i&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;hr/&gt;&lt;h2&gt;List of LMs&lt;/h2&gt;&lt;p&gt;&lt;img class="FCK__MWSpecial" src="http://147.214.200.69/extensions/WYSIWYG/ckeditor/images/spacer.gif?t=B49E5BQ" data-cke-realelement="%3Cspan%20class%3D%22fck_mw_special%22%20_fck_mw_customtag%3D%22true%22%20_fck_mw_tagname%3D%22tmerge%22%20_fck_mw_tagtype%3D%22t%22%20headers%3D%22Loadmodule%20name%7CSubsystem%7CChange%20description%22%20namespace%3D%220%22%3E%20%3C%2Fspan%3E" data-cke-real-node-type="1" alt="Unknown Object" title="Unknown Object" data-cke-real-element-type="span" align=""/&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;List of Interfaces&lt;/h2&gt;&lt;p&gt;&lt;img class="FCK__MWSpecial" src="http://147.214.200.69/extensions/WYSIWYG/ckeditor/images/spacer.gif?t=B49E5BQ" data-cke-realelement="%3Cspan%20class%3D%22fck_mw_special%22%20_fck_mw_customtag%3D%22true%22%20_fck_mw_tagname%3D%22tmerge%22%20_fck_mw_tagtype%3D%22t%22%20headers%3D%22Interface%20name%7CChange%20description%22%20namespace%3D%220%22%3E%20%3C%2Fspan%3E" data-cke-real-node-type="1" alt="Unknown Object" title="Unknown Object" data-cke-real-element-type="span" align=""/&gt;&lt;/p&gt;&lt;p&gt;&lt;span _fcknotitle="true" class="fck_mw_category" sort="Feature"&gt;Feature&lt;/span&gt;&lt;/p&gt;&lt;/body&gt; --^

Glitch when using with latest InputBox
When using this extension with the latest version of InputBox, the prefix is repeated twice when creating pages. So if prefix=Page, the user will be sent to Page:Page:Xyz instead of Page:Xyz. --Porplemontage (talk) 03:09, 9 May 2012 (UTC)

passing values from the page where the createbox is located to the template called by created page
I may be wrong in thinking this is possible ? Purpose is to enable the reader of page A to create page B. But page B needs to have a link back to page A. I want this link back to be created automatically. So I hope to pass the pagename from A to B.

Explaining how I have tried might bore you and I may be way off-track. I guess that there are articles elsewhere that explain how to do this ? Thank you for your help.

Weird doubled namespace prefix problem
I had a problem at http://en.sturmkrieg.com with the create box doubling the Forum namespace when used with the DPL forum, and the prefix was set to Forum:. It worked at first, as I was able to create one page properly, but shortly after it stopped working. I installed InputBox and upgraded from MW 1.17 to 1.17.5, if either of those could have caused it. The problem seems to be fixed after I changed it to an InputBox. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 16:51, 25 January 2013 (UTC)