Extension talk:Create Page

About this board

Here you can ask questions and look at this kitten!

Move from Gerrit to Github

2
Planetenxin (talkcontribs)

Would it be possible to move the repo from Gerrit to Github to make it easier for others to contribute and to make use of Github Actions CI? I would take on this task and also add some unit tests.

Jeroen De Dauw (talkcontribs)
Reply to "Move from Gerrit to Github"

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

3
94.143.249.10 (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

70.51.240.91 (talkcontribs)

same issue for me, any resolution?

208.72.125.2 (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}}"

Adding a preload parameter

4
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):

CreatePage.php

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

SpecialCreatePage.php

                        $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"
91.127.220.163 (talkcontribs)

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

122.59.248.227 (talkcontribs)

This is what fixed it for me:

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

Added the : and removed one |

Reply to "Nothing happens"

Non-Interactive Mode Possible?

2
Planetenxin (talkcontribs)

Awesome!

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
Return to "Create Page" page.