Bücher online kostenlos Kostenlos Online Lesen
Working With MediaWiki

Working With MediaWiki

Titel: Working With MediaWiki Kostenlos Bücher Online Lesen
Autoren: Yaron Koren
Vom Netzwerk:
it just has to connect with the MediaWiki API, which does the actual work of writing and reading data. Most of the major programming languages have one or more MediaWiki API libraries written for them, which take care of the details of logging in to the wiki and connecting to the API. But even without a library, it’s not that hard to create a MediaWiki bot — the script just needs to hit some MediaWiki URLs.
    If a bot makes any edits on a wiki, it should ideally be logged in as a user — and ideally that user should be a separate account, which gets added to the "bots" group. You can see these kinds of accounts all over Wikipedia — they’re the ones fixing broken

tags, renaming categories, adding signatures to unsigned talk-page messages, etc. On other wikis, they’re quite a bit less common, but some smaller wikis do make significant use of them.
    This page holds some information, and helpful links, on creating and running bots:
https://www.mediawiki.org/wiki/Manual:Bots
TheMediaWiki API
    The MediaWiki API is essentially a set of URLs that one can access in order to read from and write to the wiki. They all involve different parameters passed in to the file api.php. That file is located in the same directory as index.php; so, for instance, if your wiki has URLs of the form mywiki.com/w/index.php?title=..., the main API URL can be found at mywiki.com/w/api.php. (For more recent versions of MediaWiki, the API is linked from the Special:Version page.)
    If you go that main URL, you’ll see a fairly exhaustive (automatically generated) explanation of all the API actions available. API actions are defined by both core MediaWiki and a number of extensions. You’ll also see a listing of the different formats that the results can be displayed in, including JSON and XML. For example, adding "format=jsonfm" to the URL will display results in a pseudo-JSON format that users can read on the screen, while "format=json" will result in actual raw JSON.
    We won’t get into the details of all the API functionality available here, but you can see it at api.php — and you can also read more about it at:
https://www.mediawiki.org/wiki/API:Main_page

Search engine optimization
    Search engine optimization, or SEO, is the practice of attempting to get the pages of one’s web site to show up as high as possible in search-engine results, most notably on Google. It’s a controversial field: to its proponents, it’s an indispensable way to get web traffic, while to its detractors, it’s at best tacky, and at worst the domain of hucksters, spammers and scammers. Nevertheless, for people who run public wikis, showing up high in search results can be important.
    First of all, MediaWiki is already well-geared for doing well in search results in a number of ways. Wikipedia, which is of course MediaWiki-based, is the number one best-performing site for search results, by any metric: it’s usually in the top three, and often #1, for a search on any topic it covers. That’s mostly just because it gets linked to so often from other sites about those specific topics, but it’s also in part due to MediaWiki’s own design.
    In MediaWiki, the subject of every page is also: the page’s name, a part of its URL, the text in the top-level header, and the text that shows up in internal links to that page. That sort of consistency is extremely important for search engines in associating that word or phrase with that specific URL. Tied in with that, there’s usually only one top-level header per page: the name of the page is contained within the only

