I would like to make a section of a page read only while other sections can be editable. Is this possible in mediawiki? I know I can add the NOEDITSECTION tag, and it removes the edit links in the section, but I still can edit it in the main edit page.
Not explicitly, no. But here's what you could do instead:
Put your read only section on a new page and protect it. Transclude the contents of that protected page onto the primary page. A user would still have the opportunity edit the primary page and entirely remove the section, but they cannot edit the contents of that section.
If your protected page is named MyProtectedPage, then you'd put {{:MyProtectedPage}} on the primary page to transclude it.
There is a mediawiki extension called ProtectSection which was designed to do exactly what you're requesting. However, it has not been maintained for years. I've been unable to get it working on the latest version of MediaWiki, but if you're running an older version, perhaps it will work for you.
https://www.mediawiki.org/wiki/Extension:ProtectSection
Related
I have setup my own Madiawiki for a project. I would like to change the main page but the only thing the Mediawiki FAQ say is:
“By default, MediaWiki looks for a page with the title Main Page and serves this as the default page. This can be changed by altering the contents of MediaWiki:Mainpage to point to a different title. If this does not change the 'Main Page' link included on the sidebar at install time, edit MediaWiki:Sidebar.”
The problem is I do not know where to edit this “MediaWiki:Mainpage”. Where do I find this line to edit it? Also if I make a page with the name “x”, and I want it to be the main page do I then change “MediaWiki:Mainpage” to “MediaWiki:x”?
In the search bar, type MediaWiki:Mainpage. Then edit it so its content is the name of the page you want to be the main page. MediaWiki:Mainpage should always contain the title, because it is a system message that is reserved for the title of the main page, so don't change it to MediaWiki:x.
See also: https://www.mediawiki.org/wiki/Manual:Main_Page for changing the main page and https://www.mediawiki.org/wiki/Help:Namespaces#MediaWiki for the MediaWiki namespace and system messages.
Gday
I like to know how you would go about creating a home page in plain html and have WordPress run the other pages?
The reason is I’d like to create a solely plain html website but I need WordPress for my contact page it has a large form on it and I use a plugin to generate it and forms are a bit beyond my knowledge at the moment to create a contact page myself.
(I have tried creating a template page but then WordPress adds unnecessary code [from plugins ] and makes the AMP invalid)
Honestly I'd try and keep it self contained in WordPress itself.
If for some reason you really want a separate HTML/PHP Homepage, follow these steps:
Add a my-homepage.php file to your /wp-content/themes/ACTIVE-THEME directory
Inside that file put the following code:
Add a new page (Pages > Add New)
Give it a recognizable name like "My Homepage"
In the "Template" selector on the right hand side, pick "My HTML Homepage" and click Publish
Go to Settings > Reading, change Your homepage displays to A static page and pick the page you just made
Now you can add your own code as you see fit. Nothing "WordPress" related will get loaded or hooked in since there's no functions on that file - so you're free to code HTML (or PHP) to your heart's content.
You can see a bit more indepth answer over on WPSE: https://wordpress.stackexchange.com/questions/296592/how-to-use-custom-html-file-instead-of-wordpress-homepage
As a favor for a friend, I'm trying to add a quick Valentine's Ad for an article that is supposed to be appended to the top of their existing site starting... tomorrow. They have an existing site made by somebody they are no longer in contact with back in 2010 built with Drupal.
I don't know Drupal. The only information I have is a HostGator login that I'm currently using to send a backup zip to my email.
HostGator's File menu doesn't even show search results for the text I'm searching for on the main page where I'd put this.
I have no idea what I'm doing, basically. I'm comfortable as a web developer in general and figured "yeah I can add a thing to the top of your pages, sure." I can write that HTML quickly, but everything else... do I need Drupal installed, etc, and will that run with the backup that HostGator is gonna send me?
Any advice? I realize I'm an idiot for signing up for a favor like this last minute.
Ultimately I just need to add some pictures and some text.
Easiest way to achieve this would be creating custom block. Not sure what version of Drupal you use, but let's assume it's D7 (similar for other versions):
Go to Structure -> Blocks -> Add block
Enter your static content into "Block body" field. Change that field format to "full html" so drupal won't filter out some of your tags.
If you don't want Drupal's block title to appear in Block title field enter < none > (without space signs in between! - SO can't show it without spaces).
Save your block
Now go to Structure -> Blocks...your block should be visible in block list. You can find and edit it from there.
Theme site uses has "Regions" (something like sidebars). If want your block to appear with main content find your block and select "Content" region. Or any other you want.
At top of that page should be a link "Demonstrate block regions" - click it to see which region is where..
After selecting region you can click "configure" link for your block to precise in what conditions block should appear on page. Click it.
Scroll down and in right sidebar at bottom of configure page you'll see "Pages", "Content types"... it for selecting on what pages, on what content types...your block should be visible. Default is everywhere, so if you need this - use it.
Save block. If you didn't save on Structure -> Block after selecting region select region again and Save.
You can embed your CSS there, but you can also go to (usually): /sites/all/themes/your_theme/styles/style.css or something like that.
If you can't find CSS turn the caching off for a moment: Configuration -> Development -> Performance and inspect location of loaded CSS file(s) (use browser inspection tool).
Good luck!
I've installed mediawiki 1.22.5 and I've tried to change the main page through the Mediawiki:Mainpage url to another page but It doesn't seem to work!
What I do is edit the http://www.mysite.com/en/index.php?title=MediaWiki:MainPage and write in the text window the name of the page I want as the main page (I've even copied/pasted it to make sure it is written correctly!). However when I click on the logo it takes me to the default main page, not the one I wrote in Mediawiki:Mainpage.
I can change the main page link in the side-bar but the problem with the logo remains.
And I don't want to create just a redirect as it is not elegant on the main page.
Any help is appreciated!
MediaWiki:MainPage should change also the target of the logo link. If it doesn't, my first guess would be extensive caching.
Is your wiki public? Can you provide us with an url?
We want am Like Box for the German MarioWiki, but there is no way to get it because no code works. Is there another way to get it into the Wiki? I see an Answer: "If it's a completely internal installation, you could enable raw html in the config file but this could be a big security risk if it is a public wiki.", but ohr Wiki is public so it's a security rsk.
There are several MediaWiki extensions that can be used to include a Facebook "like" button in your wiki:
FacebookLikeButton: Provides a <facelikebutton> tag to add a simple "like" button to a page.
TwitterFBLike: Very similar, provides a {{#TwitterFBLike}} parser function to add "tweet" and "like" buttons to a page.
SocialSideBar: Adds Twitter and Facebook buttons to the sidebar on every page.
AddThis: Very versatile extension that provides buttons for sharing an article on many different sites, both in the sidebar and/or on the page itself.