Topic on Project:Support desk

How can I create a new page (article)?

28
Monocero (talkcontribs)

Hi,

I would like to know how to enter the function of creating new pages? How to create a link to create new pages (articles)? Do I have to enter some code to LocalSettings.php file or use an extension?  

I have installed the "InputBox" plugin and on this page: Help:Starting a new page is the code for creating a new page "Using article creation template", but how can I create a new page at all? What should I click?

I would like to have a link to create a page immediately, something like Upload file in Tools tab.

I'm a beginner at MediaWiki.

Please help me.

Examknow (talkcontribs)

What I did for my wiki is that I put in a link on the sidebar. Using the MediaWiki:Sidebar page I put this code into the side bar page ** Create Page|Create Page. Now you will need to make a page called Create Page. In the page input the following wiki text <inputbox> type=create break=no </inputbox> . Then you should be good to go.

Monocero (talkcontribs)

Thank you for the information.

"What I did for my wiki is that I put in a link on the sidebar. Using the MediaWiki:Sidebar page I put this code into the side bar page".

How can I put the same link? How to do it exactly?

Is this explained here?

Manual:Configuration settings

AhmadF.Cheema (talkcontribs)
  1. Install Extension:InputBox.
  2. Browse to any page on your Wiki, in the address bar of your browser, replace the Wiki page name with: Project:Create Page.
  3. Click on the Create tab and then enter the following text: <inputbox> type=create break=no </inputbox>.
  4. Go to your Wiki's version of the page MediaWiki:Sidebar.
  5. Add: ** Project:Create Page|Create Page (better to replace "Project" with your site name).


You can also use some extensions. See Extension:Create Page and Extension:CreatePageUw.


Monocero (talkcontribs)

1. I have this extension installed.

2. Explain it to me more clearly. Example link: https://www.golarze.pl/golarzopedia/index.php?title=Brzytwa.&action=edit&redlink=1 how to change this link in "Project: Create Page"?

In this way?

https://www.golarze.pl/golarzopedia/index.php?title=Golarzopedia:Create_Page

3. If so then after going to the editor and after entering this code an error occurred: Input box type "create break=no" not recognized. Please specify "create", "comment", "search", "search2" or "fulltext".

4. Can you explain it more clearly? I do not really understand.

////////////////////////////////////

I installed this extension https://www.mediawiki.org/wiki/Extension:CreatePageUw and the link to create a new page is located in the special pages tab. How can I add this link to the Tools tab on the main page?

And in the Configuration tab is such a code, should I add this code to LocalSettings.php file?

$wgCreatePageUwUseVE = true;

AhmadF.Cheema (talkcontribs)
This post was hidden by Tomybrz (history)
Monocero (talkcontribs)

Thank you for the explanation.


To go to edit the sidebar should to do it this way:


.../index.php?title=MediaWiki:Sidebar


Only now I realized how to do it. :)


I managed to add this link to this sidebar but I would like to know whether I can add this link below to the Tools tab?


https://i.imgur.com/WAbZBG1.png


I added the same post by case as a guest. How can I report that post to be deleted?

AhmadF.Cheema (talkcontribs)

From Topic:Scrgphbajks15l61:

"Toolbox items are not editable. They're generated based on MediaWiki/skin/extensions.

If you know PHP you could use the BaseTemplateToolbox hook to modify the items in PHP"

Some hacks are mentioned at Manual talk:Interface/Sidebar, if you want to give them a try.

A more convenient method would be to create a new section in the sidebar:

* Actions
** Special:CreatePage|Create New Article
Examknow (talkcontribs)

That post was deleted. Yes that I how you edit the sidebar. I am not aware of a way that you can edit the tools section without going deep into the backend and risking breaking the toolbox function.

Monocero (talkcontribs)

@AhmadF.Cheema

I understand. Thank you for the explanation.

I would like to know if the "Create Page" link can be set to be visible only after logging in?

I would like to know how can I put other links in sidebar? E.g. forum link etc.

@Examknow

This post is still visible, it is hidden. I do not want my IP to be publicly visible in that post.

AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)
AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)
AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)

This solution also does not work.


Links disappeared: Home page, Forum, Recent changes, Random page and Create page. And occur a mistake visible on the screen.


https://i.imgur.com/p5gDBBv.png


I think that rather there is no solution.

AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)

I did not create MediaWiki:anon_sidebar page. Do you have a hidden link "Create Page" for anonymous users in your Wiki? I ask out of curiosity. I see that there is a lot of try with this.

It is possible that it will be left as it is. Or I will remove the Create page from navigation link.

Examknow (talkcontribs)
AhmadF.Cheema (talkcontribs)

When you say "Links disappeared: Home page, Forum, Recent changes...", is this for anonymous users or logged-in users. If it is only for anonymous users, then this probably is the expected behaviour. Anonymous users will see the sidebar defined through the MediaWiki:anon_sidebar page, in the absence of which they will see p5gDBBv.png including the "mistake".

I personally have never set-up a hidden link "Create Page" for anonymous users, seems much more trouble than it's worth.

Monocero (talkcontribs)
AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)
AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)
AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)

Thanks for the clarification.