tag on the page, which is another thing that helps to establish the page’s subject for search engines.
    There is at least one active MediaWiki extension that can potentially help with search-engine rankings: the extension WikiSEO, which adds to the and tags of a wiki page’s HTML source code. It defines a parser function, appropriately named “#seo”, which can be added anywhere to the page, and which is called in the following way:<br />{{#seo: title=... | titlemode=... | keywords=... | description=... }}<br />    The “<br />title=<br />” parameter either replaces, is appended or prepended to the contents of the HTML <title> tag, depending on the value of the<br />“titlemode=<br />” parameter, which can be either<br />replace<br />,<br />append<br />or<br />prepend<br />. The<br />“keywords=<br />” and “<br />description=<br />” parameters get placed as the “name” and “content” attributes, respectively, of an HTML <meta> </div> <div> <ul class="pgn" role="navigation"> <li> <a href="/kostenlose-working-with-mediawiki/lesen/39" rel="prev" aria-label="« Vorherige">«</a> </li> <li><a href="/kostenlose-working-with-mediawiki">1</a></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/2">2</a></li> <li class="dis" aria-disabled="true"><span>...</span></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/37">37</a></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/38">38</a></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/39">39</a></li> <li class="act" aria-current="page"><span>40</span></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/41">41</a></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/42">42</a></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/43">43</a></li> <li class="dis" aria-disabled="true"><span>...</span></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/84">84</a></li> <li><a href="/kostenlose-working-with-mediawiki/lesen/85">85</a></li> <li> <a href="/kostenlose-working-with-mediawiki/lesen/41" rel="next" aria-label="Nächster »">»</a> </li> </ul> </div> <div class="otr"> <h2>Weitere Kostenlose Bücher</h2> <div class="itm itma"> <a href="/kostenlose-1664-die-schoene-und-die-grausame" title="1664 - Die Schöne und die Grausame"> <img class="lz" data-src="/covers/02/04/64/cover.jpg" alt="1664 - Die Schöne und die Grausame" /> </a> <div class="itm-info"> <a href="/kostenlose-1664-die-schoene-und-die-grausame" title="1664 - Die Schöne und die Grausame"> 1664 - Die Schöne und die Grausame Online Lesen </a> von <a href="/autor-jason-dark-online-lesen-downloaden-kostenlos" title="Jason Dark">Jason Dark</a> <div class="rkl-b"> <a href="/kostenlose-1664-die-schoene-und-die-grausame" title="1664 - Die Schöne und die Grausame"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-crossfire-1-kontakt" title="Crossfire 1: Kontakt"> <img class="lz" data-src="/covers/58/90/cover.jpg" alt="Crossfire 1: Kontakt" /> </a> <div class="itm-info"> <a href="/kostenlose-crossfire-1-kontakt" title="Crossfire 1: Kontakt"> Crossfire 1: Kontakt Online Lesen </a> von <a href="/autor-kress-nancy-online-lesen-downloaden-kostenlos" title="Nancy Kress">Nancy Kress</a> <div class="rkl-b"> <a href="/kostenlose-crossfire-1-kontakt" title="Crossfire 1: Kontakt"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-grime-and-punishment" title="Grime and Punishment"> <img class="lz" data-src="/covers/03/69/92/cover.jpg" alt="Grime and Punishment" /> </a> <div class="itm-info"> <a href="/kostenlose-grime-and-punishment" title="Grime and Punishment"> Grime and Punishment Online Lesen </a> von <a href="/autor-churchill-jill-online-lesen-downloaden-kostenlos" title="Jill Churchill">Jill Churchill</a> <div class="rkl-b"> <a href="/kostenlose-grime-and-punishment" title="Grime and Punishment"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-037-klinik-der-verlorenen" title="037 - Klinik der Verlorenen"> <img class="lz" data-src="/covers/04/11/45/cover.jpg" alt="037 - Klinik der Verlorenen" /> </a> <div class="itm-info"> <a href="/kostenlose-037-klinik-der-verlorenen" title="037 - Klinik der Verlorenen"> 037 - Klinik der Verlorenen Online Lesen </a> von <a href="/autor-jose-michel-online-lesen-downloaden-kostenlos" title="Jose Michel">Jose Michel</a> <div class="rkl-b"> <a href="/kostenlose-037-klinik-der-verlorenen" title="037 - Klinik der Verlorenen"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-tiffany-extra-band-2-german-edition" title="Tiffany Extra Band 2 (German Edition)"> <img class="lz" data-src="/covers/02/83/18/cover.jpg" alt="Tiffany Extra Band 2 (German Edition)" /> </a> <div class="itm-info"> <a href="/kostenlose-tiffany-extra-band-2-german-edition" title="Tiffany Extra Band 2 (German Edition)"> Tiffany Extra Band 2 (German Edition) Online Lesen </a> von <a href="/autor-hoffmann-kate-online-lesen-downloaden-kostenlos" title="Kate Hoffmann">Kate Hoffmann</a> , <a href="/autor-kelly-leslie-online-lesen-downloaden-kostenlos" title="Leslie Kelly">Leslie Kelly</a> , <a href="/autor-rock-joanne-online-lesen-downloaden-kostenlos" title="Joanne Rock">Joanne Rock</a> , <a href="/autor-macallister-heather-online-lesen-downloaden-kostenlos" title="Heather Macallister">Heather Macallister</a> <div class="rkl-b"> <a href="/kostenlose-tiffany-extra-band-2-german-edition" title="Tiffany Extra Band 2 (German Edition)"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-pr-odyssee-4-die-traumkapseln" title="PR Odyssee 4 Die Traumkapseln"> <img class="lz" data-src="/covers/03/32/81/cover.jpg" alt="PR Odyssee 4 Die Traumkapseln" /> </a> <div class="itm-info"> <a href="/kostenlose-pr-odyssee-4-die-traumkapseln" title="PR Odyssee 4 Die Traumkapseln"> PR Odyssee 4 Die Traumkapseln Online Lesen </a> von <a href="/autor-perry-rhodan-online-lesen-downloaden-kostenlos" title="Perry Rhodan">Perry Rhodan</a> <div class="rkl-b"> <a href="/kostenlose-pr-odyssee-4-die-traumkapseln" title="PR Odyssee 4 Die Traumkapseln"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-felidae-06-schandtat-neu-ok-220212" title="Felidae 06 - Schandtat-neu-ok-22.02.12"> <img class="lz" data-src="/covers/02/81/22/cover.jpg" alt="Felidae 06 - Schandtat-neu-ok-22.02.12" /> </a> <div class="itm-info"> <a href="/kostenlose-felidae-06-schandtat-neu-ok-220212" title="Felidae 06 - Schandtat-neu-ok-22.02.12"> Felidae 06 - Schandtat-neu-ok-22.02.12 Online Lesen </a> von <a href="/autor-akif-pirincci-online-lesen-downloaden-kostenlos" title="Akif Pirinçci">Akif Pirinçci</a> <div class="rkl-b"> <a href="/kostenlose-felidae-06-schandtat-neu-ok-220212" title="Felidae 06 - Schandtat-neu-ok-22.02.12"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-die-gauklerin" title="Die Gauklerin"> <img class="lz" data-src="/covers/96/33/cover.jpg" alt="Die Gauklerin" /> </a> <div class="itm-info"> <a href="/kostenlose-die-gauklerin" title="Die Gauklerin"> Die Gauklerin Online Lesen </a> von <a href="/autor-fritz-astrid-online-lesen-downloaden-kostenlos" title="Astrid Fritz">Astrid Fritz</a> <div class="rkl-b"> <a href="/kostenlose-die-gauklerin" title="Die Gauklerin"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> </div> </div> <footer> <div class="inn"> <div class="lf"> © Kostenlos Online Lesen 2025 support@kostenlosonlinelesen.net </div> <div class="rg"> <!-- Begin Web-Stat code v 6.3 --> <span id="wts1866490"> </span><script> var wts=document.createElement('script');wts.type='text/javascript'; wts.async=true;wts.src='https://wts.one/3/1866490/log6_2.js'; document.getElementById('wts1866490').appendChild(wts); </script><noscript><a href="https://www.web-stat.com"> <img src="https://wts.one/6/3/1866490.gif" alt="Web-Stat traffic analytics"></a></noscript> <!-- End Web-Stat code v 6.3 --> <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(53412301, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/53412301" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> </div> </div> </footer> <script src="/js/de/detail.js?1570711139"></script> </body> </html>