Mediawiki exclude/hide page in internal search - mediawiki

Is there a way to use, for example, a magic word on a page so it doesn't appear in the Mediawiki search-bar?
I know there is __NOINDEX__, but as I understand, it only excludes your page from Google or other search engines. What I need is, when I type the page on the top right I won't find it. Or at least it won't show me the page as recommended.
Is there a way to archive that?

Not at the moment. See T24251.

Related

How to Include Embedded Content in my Website's Search Engine Search Results

I am trying to figure out if there is a way to include embedded content in my website's search engine results. In other words, I have embedded content (it IS in fact text, not videos etc.) that I would like people to be able to find if I searched for it using my website's search function. For example, say the word/topic "Cars" is included in the embedded content, how would I get this to be included in the search results from my website's search function?
When I use Control+F (Find Function) the find function is actually able to crawl the embedded content successfully, and find any instance of the word "Cars" even if it in the embedded content, and not actually on my website itself per se. This being said, I suppose my backup question would be, is there a way for visitors of my site to mimic the find function of Control+F on the frontend of my website? I mean, without them having to use Control+F themselves when on my site? That seems a little clumsy. Like say, a "search bar" that actually just mimics what Control+F does?
I have both Wordpress and "normal" I built myself, so if you know of a solution that is Wordpress specific i.e.) a plugin or Wordpress-specific code, that would work just as great for me as well.
Thank you so much for your time, help, and suggestions.
I tried using the typical Wordpress search function built into my Wordpress sites, and the google-backed search engine I implemented for my other non Wordpress sites, with no success. Any text/words that ONLY appear in my embedded content, would not appear in my site's internal search engine's search results.

mediawiki: have TOC / page sections displayed in the sidebar

one might assume that this would be quite a common question, but I couldn't find any helpful answers yet, so I'll ask. I have to add that I find the whole structure of mediawiki and also their help pages very confusing.
I'm not expecting an exact answer, I'll also be grateful for resources that will help me understand just how mediawiki is structured.
OK, so:
I want to set up a Wiki for personal uses, and I'm trying to get the sidebar customized to my needs, especially I want to have the section headings (that would be level 2 to, say, 4 headings) of the page that is currently viewed displayed in the sidebar (as anchors, I guess).
In other words, have the table of contents not on the top of the body / content part, but on the left hand side in the sidebar.
I have somewhat edited MediaWiki:Sidebar and could get rid of some stuff that I don't really need, but I just can't find a way to get a table of contents there.
Do I need an extension or is this possible with MWs standard functions?
I've seen this, but I would prefer not to edit the html or js myself and rather just edit MediaWiki:Sidebar if that is possible at all.
Thanks for any answers.
There isn't a build in way to do that. I don't know any extension, which actually provides such a feature. But there is a JavaScript, written by a MediaWiki developer, which does, I assume, what you're looking for:
https://github.com/prtksxna/persistent-toc
It will show all ToC levels at the left side, if the first visible area of the page goes out of the viewport (and the top ToC box isn't visible anymore). It would maybe not a big deal to limit the ToC to level 2-4. You could install this script via your MediaWiki:Common.js, your user specific js (like I did for WMF [projects][1] or you create a new extension, which adds the script and the css to your page.
[1]: https://meta.wikimedia.org/wiki/User:Florianschmidtwelzow/global.js projects

Working Search Field on a Plain HTML Page

Is it possible to have a search field without a database?
I have a basic HTML and CSS website where on only one page I need a search box to search only that page (large page with lots of data), if possible to search the whole site would be great but only need one page now and don't want to use a database.
Have you seen this done or know if it is possible? I have seen search fields where you link to Google's database and you embed results on your site but that won't work.
Since you have only CSS and HTML code (and no PHP + MySQL) the only solution for you is to use JavaScript which runs on client side. You can use the window.find() function but it doesn't work on all browsers. See: Use Browser Search (Ctrl+F) through a button in website?
What you need is to tell the user to hit CTRL + F in order to use the browser's search module.
FOUND IT...
It works on Firefox, Chrome, Safari, and even Opera. Don't care about IE.
http://www.javascripter.net/faq/searchin.htm
If you use, read the bottom. You will want to use an iframe for the HTML otherwise your search box searches the keyword in the actual box... which is kind of funny. Anyways thanks for the votes guys and sorry you couldn't be as cool as #valicu2000 who pointed me in the right direction to find this solution.

How can I find out the POST form sent to an ASP page?

There is an online dictionary I would like to add to my search engine list in Google Chrome. The problem is, the website in question does not show the form used in the address bar, so I can't just substitute the search term with %s in Chrome like other search engines.
I know barely anything about developing web pages or web scripting languages, so I'm not even entirely sure that POST is the correct term for what is going on here.
Here is the website I am talking about. If you type a word in the English-Basque box and, "dog" for example, and hit Search, it just shows http://www1.euskadi.net/morris/resultado.asp, obviously not containing "dog". I've inspected the sources of both the HTML page of the first link and the ASP page of the results page, but don't see anything blindingly obvious, but then again I don't really know what I'm looking for.
I use this dictionary a lot, so being able to add it to Chrome and use a simple keyword for it, I can just use the keyword and a search term in the omnibar instead of having to load the page every time, saving much time. :)
If anyone can point me in the right direction for how to figure this out, I would greatly appreciate your help. Thanks!
Someone else seems to have found a workaround for your problem;
It consists of writing a FORM using javascript instead of a URL in Chrome.
A cleaner alternative would be to write a proxy page; a page that you write in asp/php/whatever that can take querystring parameters coming in, and then POST these parameters to the euskadi.net pages, returning the results.
This will require you to have a server or hosted page somewhere online though.

Is it still advisable to use iFrame to show another page within an HTML? If not, is there an alternative?

What we plan to do is to display a particular page from another site on our webpage (not really a whole page but it's more like a box within a page with job listings on it). However, I heard iFrame is no longer advisable to use.
Is it still okay in this instance (only 1 page and 1 iFrame)? Or are there other alternatives?
#Breezer is right in the fact that you want to use iframes as little as possible for as little of your content as possible(for SEO purposes and the fact you aren't hosting the content, so it could go down at anytime). Aside from this, I doubt the page you are trying to display is being rendered in a way that you want to display on your site anyways. Being a third party site you can use something like curl (server side) to screen scrape the data and parse out what you'd like to display on your site. Or, if you're looking for a client side alternative, you can use YQL to grab that third party information and then render as you may.
Here's a great tutorial on YQL, and doing exactly what you want, from #Nettuts (http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-cross-domain-ajax-request-with-yql-and-jquery/)
Hope that gives you some options.
well it's fine using iframes to show another external webbpage, what's bad is building an entire website around a iframe because that will be hard to search engines to interrupt what your website is about therefore rank it lower in the search results