|
|
(33 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
| __NEWSECTIONLINK____NOCACHE__{{TOC rechts}} | | __NEWSECTIONLINK____NOCACHE__{{TOC rechts}} |
− |
| |
− | == Verzeichnisstruktur ==
| |
− |
| |
− | <div class="list-style-image-folder">
| |
− | * Deine Mutter
| |
− | * Adolf Hitler
| |
− | * Chuck Norris
| |
− | ** Roundhousekick
| |
− | * George W. Bush
| |
− | </div><css>
| |
− | .list-style-image-folder li {
| |
− | list-style-image: url('/images/thumb/f/f3/Folder.svg/16px-Folder.svg.png');
| |
− | }
| |
− | </css>
| |
| | | |
| == Thematisch sortierte Scheiße == | | == Thematisch sortierte Scheiße == |
Zeile 66: |
Zeile 52: |
| var tUncatFiles = new Object(); | | var tUncatFiles = new Object(); |
| | | |
− | tUncatFiles.getFiles = function(from) { | + | tUncatFiles.displayMin = 20; |
− | if (!from) { | + | |
− | $('#tUncatFiles-div').html('<img src="/images/d/de/Ajax-loader.gif" alt="Bitte warten …" title="Bitte warten …" />');
| + | tUncatFiles.getFiles = function(imgFrom, catFrom) { |
| + | $('#tUncatFiles-div').html('<img src="/images/d/de/Ajax-loader.gif" alt="Bitte warten …" title="Bitte warten …" />'); |
| + | |
| + | var query = { |
| + | action: 'query', |
| + | prop: 'categories', |
| + | cllimit: 'max', |
| + | clshow: '!hidden', |
| + | generator: 'allimages', |
| + | gailimit: 1000 |
| + | }; |
| + | |
| + | if (imgFrom === undefined) { |
| tUncatFiles.files = new Array(); | | tUncatFiles.files = new Array(); |
− | from = ''; | + | imgFrom = ''; |
| + | } |
| + | |
| + | if (catFrom) { |
| + | query.clcontinue = catFrom; |
| } | | } |
− | api.request('action=query&prop=categories&cllimit=max&clshow=!hidden&generator=allimages&gailimit=max&gaicontinue=' + encodeURIComponent(from), tUncatFiles.receiveFiles); | + | |
| + | query.gaicontinue = imgFrom; |
| + | |
| + | api.request(query, tUncatFiles.receiveFiles, query.gaicontinue); |
| } | | } |
| | | |
− | tUncatFiles.receiveFiles = function(data) { | + | tUncatFiles.receiveFiles = function(data, imgFrom) { |
| $.each(data.query.pages, function() { | | $.each(data.query.pages, function() { |
− | tUncatFiles.files.push(this); | + | if (tUncatFiles.files[this.pageid]) { |
| + | if (!tUncatFiles.files[this.pageid].categories) { |
| + | tUncatFiles.files[this.pageid].categories = this.categories; |
| + | } |
| + | } |
| + | else { |
| + | tUncatFiles.files[this.pageid] = this; |
| + | } |
| }); | | }); |
− | if (data['query-continue']) { | + | |
− | tUncatFiles.getFiles(data['query-continue'].allimages.gaicontinue); | + | if (data['query-continue'].categories) { |
| + | tUncatFiles.getFiles(imgFrom, data['query-continue'].categories.clcontinue); |
| } | | } |
| else { | | else { |
− | var text = '<ol>'; | + | console.log(tUncatFiles.files); |
− | $.each(tUncatFiles.files, function() { | + | var i = 0; |
− | if (this.categories === undefined) { | + | var text = '<gallery>'; |
− | text += '<li><a href="' + mw.util.wikiGetlink(this.title) + '" alt="' + mw.html.escape(this.title) + '">' + mw.html.escape(this.title) + '</a></li>'; | + | $.each(tUncatFiles.files, function(k, v) { |
| + | if (v !== undefined && v.categories === undefined) { |
| + | text += v.title + "|[[:" + v.title + "]]\n"; |
| + | i++; |
| } | | } |
| }); | | }); |
− | text += '</ol>'; | + | text += '</gallery>'; |
− | $('#tUncatFiles-div').html(text); | + | |
| + | if (i >= tUncatFiles.displayMin) { |
| + | api.request({ |
| + | action: 'parse', |
| + | contentmodel: 'wikitext', |
| + | text: text |
| + | }, tUncatFiles.parseGallery, data['query-continue']); |
| + | } |
| + | else { |
| + | tUncatFiles.getFiles(data['query-continue'].allimages.gaicontinue); |
| + | } |
| } | | } |
| + | } |
| + | |
| + | tUncatFiles.parseGallery = function(data, cont) { |
| + | var text = data.parse.text['*']; |
| + | |
| + | if (cont) { |
| + | text += '<button onclick="tUncatFiles.getFiles(\'' + cont.allimages.gaicontinue + '\')">mehr Dateien anzeigen</button>'; |
| + | } |
| + | |
| + | $('#tUncatFiles-div').html(text); |
| } | | } |
| | | |
Zeile 197: |
Zeile 233: |
| } ); | | } ); |
| </js> | | </js> |
− |
| |
− | == Editbuttons ==
| |
− | <html>
| |
− | <div id="toolbar1">
| |
− | <span style="" class="buttonGroup buttonGroup-default">
| |
− | <div data-context="edit" class="editButton editButton-bold" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Fetter Text"><b>F</b></div>
| |
− | <div data-context="edit" class="editButton editButton-italic" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Kursiver Text"><i>K</i></div>
| |
− | <div data-context="edit" class="editButton editButton-link" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Interner Link"><u style="color: #0645AD;">Ab</u></div>
| |
− | <div data-context="edit" class="editButton editButton-extlink" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Externer Link (http:// beachten)"><img src="http://www.stupidedia.org/images/thumb/4/49/Editbutton-extlink.svg/17px-Editbutton-extlink.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-headline" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Ebene-2-Überschrift"><span style="font-size: 200%;">A</span></div>
| |
− | <div data-context="edit" class="editButton editButton-image" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Dateilink"><img src="http://www.stupidedia.org/images/thumb/6/62/Editbutton-image.svg/17px-Editbutton-image.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-math" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Mathematische Formel einfügen (LaTeX)"><img src="http://www.stupidedia.org/images/thumb/3/34/Editbutton-math.svg/17px-Editbutton-math.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-nowiki" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Unformatierter Text"><img src="http://www.stupidedia.org/images/thumb/b/b2/Nowiki.svg/19px-Nowiki.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-hr" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Horizontale Linie (sparsam verwenden)"><span style="font-size: 240%; line-height: 19px;">–</span></div>
| |
− | <div data-context="edit" class="editButton editButton-tablegen" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Tabellengenerator aufrufen (öffnet in neuem Fenster/Tab)"><img src="http://www.stupidedia.org/images/thumb/8/8c/Editbutton-tablegen.svg/17px-Editbutton-tablegen.svg.png" alt=""></div>
| |
− | </span>
| |
− | </div>
| |
− | <div class="visualClear"></div>
| |
− | <div id="toolbar2">
| |
− | <span style="" class="buttonGroup buttonGroup-default">
| |
− | <div data-context="edit" class="editButton editButton-bold" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Fetter Text"><b>F</b></div>
| |
− | <div data-context="edit" class="editButton editButton-italic" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Kursiver Text"><i>K</i></div>
| |
− | <div data-context="edit" class="editButton editButton-link" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Interner Link"><u style="color: #0645AD;">Ab</u></div>
| |
− | <div data-context="edit" class="editButton editButton-extlink" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Externer Link (http:// beachten)"><img src="http://www.stupidedia.org/images/thumb/4/49/Editbutton-extlink.svg/17px-Editbutton-extlink.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-headline" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Ebene-2-Überschrift"><span style="font-size: 200%;">A</span></div>
| |
− | <div data-context="edit" class="editButton editButton-image" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Dateilink"><img src="http://www.stupidedia.org/images/thumb/6/62/Editbutton-image.svg/17px-Editbutton-image.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-math" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Mathematische Formel einfügen (LaTeX)"><img src="http://www.stupidedia.org/images/thumb/3/34/Editbutton-math.svg/17px-Editbutton-math.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-nowiki" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Unformatierter Text"><img src="http://www.stupidedia.org/images/thumb/b/b2/Nowiki.svg/19px-Nowiki.svg.png" alt=""></div>
| |
− | <div data-context="edit" class="editButton editButton-hr" style="width: 23px; height: 22px; line-height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Horizontale Linie (sparsam verwenden)"><span style="font-size: 240%; line-height: 19px;">–</span></div>
| |
− | <div data-context="edit" class="editButton editButton-tablegen" style="width: 23px; height: 22px; background-image: url('http://www.stupidedia.org/images/6/62/Clear.png');" title="Tabellengenerator aufrufen (öffnet in neuem Fenster/Tab)"><img src="http://www.stupidedia.org/images/thumb/8/8c/Editbutton-tablegen.svg/17px-Editbutton-tablegen.svg.png" alt=""></div>
| |
− | </span>
| |
− | </div>
| |
− | <div class="visualClear"></div>
| |
− | <div id="toolbar3">
| |
− | <img class="mw-toolbar-editbutton" id="mw-editbutton-bold" title="Fetter Text" alt="Fetter Text" src="/skins/common/images/de/button_bold.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-italic" title="Kursiver Text" alt="Kursiver Text" src="/skins/common/images/de/button_italic.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-link" title="Interner Link" alt="Interner Link" src="/skins/common/images/button_link.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-extlink" title="Externer Link (http:// beachten)" alt="Externer Link (http:// beachten)" src="/skins/common/images/button_extlink.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-headline" title="Ebene-2-Überschrift" alt="Ebene-2-Überschrift" src="/skins/common/images/button_headline.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-image" title="Dateilink" alt="Dateilink" src="/skins/common/images/button_image.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-media" title="Mediendatei-Link" alt="Mediendatei-Link" src="/skins/common/images/button_media.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-math" title="Mathematische Formel (LaTeX)" alt="Mathematische Formel (LaTeX)" src="/skins/common/images/button_math.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-nowiki" title="Unformatierter Text" alt="Unformatierter Text" src="/skins/common/images/button_nowiki.png" style="width: 23px; height: 22px;"><img class="mw-toolbar-editbutton" id="mw-editbutton-signature" title="Deine Unterschrift mit Zeitstempel" alt="Deine Unterschrift mit Zeitstempel" src="/skins/common/images/button_sig.png" style="width: 23px; height: 22px; display: none;"><img class="mw-toolbar-editbutton" id="mw-editbutton-hr" title="Horizontale Linie (sparsam verwenden)" alt="Horizontale Linie (sparsam verwenden)" src="/skins/common/images/button_hr.png" style="width: 23px; height: 22px;"><img onclick="window.open(mw.util.wikiGetlink('Benutzer:Bernardissimo/Tabellengenerator'), '_blank')" title="Tabellengenerator öffnen" alt="Tabellengenerator öffnen" id="mw-editbutton-tablegen" class="mw-toolbar-editbutton" src="http://www.stupidedia.org/images/b/bd/WikEd_table.png">
| |
− | </div>
| |
− | </html><css>
| |
− | .editButton {
| |
− | float: left;
| |
− | -moz-box-sizing: border-box;
| |
− | box-sizing: border-box;
| |
− | text-align: center;
| |
− | vertical-align: center;
| |
− | overflow: hidden;
| |
− | cursor: pointer;
| |
− | background-repeat: no-repeat;
| |
− | background-position: center;
| |
− | }
| |
− |
| |
− | #toolbar2 .editButton {
| |
− | font-weight: bold;
| |
− | }
| |
− |
| |
− | .buttonGroup:first-child .editButton:firstChild {
| |
− | margin-left: 0px;
| |
− | }
| |
− | </css>
| |
− |
| |
− | == Buttonbilder ==
| |
− |
| |
− | <dynamicpagelist>
| |
− | category = Kategorie:Datei:Editbutton
| |
− | mode = none
| |
− | startitem = {{/Buttonbildgenerator|
| |
− | enditem = }}
| |
− | shownamespace = false
| |
− | count = 10
| |
− | ordermethod = categoryadd
| |
− | order = ascending
| |
− | unlink = true
| |
− | </dynamicpagelist>
| |