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.
Extension talk:Create Page
Appearance
Here you go! PR welcome https://github.com/ProfessionalWiki/CreatePage
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
same issue for me, any resolution?
so upon playing with the extension, it works when you pass in a `Template:<your template>` but not general content
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
) );
Thanks for the patch. Please let me know if the new version works for you.
The new version works great. Thank you for applying the patch.
Nothing happens after pasting {{#createpage}} to my page. I have mediawiki 1.20.2 and activated parser and string functions.
This is what fixed it for me:
{{#createpage: ||Create new article}}
Added the : and removed one |
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...
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.
There are no older topics