Sandbox: Difference between revisions

From Wurst-Wasser.net
Jump to navigation Jump to search
 
(82 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Terminal, even more final approach ==
= Templates =
=== Replacement Sandbox ===
== Key press ==
* Replace Spaces (Would this work?)
Davor {{key press|SHIFT}} Danach
{{#replace:Foo bar
more words| |_}}
* Replace Spaces (Would this work?)
{{#replace:Foo bar
more words| | }}
* Replace Newlines (FAIL, won't work at all)
{{#replace:Foo bar
more words|\n|_}}
* Replace Newlines (FAIL, matches any whitespace BUT the newline) (haha: https://lists.wikimedia.org/hyperkitty/list/mediawiki-l@lists.wikimedia.org/message/VLVN64GBQXN32HMCKK3IY2UO4ZYH4IH4/ )
{{#replace:Foo bar
more words|
|_}}
* Replace Newlines (FAIL. no Match 0x10)
{{#replace:Foo bar
more words|&#0A;|_}}
* Replace Newlines (FAIL. no Match 0x13)
{{#replace:Foo bar
more words|&#0D;|_}}
* Replace Newlines WHAT NOW?
{{#replace:Foo bar
more words|HOW|_}}


=== Narf ===
* Davor {{key press|SHIFT}} Danach
{{Terminal|1=                                              System  . . . . . :  NIBBLER<br/>                                              Subsystem . . . . :  QINTER<br/>                                              Bildschirm  . . . :  KIFS1<br/><br/>                Benutzer  . . . . . . . . . . . .  __________<br/>}}
** Davor {{key press|SHIFT}} Danach


== Terminal, final approach ==
''This is totally fucked! Start over! (Wanna see? &rarr;)''


<div class="mw-collapsible mw-collapsed">
Wenn key press in list item ist, gibts nen Zeilenumbruch - why? Warum ist das ein paragraph?
{{Infobox|These utilize [[Template:Terminal]].}}
* Official: https://www.mediawiki.org/wiki/Template:Key_press
* Ours: https://www.wurst-wasser.net//wiki/index.php/Template:Key_press
* WTF (anderes Wiki, wo's OK ist):<br/>[[File:ksnip_2023-10-30_11-33-49.png|400px]]


=== 1 ===
== Button ==
Make use of StringFunctions (&rarr; <del>https://www.mediawiki.org/wiki/Extension:StringFunctions ???</del> https://www.mediawiki.org/wiki/Extension:ParserFunctions)
{{Template Button|Knopf}}


==== Sandbox String replace ====
Hmm, fehlen mir Vorlagen?
===== s =====
{{#replace:Test|s|_}}


===== space =====
= Terminal =
First line keeps beeing fucked
{{Infobox|All Terminal-Related Sandboxing has moved to: [[Sandbox/Terminal-Root]]}}
 
 
{{#replace:
                                              System  . . . . . :  NIBBLER<br>                                              Subsystem . . . . :  QINTER<br/>                                              Bildschirm  . . . :  KIFS1<br/><br/>                Benutzer  . . . . . . . . . . . .  __________<br/>| | }}
 
===== all fucked up =====
{{Terminal |<nowiki>
                                              System  . . . . . :  NIBBLER
                                              Subsystem . . . . :  QINTER
                                              Bildschirm  . . . :  KIFS1
 
                Benutzer  . . . . . . . . . . . .  __________
                Kennwort  . . . . . . . . . . . .  __________
                Programm/Prozedur . . . . . . . .  __________
                Menü  . . . . . . . . . . . . . .  __________
                Aktuelle Bibliothek . . . . . . .  __________
 
 
 
 
 
 
 
 
 
 
 
 
 
                                        (C) COPYRIGHT IBM CORP. 1980, 1999.
</nowiki>}}
 
===== Sandbox =====
{{#replace:                                              System  . . . . . :  NIBBLER
                                              Subsystem . . . . :  QINTER
                                              Bildschirm  . . . :  KIFS1
                Benutzer  . . . . . . . . . . . .  __________
                Kennwort  . . . . . . . . . . . .  __________
                Programm/Prozedur . . . . . . . .  __________
                Menü  . . . . . . . . . . . . . .  __________
                Aktuelle Bibliothek . . . . . . .  __________
                                        (C) COPYRIGHT IBM CORP. 1980, 1999.
| |&nbsp;}}
</div>
 
== Terminal-Sandbox, reloaded ==
{{Infobox|These utilize <del>[[Template:Terminal]]</del>[[Template:TerminalSandbox]].}}
 
=== 7 ===
Make use of Magic Words. Again. Forcing 80 columns, filling with spaces (special ones, use Alt-Space to produce, used everywhere where HTML would delete >1 spaces (can use nbsp, but thats so ugly!)):
{{TerminalSandbox |
{{padleft:System  . . . . . :   NIBBLER|80| }}
{{padleft:Subsystem . . . . :   QINTER |80| }}
{{padleft:Bildschirm  . . . :   KIFS1  |80| }}
{{padleft:|80| }}
{{padleft:Benutzer  . . . . . . . . . . . .   __________              |80| }}
{{padleft:Kennwort  . . . . . . . . . . . .   __________              |80| }}
{{padleft:Programm/Prozedur . . . . . . . .   __________              |80| }}
{{padleft:Menü  . . . . . . . . . . . . . .   __________              |80| }}
{{padleft:Aktuelle Bibliothek . . . . . . .   __________              |80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:|80| }}
{{padleft:(C) COPYRIGHT IBM CORP. 1980, 1999.|80| }}
}}
 
Best solution this far.
 
Issues:
* Multiple spaces must be escaped (using &amp;nbsp; or Alt-Space)
* Since this fills the row to 80 columns, text must be right-balanced, again, use special spaces to make it work
* Every row has to be edited
 
What would be better?
&rarr; Feed the Template one string with ordinary spaces and newlines and and let it escape/convert them (How? Lua?)
:&rarr; <del>https://www.mediawiki.org/wiki/Extension:StringFunctions ???</del> https://www.mediawiki.org/wiki/Extension:ParserFunctions
 
=== 6 ===
 
==== Sandbox ====
{{padleft:Test|80|_}}
 
==== Demo ====
Make use of Magic Words
{{TerminalSandbox |
{{padleft:System  . . . . . :   NIBBLER|80| }}
{{padleft:Subsystem . . . . :   QINTER |80| }}
}}
 
=== 5 ===
Like 4, but encoding leading spaces with ":" (see https://www.mediawiki.org/wiki/Help:Formatting "Indent Text")
{{TerminalSandbox |
:::::::::::::::::System&nbsp;&nbsp;. . . . . :&nbsp;&nbsp;&nbsp;NIBBLER
:::::::::::::::::Subsystem&nbsp;. . . . :&nbsp;&nbsp;&nbsp;QINTER
}}
 
=== 4 ===
Like 2, but only leading spaces coded (and some more, because HTML ignores multiple spaces. By design. >1 Space == 1 Space. Fuck!
{{TerminalSandbox |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System&nbsp;&nbsp;. . . . . :&nbsp;&nbsp;&nbsp;NIBBLER
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subsystem&nbsp;. . . . :&nbsp;&nbsp;&nbsp;QINTER
}}
 
=== 3 ===
Prevent <nowiki><code>/<pre></nowiki> do it's work, still sucks, even disregards <nowiki><br/></nowiki>...
{{TerminalSandbox |<nowiki>                                              System  . . . . . :&nbsp;&nbsp;&nbsp;NIBBLER<br/>
                                              Subsystem . . . . :&nbsp;&nbsp;&nbsp;QINTER</nowiki>
}}
 
=== 2 ===
Spaces, converted in nbsp (ugly)
{{TerminalSandbox | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kennwort&nbsp;&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;&nbsp;&nbsp;__________<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Programm/Prozedur&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;&nbsp;&nbsp;__________<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Menü&nbsp;&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;&nbsp;&nbsp;__________<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Aktuelle&nbsp;Bibliothek&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;.&nbsp;&nbsp;&nbsp;__________<br/><br/><br/><br/><br/>
}}
 
=== 1 ===
Spaces...
{{TerminalSandbox |                                              System  . . . . . :  NIBBLER<br/>                                              Subsystem . . . . :  QINTER<br/>                                              Bildschirm  . . . :  KIFS1<br/><br/><br/>                Benutzer  . . . . . . . . . . . .  __________<br/>                Kennwort  . . . . . . . . . . . .  __________<br/>                Programm/Prozedur . . . . . . . .  __________<br/>                Menü  . . . . . . . . . . . . . .  __________<br/>                Aktuelle Bibliothek . . . . . . .  __________<br/><br/><br/><br/><br/>
}}
 
== Terminal-Sandbox ==
[[MediaWiki:Common.css]]
 
WIP
 
<!--
<html>
<style>
.code_blue
{
color: Lime;
background: black;
font-weight: normal;
font-style: normal;
}
</style>
</html>
-->
AS/400 rocks
Blah
Blubb
Dang
 
{{Pagename}}


== Some Forum Related Crap ==
== Some Forum Related Crap ==
Line 230: Line 40:


[[Image:Testfile4.png]]
[[Image:Testfile4.png]]
== Upload Test ==
[[File:Gua kaputt.png|400px]]


== Other Tests ==
== Other Tests ==

Latest revision as of 12:35, 30 October 2023

Templates

Key press

Davor ⇧ Shift Danach

  • Davor

⇧ Shift Danach

    • Davor

⇧ Shift Danach


Wenn key press in list item ist, gibts nen Zeilenumbruch - why? Warum ist das ein paragraph?

Button

Template:Template Button

Hmm, fehlen mir Vorlagen?

Terminal

ℹ️ All Terminal-Related Sandboxing has moved to: Sandbox/Terminal-Root

Some Forum Related Crap

Oldthreaddetectedbewarezombies.gif

TestImage.png

Caching Stuff Test

Testfile.png Spuren zu verfolgen:

wgDiff3
wgMainCacheType CACHE_ACCEL

http://www.mediawiki.org/wiki/Manual:Cache http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_completely_disable_caching.3F THIS seems to solve it: http://www.mediawiki.org/wiki/Manual:$wgEnableParserCache

Testfile2.png Testfile3.png

Frag Sebastian...

Testfile4.png

Upload Test

Gua kaputt.png

Other Tests

  1. toc
    1. http://www.wurst-wasser.net/wiki/index.php/Sandbox#search_what
    2. http://www.wurst-wasser.net/wiki/index.php/Sandbox#anzeigen

vdfjkn dfkjnv kfd

vdfvdfsv

vfds vdfsv dsfv


fon: +49 781 00 9999999

mobil: +49 172 0000 0000 000

mailto:devnull@wurst-wasser.net

vfdsvdfvfafv


search_what

  • foo
  • foo

anzeigen

  • Gagag

Tables

http://www.mediawiki.org/wiki/Help:Tables/de

Wiki Code vgl. HTML Code Beschreibung
{| <table> Tabellenanfang
|+   Tabellenüberschrift, optional; nur einmal pro Tabelle zwischen Tabellenanfang und erster Zeile definierbar
|- <tr> neue Tabellenzeile
! <th> Tabellenkopfzelle, optional. Aufeinanderfolgende Kopfzellen können, durch doppelte Ausrufezeichen (!!) getrennt, in der gleichen Zeile folgen oder mit einfachen Ausrufezeichen (!) auf einer neuen Zeile beginnen.
| <td> Tabellenzelle, Pflicht! Aufeinanderfolgende Zellen können, durch doppelte Striche (||) getrennt, in der gleichen Zeile folgen oder mit einfachem Strich (|) auf einer neuen Zeile beginnen.
|} </table> Tabellenende