Editing Module:Id increment

Revision as of 09:02, 12 March 2024 by Uschuetzenmeister (talk | contribs) (Created page with "-- Funktion, um die höchste Zahl in der Struktur "Projekt/1", "Projekt/2", usw. zu finden function findMaxProjectNumber() local maxNumber = 0 -- Abfrage an die Datenbank (MediaWiki-Standardtabelle 'page') local result = mw.ext.mysql.query{ sql = "SELECT page_title FROM page WHERE page_title REGEXP 'Projekt/(%d+)' ORDER BY page_title DESC LIMIT 1" } -- Überprüfe das Ergebnis if result and result[1] and result[1].page_title then...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Warning: You are editing an out-of-date revision of this page. If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Please note that all contributions to Visual Data Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: