Please note: Due to constant attempts by spambots to gain access to SpongePedia, account creation is currently disabled. We apologize for any inconvenience.
You are not logged in. Please log in to get the full benefit of SpongePedia.
For further questions go to SpongePedia:Contents !
User:Myotis/Sandbox
(→Wirklich websichere Farben) |
|||
Line 437: | Line 437: | ||
| style="background-color:#FFF"|#FFF | | style="background-color:#FFF"|#FFF | ||
|}</div></div> | |}</div></div> | ||
+ | |||
+ | {| class="wikitable mw-collapsible mw-collapsed center" style="color:#000; font-family:monospace; font-size:1em; font-weight:bold; padding:6px;" | ||
+ | ! colspan="6" style="font-family:sans-serif;" | Tabelle der 216 websicheren Farben<includeonly><ref>In der Tabelle ist jeder aufgeführten Farbcode der RGB-Hex-Wert in seiner CSS-Kurzform; so entspricht zum Beispiel <code>#609</code> = <code>rgb(102, 0, 153)</code> oder hex. <code>#660099</code>. <small>Siehe auch [http://www.websiteoptimization.com/speed/tweak/hex/ CSS: Use Shorthand Hex Colors] (engl.) und [[:en:Web colors #Shorthand hexadecimal form]] (engl.)</small></ref></includeonly> | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#000; width:17%;"|#000 | ||
+ | | style="background:#003; width:17%;"|#003 | ||
+ | | style="background:#006; width:17%;"|#006 | ||
+ | | style="background:#009; width:17%;"|#009 | ||
+ | | style="background:#00C; width:16%;"|#00C | ||
+ | | style="background:#00F;"|#00F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#030"|#030 | ||
+ | | style="background:#033"|#033 | ||
+ | | style="background:#036"|#036 | ||
+ | | style="background:#039"|#039 | ||
+ | | style="background:#03C"|#03C | ||
+ | | style="background:#03F"|#03F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#060"|#060 | ||
+ | | style="background:#063"|#063 | ||
+ | | style="background:#066"|#066 | ||
+ | | style="background:#069"|#069 | ||
+ | | style="background:#06C"|#06C | ||
+ | | style="background:#06F"|#06F | ||
+ | |- | ||
+ | | style="background:#090"|#090 | ||
+ | | style="background:#093"|#093 | ||
+ | | style="background:#096"|#096 | ||
+ | | style="background:#099"|#099 | ||
+ | | style="background:#09C"|#09C | ||
+ | | style="background:#09F"|#09F | ||
+ | |- | ||
+ | | style="background:#0C0"|#0C0 | ||
+ | | style="background:#0C3"|#0C3 | ||
+ | | style="background:#0C6"|#0C6 | ||
+ | | style="background:#0C9"|#0C9 | ||
+ | | style="background:#0CC"|#0CC | ||
+ | | style="background:#0CF"|#0CF | ||
+ | |- | ||
+ | | style="background:#0F0"|#0F0 | ||
+ | | style="background:#0F3"|#0F3 | ||
+ | | style="background:#0F6"|#0F6 | ||
+ | | style="background:#0F9"|#0F9 | ||
+ | | style="background:#0FC"|#0FC | ||
+ | | style="background:#0FF"|#0FF | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#300"|#300 | ||
+ | | style="background:#303"|#303 | ||
+ | | style="background:#306"|#306 | ||
+ | | style="background:#309"|#309 | ||
+ | | style="background:#30C"|#30C | ||
+ | | style="background:#30F"|#30F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#330"|#330 | ||
+ | | style="background:#333"|#333 | ||
+ | | style="background:#336"|#336 | ||
+ | | style="background:#339"|#339 | ||
+ | | style="background:#33C"|#33C | ||
+ | | style="background:#33F"|#33F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#360"|#360 | ||
+ | | style="background:#363"|#363 | ||
+ | | style="background:#366"|#366 | ||
+ | | style="background:#369"|#369 | ||
+ | | style="background:#36C"|#36C | ||
+ | | style="background:#36F"|#36F | ||
+ | |- | ||
+ | | style="background:#390"|#390 | ||
+ | | style="background:#393"|#393 | ||
+ | | style="background:#396"|#396 | ||
+ | | style="background:#399"|#399 | ||
+ | | style="background:#39C"|#39C | ||
+ | | style="background:#39F"|#39F | ||
+ | |- | ||
+ | | style="background:#3C0"|#3C0 | ||
+ | | style="background:#3C3"|#3C3 | ||
+ | | style="background:#3C6"|#3C6 | ||
+ | | style="background:#3C9"|#3C9 | ||
+ | | style="background:#3CC"|#3CC | ||
+ | | style="background:#3CF"|#3CF | ||
+ | |- | ||
+ | | style="background:#3F0"|#3F0 | ||
+ | | style="background:#3F3"|#3F3 | ||
+ | | style="background:#3F6"|#3F6 | ||
+ | | style="background:#3F9"|#3F9 | ||
+ | | style="background:#3FC"|#3FC | ||
+ | | style="background:#3FF"|#3FF | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#600"|#600 | ||
+ | | style="background:#603"|#603 | ||
+ | | style="background:#606"|#606 | ||
+ | | style="background:#609"|#609 | ||
+ | | style="background:#60C"|#60C | ||
+ | | style="background:#60F"|#60F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#630"|#630 | ||
+ | | style="background:#633"|#633 | ||
+ | | style="background:#636"|#636 | ||
+ | | style="background:#639"|#639 | ||
+ | | style="background:#63C"|#63C | ||
+ | | style="background:#63F"|#63F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#660"|#660 | ||
+ | | style="background:#663"|#663 | ||
+ | | style="background:#666"|#666 | ||
+ | | style="background:#669"|#669 | ||
+ | | style="background:#66C"|#66C | ||
+ | | style="background:#66F"|#66F | ||
+ | |- | ||
+ | | style="background:#690"|#690 | ||
+ | | style="background:#693"|#693 | ||
+ | | style="background:#696"|#696 | ||
+ | | style="background:#699"|#699 | ||
+ | | style="background:#69C"|#69C | ||
+ | | style="background:#69F"|#69F | ||
+ | |- | ||
+ | | style="background:#6C0"|#6C0 | ||
+ | | style="background:#6C3"|#6C3 | ||
+ | | style="background:#6C6"|#6C6 | ||
+ | | style="background:#6C9"|#6C9 | ||
+ | | style="background:#6CC"|#6CC | ||
+ | | style="background:#6CF"|#6CF | ||
+ | |- | ||
+ | | style="background:#6F0"|#6F0 | ||
+ | | style="background:#6F3"|#6F3 | ||
+ | | style="background:#6F6"|#6F6 | ||
+ | | style="background:#6F9"|#6F9 | ||
+ | | style="background:#6FC"|#6FC | ||
+ | | style="background:#6FF"|#6FF | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#900"|#900 | ||
+ | | style="background:#903"|#903 | ||
+ | | style="background:#906"|#906 | ||
+ | | style="background:#909"|#909 | ||
+ | | style="background:#90C"|#90C | ||
+ | | style="background:#90F"|#90F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#930"|#930 | ||
+ | | style="background:#933"|#933 | ||
+ | | style="background:#936"|#936 | ||
+ | | style="background:#939"|#939 | ||
+ | | style="background:#93C"|#93C | ||
+ | | style="background:#93F"|#93F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#960"|#960 | ||
+ | | style="background:#963"|#963 | ||
+ | | style="background:#966"|#966 | ||
+ | | style="background:#969"|#969 | ||
+ | | style="background:#96C"|#96C | ||
+ | | style="background:#96F"|#96F | ||
+ | |- | ||
+ | | style="background:#990"|#990 | ||
+ | | style="background:#993"|#993 | ||
+ | | style="background:#996"|#996 | ||
+ | | style="background:#999"|#999 | ||
+ | | style="background:#99C"|#99C | ||
+ | | style="background:#99F"|#99F | ||
+ | |- | ||
+ | | style="background:#9C0"|#9C0 | ||
+ | | style="background:#9C3"|#9C3 | ||
+ | | style="background:#9C6"|#9C6 | ||
+ | | style="background:#9C9"|#9C9 | ||
+ | | style="background:#9CC"|#9CC | ||
+ | | style="background:#9CF"|#9CF | ||
+ | |- | ||
+ | | style="background:#9F0"|#9F0 | ||
+ | | style="background:#9F3"|#9F3 | ||
+ | | style="background:#9F6"|#9F6 | ||
+ | | style="background:#9F9"|#9F9 | ||
+ | | style="background:#9FC"|#9FC | ||
+ | | style="background:#9FF"|#9FF | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#C00"|#C00 | ||
+ | | style="background:#C03"|#C03 | ||
+ | | style="background:#C06"|#C06 | ||
+ | | style="background:#C09"|#C09 | ||
+ | | style="background:#C0C"|#C0C | ||
+ | | style="background:#C0F"|#C0F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#C30"|#C30 | ||
+ | | style="background:#C33"|#C33 | ||
+ | | style="background:#C36"|#C36 | ||
+ | | style="background:#C39"|#C39 | ||
+ | | style="background:#C3C"|#C3C | ||
+ | | style="background:#C3F"|#C3F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#C60"|#C60 | ||
+ | | style="background:#C63"|#C63 | ||
+ | | style="background:#C66"|#C66 | ||
+ | | style="background:#C69"|#C69 | ||
+ | | style="background:#C6C"|#C6C | ||
+ | | style="background:#C6F"|#C6F | ||
+ | |- | ||
+ | | style="background:#C90"|#C90 | ||
+ | | style="background:#C93"|#C93 | ||
+ | | style="background:#C96"|#C96 | ||
+ | | style="background:#C99"|#C99 | ||
+ | | style="background:#C9C"|#C9C | ||
+ | | style="background:#C9F"|#C9F | ||
+ | |- | ||
+ | | style="background:#CC0"|#CC0 | ||
+ | | style="background:#CC3"|#CC3 | ||
+ | | style="background:#CC6"|#CC6 | ||
+ | | style="background:#CC9"|#CC9 | ||
+ | | style="background:#CCC"|#CCC | ||
+ | | style="background:#CCF"|#CCF | ||
+ | |- | ||
+ | | style="background:#CF0"|#CF0 | ||
+ | | style="background:#CF3"|#CF3 | ||
+ | | style="background:#CF6"|#CF6 | ||
+ | | style="background:#CF9"|#CF9 | ||
+ | | style="background:#CFC"|#CFC | ||
+ | | style="background:#CFF"|#CFF | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#F00"|#F00 | ||
+ | | style="background:#F03"|#F03 | ||
+ | | style="background:#F06"|#F06 | ||
+ | | style="background:#F09"|#F09 | ||
+ | | style="background:#F0C"|#F0C | ||
+ | | style="background:#F0F"|#F0F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#F30"|#F30 | ||
+ | | style="background:#F33"|#F33 | ||
+ | | style="background:#F36"|#F36 | ||
+ | | style="background:#F39"|#F39 | ||
+ | | style="background:#F3C"|#F3C | ||
+ | | style="background:#F3F"|#F3F | ||
+ | |- style="color:#FFF" | ||
+ | | style="background:#F60"|#F60 | ||
+ | | style="background:#F63"|#F63 | ||
+ | | style="background:#F66"|#F66 | ||
+ | | style="background:#F69"|#F69 | ||
+ | | style="background:#F6C"|#F6C | ||
+ | | style="background:#F6F"|#F6F | ||
+ | |- | ||
+ | | style="background:#F90"|#F90 | ||
+ | | style="background:#F93"|#F93 | ||
+ | | style="background:#F96"|#F96 | ||
+ | | style="background:#F99"|#F99 | ||
+ | | style="background:#F9C"|#F9C | ||
+ | | style="background:#F9F"|#F9F | ||
+ | |- | ||
+ | | style="background:#FC0"|#FC0 | ||
+ | | style="background:#FC3"|#FC3 | ||
+ | | style="background:#FC6"|#FC6 | ||
+ | | style="background:#FC9"|#FC9 | ||
+ | | style="background:#FCC"|#FCC | ||
+ | | style="background:#FCF"|#FCF | ||
+ | |- | ||
+ | | style="background:#FF0"|#FF0 | ||
+ | | style="background:#FF3"|#FF3 | ||
+ | | style="background:#FF6"|#FF6 | ||
+ | | style="background:#FF9"|#FF9 | ||
+ | | style="background:#FFC"|#FFC | ||
+ | | style="background:#FFF"|#FFF | ||
+ | |} | ||
== Wirklich websichere Farben == | == Wirklich websichere Farben == |
Latest revision as of 15:36, 22 June 2020
Contents |
[edit] Collapsible Tables
[edit] Simple example
Tables are simpler to work with, as you merely need to add the collapsible class to the table itself. For the [hide]/[show] link to appear, the table's first row must be a header row, that is, one of the cells in the first row must be declared with an exclamation mark (in wikisyntax). The use of the class wikitable in the example below is merely for appearance; it is not needed for collapsible to function.
Code entered | Output produced | ||
---|---|---|---|
{| class="wikitable collapsible" ! Simple collapsible table |- | Lorem ipsum dolor sit amet |} |
|
Using the syntax above, collapsible tables are often used to always display an introduction to, or summary of, a lengthy discussion or section of content, while hiding the majority of that content from immediate view. The summary message is put in the header cell, and the content is placed into the body cell. The content is then easily accessible by clicking the 'show' button. The collapsible functionality is also available in larger and more complicated tables, as long as there is a header cell in the first row of the table.
Code entered | Output produced | ||||||
---|---|---|---|---|---|---|---|
{| class="wikitable collapsible" |A normal cell in the header row ! colspan="2"| Header cell spans two cols |- | colspan="2" | Lorem ipsum dolor sit amet | Separate body cell |} |
|
[edit] Collapsing tables by default
Just using the collapsible class produces a table which is expanded by default, but can be collapsed by the reader. It is also possible to create tables which are collapsed by default, and can be optionally expanded. There are several methods for doing this, depending on the situations in which you want the table to collapse.
[edit] 'collapsed'
Adding the collapsed class will cause the table to always be initially collapsed, no matter what happens around it. It is the simplest method for doing so. Using the examples above:
Code entered | Output produced | ||||||
---|---|---|---|---|---|---|---|
{| class="wikitable collapsible collapsed" ! Simple collapsible table |- | Lorem ipsum dolor sit amet |} |
| ||||||
{| class="wikitable collapsible collapsed" |A normal cell in the header row ! colspan="2"| Header cell spans two cols |- | colspan="2" | Lorem ipsum dolor sit amet | Separate body cell |} |
|
[edit] 'autocollapse'
Adding the autocollapse class causes the table to collapse when there are 2 or more collapsible tables on the page (this threshold might be different on other projects). The example below, therefore, collapses because there are numerous collapsible tables on the page.
Code entered | Output produced | ||
---|---|---|---|
{| class="wikitable collapsible autocollapse" ! Simple collapsible table |- | Lorem ipsum dolor sit amet |} |
|
[edit] 'innercollapse' and 'outercollapse'
Using this pair of classes, it is possible to make a table collapsed by default only when it is contained within a particular object, such as another table. This is mainly useful for tables inside templates, which are often nested.
Code entered | Output produced | ||||
---|---|---|---|---|---|
{| class="wikitable outercollapse" ! This table does not collapse |- | But the table inside this cell {| class="wikitable collapsible innercollapse" ! Does collapse |- | Hiding this part |} |} |
|
[edit] Other notes
[edit] Sortable tables
Collapsible tables can be combined with the sortable tables functionality without difficulty. However, because the hide/show button is placed in the first header cell located, its positioning can look a bit peculiar if the table is not wide enough:
Code entered | Output produced | ||||||||
---|---|---|---|---|---|---|---|---|---|
{| class="wikitable collapsible sortable" !Name!!Score |- |John||59 |- |Jane||100 |- |Bob||72 |} |
|
header | ||||||
---|---|---|---|---|---|---|
|
Possible alternative is sortable table inside one-cell collapsible table, see example on the right.
[edit] Customization
Registered users can edit their personal js file file to change some of the variables used.
<source lang=javascript> autoCollapse = 4 //how many collapsible tables on the page before autocollapse works (default=2) var collapseCaption = 'collapse' //text of the [hide] link (default='hide') var expandCaption = 'uncollapse' //text of the [show] link (default='show') </source>
#000 | #003 | #006 | #009 | #00C | #00F | #030 | #033 | #036 | #039 | #03C | #03F |
#300 | #303 | #306 | #309 | #30C | #30F | #330 | #333 | #336 | #339 | #33C | #33F |
#600 | #603 | #606 | #609 | #60C | #60F | #630 | #633 | #636 | #639 | #63C | #63F |
#900 | #903 | #906 | #909 | #90C | #90F | #930 | #933 | #936 | #939 | #93C | #93F |
#C00 | #C03 | #C06 | #C09 | #C0C | #C0F | #C30 | #C33 | #C36 | #C39 | #C3C | #C3F |
#F00 | #F03 | #F06 | #F09 | #F0C | #F0F | #F30 | #F33 | #F36 | #F39 | #F3C | #F3F |
#060 | #063 | #066 | #069 | #06C | #06F | #090 | #093 | #096 | #099 | #09C | #09F |
#360 | #363 | #366 | #369 | #36C | #36F | #390 | #393 | #396 | #399 | #39C | #39F |
#660 | #663 | #666 | #669 | #66C | #66F | #690 | #693 | #696 | #699 | #69C | #69F |
#960 | #963 | #966 | #969 | #96C | #96F | #990 | #993 | #996 | #999 | #99C | #99F |
#C60 | #C63 | #C66 | #C69 | #C6C | #C6F | #C90 | #C93 | #C96 | #C99 | #C9C | #C9F |
#F60 | #F63 | #F66 | #F69 | #F6C | #F6F | #F90 | #F93 | #F96 | #F99 | #F9C | #F9F |
#0C0 | #0C3 | #0C6 | #0C9 | #0CC | #0CF | #0F0 | #0F3 | #0F6 | #0F9 | #0FC | #0FF |
#3C0 | #3C3 | #3C6 | #3C9 | #3CC | #3CF | #3F0 | #3F3 | #3F6 | #3F9 | #3FC | #3FF |
#6C0 | #6C3 | #6C6 | #6C9 | #6CC | #6CF | #6F0 | #6F3 | #6F6 | #6F9 | #6FC | #6FF |
#9C0 | #9C3 | #9C6 | #9C9 | #9CC | #9CF | #9F0 | #9F3 | #9F6 | #9F9 | #9FC | #9FF |
#CC0 | #CC3 | #CC6 | #CC9 | #CCC | #CCF | #CF0 | #CF3 | #CF6 | #CF9 | #CFC | #CFF |
#FC0 | #FC3 | #FC6 | #FC9 | #FCC | #FCF | #FF0 | #FF3 | #FF6 | #FF9 | #FFC | #FFF |
Tabelle der 216 websicheren Farben | |||||
---|---|---|---|---|---|
#000 | #003 | #006 | #009 | #00C | #00F |
#030 | #033 | #036 | #039 | #03C | #03F |
#060 | #063 | #066 | #069 | #06C | #06F |
#090 | #093 | #096 | #099 | #09C | #09F |
#0C0 | #0C3 | #0C6 | #0C9 | #0CC | #0CF |
#0F0 | #0F3 | #0F6 | #0F9 | #0FC | #0FF |
#300 | #303 | #306 | #309 | #30C | #30F |
#330 | #333 | #336 | #339 | #33C | #33F |
#360 | #363 | #366 | #369 | #36C | #36F |
#390 | #393 | #396 | #399 | #39C | #39F |
#3C0 | #3C3 | #3C6 | #3C9 | #3CC | #3CF |
#3F0 | #3F3 | #3F6 | #3F9 | #3FC | #3FF |
#600 | #603 | #606 | #609 | #60C | #60F |
#630 | #633 | #636 | #639 | #63C | #63F |
#660 | #663 | #666 | #669 | #66C | #66F |
#690 | #693 | #696 | #699 | #69C | #69F |
#6C0 | #6C3 | #6C6 | #6C9 | #6CC | #6CF |
#6F0 | #6F3 | #6F6 | #6F9 | #6FC | #6FF |
#900 | #903 | #906 | #909 | #90C | #90F |
#930 | #933 | #936 | #939 | #93C | #93F |
#960 | #963 | #966 | #969 | #96C | #96F |
#990 | #993 | #996 | #999 | #99C | #99F |
#9C0 | #9C3 | #9C6 | #9C9 | #9CC | #9CF |
#9F0 | #9F3 | #9F6 | #9F9 | #9FC | #9FF |
#C00 | #C03 | #C06 | #C09 | #C0C | #C0F |
#C30 | #C33 | #C36 | #C39 | #C3C | #C3F |
#C60 | #C63 | #C66 | #C69 | #C6C | #C6F |
#C90 | #C93 | #C96 | #C99 | #C9C | #C9F |
#CC0 | #CC3 | #CC6 | #CC9 | #CCC | #CCF |
#CF0 | #CF3 | #CF6 | #CF9 | #CFC | #CFF |
#F00 | #F03 | #F06 | #F09 | #F0C | #F0F |
#F30 | #F33 | #F36 | #F39 | #F3C | #F3F |
#F60 | #F63 | #F66 | #F69 | #F6C | #F6F |
#F90 | #F93 | #F96 | #F99 | #F9C | #F9F |
#FC0 | #FC3 | #FC6 | #FC9 | #FCC | #FCF |
#FF0 | #FF3 | #FF6 | #FF9 | #FFC | #FFF |
[edit] Wirklich websichere Farben
Bei der Verwendung von 16 Bit Farbtiefe ergeben sich weitere Probleme: David Lehn und Hadley Stern haben festgestellt, dass nur 22 der 216 websicheren Farben bei 16 Bit Farbtiefe ohne Neuberechnung richtig dargestellt werden können. Sie bezeichneten diese Gruppe von 22 Farben als wirklich websichere Farbpalette. Sie besteht hauptsächlich aus grünen und gelben Farbtönen, ihre Werte sind in der folgenden Tabelle dargestellt:
#000 | #F00 | #003 | #F03 | #00F | #F0F | #0F0 | #6F0 | #FF0 | #3F3 | #6F3 |
#FF3 | #0F6 | #3F6 | #CF6 | #FF6 | #0FC | #3FC | #0FF | #3FF | #6FF | #FFF |
Einbindung dieser Vorlage:
{{EpInfo|Title|Episode Card|Episode number|Season|Airdate|Previous Episode|Next Episode}}
Beispiel für die Episode Experten:
{{EpInfo|Experten|[[Bild:Experten.jpg]]|1c|1/1999|Tea at the Treedome|01.05.1999|23.08.2002|Meeresbodenpflege|Seifenblasen}}
{{EpInfo2|SpongeBob Schwammkopf|Santiago Ziesmer}}
{{EpInfo2|Sandy Cheeks|Cathleen Gawlich}}
{{EpInfo2|Patrick Star|Marco Kröger}}
|}
Für Charaktere Vorlage EpInfo2 je nach Anzahl wie im oben gezeigten Beispiel einfügen und mit |} abschließen.
Sollten für die deutsche Erstausstrahlung zwei Daten angegeben sein (Nick Premium, Nick), hat die entsprechende Spalte
wie im folgenden Beispiel auszusehen:
|24.04.2008 <small>([[Nick Premium]])</small><br>27.05.2008 <small>([[Nick]])</small>|
{{{1}}} | |
---|---|
Episode No.: | {{{3}}} |
Season: | {{{4}}} |
Airdate: | {{{5}}} |
Previous Episode: | [[{{{6}}} (Episode)|{{{6}}}]] |
Next Episode: | [[{{{7}}} (Episode)|{{{7}}}]] |
Characters | Voice actors |