Extension talk:Create Page

Jump to navigation Jump to search

About this board

Here you can ask questions and look at this kitten!

{{#createpage:|||Add some content here}}

3 (talkcontribs)

The above example does not include "Add some text here". The created page is blank. I've tried this with $wgCreatePageUseVisualEditor set to true and false; Maybe it is an issue with 1.27alpha, I don't have a 1.26 or below to test it with. The rest of the extension works fine.

Mediawiki: 1.27alpha (43e4b9e)

Create Page: 0.4..0  (4009737)

Thanks (talkcontribs)

same issue for me, any resolution? (talkcontribs)

so upon playing with the extension, it works when you pass in a `Template:<your template>` but not general content

Reply to "{{#createpage:|||Add some content here}}"
Dmundra (talkcontribs)

Thank you for this extension!

We like to use the preload parameter to include a template with new pages. I looked at the other extensions and found them to be overkill. So I added a fourth parameter to take a template page to your extension form field. Here is the added code (using version 0.1):


                if ( array_key_exists( 3, $args ) ) {
                        $html .= Html::hidden( 'preload', trim( $frame->expand( $args[3] ) ) );


                        $preload = '';
                        if ( $req->getCheck( 'preload' ) ) {
                                $preload = $req->getText('preload');
                        $target = Title::newFromText( implode( ':', $parts ) )->getLocalUrl( array(
                                'action' => 'edit',
                                'redlink' => '1',
                                'preload' => $preload
                        ) );
Reply to "Adding a preload parameter" (talkcontribs)

Nothing happens after pasting {{#createpage}} to my page. I have mediawiki 1.20.2 and activated parser and string functions. (talkcontribs)

This is what fixed it for me:

{{#createpage: ||Create new article}}

Added the : and removed one |

Reply to "Nothing happens"
Planetenxin (talkcontribs)


I had no chance to look into it yet, but is it possible to use the parser function in 'non-interactive' mode? My idea is to use it within a template that creates pages from the result of a semantic query...

Jeroen De Dauw (talkcontribs)

This definitely requires user interaction. I'm not really familiar with them, but the autoedit feature of Semantic Forms might be of help, and the Semantic Page Series extension as well.

Reply to "Non-Interactive Mode Possible?"
There are no older topics