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-hustvedt-siri" title="Hustvedt, Siri"> <img class="lz" data-src="/covers/50/66/cover.jpg" alt="Hustvedt, Siri" /> </a> <div class="itm-info"> <a href="/kostenlose-hustvedt-siri" title="Hustvedt, Siri"> Hustvedt, Siri Online Lesen </a> von <a href="/autor-der-sommer-ohne-maenner-online-lesen-downloaden-kostenlos" title="Der Sommer ohne Maenner">Der Sommer ohne Maenner</a> <div class="rkl-b"> <a href="/kostenlose-hustvedt-siri" title="Hustvedt, Siri"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-0105-keine-spur-von-mister-high" title="0105 - Keine Spur von Mister High"> <img class="lz" data-src="/covers/04/47/87/cover.jpg" alt="0105 - Keine Spur von Mister High" /> </a> <div class="itm-info"> <a href="/kostenlose-0105-keine-spur-von-mister-high" title="0105 - Keine Spur von Mister High"> 0105 - Keine Spur von Mister High Online Lesen </a> von <a href="/autor-keine-spur-von-mister-high-online-lesen-downloaden-kostenlos" title="Keine Spur von Mister High">Keine Spur von Mister High</a> <div class="rkl-b"> <a href="/kostenlose-0105-keine-spur-von-mister-high" title="0105 - Keine Spur von Mister High"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-worth-dying-for" title="Worth Dying For"> <img class="lz" data-src="/covers/04/67/44/cover.jpg" alt="Worth Dying For" /> </a> <div class="itm-info"> <a href="/kostenlose-worth-dying-for" title="Worth Dying For"> Worth Dying For Online Lesen </a> von <a href="/autor-lee-child-online-lesen-downloaden-kostenlos" title="Lee Child">Lee Child</a> <div class="rkl-b"> <a href="/kostenlose-worth-dying-for" title="Worth Dying For"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-sternennacht-roman-einer-verlorenen-liebe" title="Sternennacht - Roman einer verlorenen Liebe"> <img class="lz" data-src="/covers/01/60/21/cover.jpg" alt="Sternennacht - Roman einer verlorenen Liebe" /> </a> <div class="itm-info"> <a href="/kostenlose-sternennacht-roman-einer-verlorenen-liebe" title="Sternennacht - Roman einer verlorenen Liebe"> Sternennacht - Roman einer verlorenen Liebe Online Lesen </a> von <a href="/autor-stallmann-yvonne-online-lesen-downloaden-kostenlos" title="Yvonne Stallmann">Yvonne Stallmann</a> <div class="rkl-b"> <a href="/kostenlose-sternennacht-roman-einer-verlorenen-liebe" title="Sternennacht - Roman einer verlorenen Liebe"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-die-schattenflotte" title="Die Schattenflotte"> <img class="lz" data-src="/covers/04/75/07/cover.jpg" alt="Die Schattenflotte" /> </a> <div class="itm-info"> <a href="/kostenlose-die-schattenflotte" title="Die Schattenflotte"> Die Schattenflotte Online Lesen </a> von <a href="/autor-meyn-boris-online-lesen-downloaden-kostenlos" title="Boris Meyn">Boris Meyn</a> <div class="rkl-b"> <a href="/kostenlose-die-schattenflotte" title="Die Schattenflotte"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-jedi-padawan-16-schrei-nach-vergeltung" title="Jedi-Padawan 16 - Schrei nach Vergeltung"> <img class="lz" data-src="/covers/02/87/07/cover.jpg" alt="Jedi-Padawan 16 - Schrei nach Vergeltung" /> </a> <div class="itm-info"> <a href="/kostenlose-jedi-padawan-16-schrei-nach-vergeltung" title="Jedi-Padawan 16 - Schrei nach Vergeltung"> Jedi-Padawan 16 - Schrei nach Vergeltung Online Lesen </a> von <a href="/autor-jude-watson-online-lesen-downloaden-kostenlos" title="Jude Watson">Jude Watson</a> <div class="rkl-b"> <a href="/kostenlose-jedi-padawan-16-schrei-nach-vergeltung" title="Jedi-Padawan 16 - Schrei nach Vergeltung"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-theres" title="Theres"> <img class="lz" data-src="/covers/02/06/99/cover.jpg" alt="Theres" /> </a> <div class="itm-info"> <a href="/kostenlose-theres" title="Theres"> Theres Online Lesen </a> von <a href="/autor-sem-sandberg-steve-online-lesen-downloaden-kostenlos" title="Steve Sem-Sandberg">Steve Sem-Sandberg</a> <div class="rkl-b"> <a href="/kostenlose-theres" title="Theres"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> <div class="itm itma"> <a href="/kostenlose-058-der-duft-von-sandelholz" title="058 - Der Duft von Sandelholz"> <img class="lz" data-src="/covers/02/75/03/cover.jpg" alt="058 - Der Duft von Sandelholz" /> </a> <div class="itm-info"> <a href="/kostenlose-058-der-duft-von-sandelholz" title="058 - Der Duft von Sandelholz"> 058 - Der Duft von Sandelholz Online Lesen </a> von <a href="/autor-gaelen-foley-online-lesen-downloaden-kostenlos" title="Gaelen Foley">Gaelen Foley</a> <div class="rkl-b"> <a href="/kostenlose-058-der-duft-von-sandelholz" title="058 - Der Duft von Sandelholz"> <img src="/i/de/rlesen.png" /> </a> </div> </div> </div> </div> </div> <footer> <div class="inn"> <div class="lf"> © Kostenlos Online Lesen 2024 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>