Vorlage:Schachbrett/Dokumentation

aus Schachcomputer.info Wiki, der freien Schachcomputer-Wissensdatenbank

Hinweise

Ein paar praktische Hinweise:

  • Achte darauf, dass du das Grundschema nicht veränderst, insbesondere lasse die Zeichen "|" und "=" da, wo sie sind.
  • Du kannst das Zeichen "|" nicht im Titel oder der Beschreibung verwenden.
  • Falls du das Zeichen "=" im Titel oder in der Beschreibung verwenden möchtest, musst du es in nowiki-Elemente einschließen.
  • Du kannst Formatierungen wie fett oder kursiv benutzen.

Diagrammarten

Standarddiagramm

R30 V2.5 - Magellan
Königsgambit


Dieses Diagramm wird empfohlen zur allgemeinen Verwendung in Artikeln über Eröffnungen, Endspiele, Spielverläufe, Positionen usw. Siehe zugehörigen Code unten.


{{Schachbrett|=
| tright
| R30 V2.5 - Magellan
|=

 8 |br|bn|bb|bq|bk|bb|bn|br|=
 7 |bp|bp|bp|bp|  |bp|bp|bp|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |bp|  |  |  |=
 4 |  |  |  |  |wp|wp|  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |wp|wp|wp|wp|  |  |wp|wp|=
 1 |wr|wn|wb|wq|wk|wb|wn|wr|=
    a  b  c  d  e  f  g  h

| Königsgambit
}}

Standarddiagramm klein

R30 V2.5 - Magellan
Königsgambit



{{Schachbrett klein|=
| tright
| R30 V2.5 - Magellan
|=

 8 |br|bn|bb|bq|bk|bb|bn|br|=
 7 |bp|bp|bp|bp|  |bp|bp|bp|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |bp|  |  |  |=
 4 |  |  |  |  |wp|wp|  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |wp|wp|wp|wp|  |  |wp|wp|=
 1 |wr|wn|wb|wq|wk|wb|wn|wr|=
    a  b  c  d  e  f  g  h

| Königsgambit
}}

Alternativ können bei beiden Varianten auch die Feldbezeichnungen oder Leerzeilen weggelassen werden. Sie dienen nur der besseren Orientierung bei der Arbeit im Quelltext:


{{Schachbrett klein|=
| tright
| R30 V2.5 - Magellan
|=
 8 |br|bn|bb|bq|bk|bb|bn|br|=
 7 |bp|bp|bp|bp|  |bp|bp|bp|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |bp|  |  |  |=
 4 |  |  |  |  |wp|wp|  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |wp|wp|wp|wp|  |  |wp|wp|=
 1 |wr|wn|wb|wq|wk|wb|wn|wr|=
    a  b  c  d  e  f  g  h

| Königsgambit
}}

Diagramm ohne Überschriften + Sonderzeichen



{{Schachbrett|=
| tright
|
|=

 8 |  |  |  |  |  |  |  |  |=
 7 |  |  |  |  |  |  |  |  |=
 6 |  |xx|xo|xx|  |  |  |  |=
 5 |  |  |wp|  |  |  |  |  |=
 4 |  |  |  |  |  |xo|  |  |=
 3 |  |  |  |  |xx|xo|xx|  |=
 2 |  |  |  |  |  |bp|  |  |=
 1 |  |  |  |  |  |  |  |  |=
    a  b  c  d  e  f  g  h
|
}}



{{Schachbrett klein|=
| tright
|
|=

 8 |  |  |  |  |  |  |  |  |=
 7 |  |  |  |  |  |  |  |  |=
 6 |  |xx|xo|xx|  |  |  |  |=
 5 |  |  |wp|  |  |  |  |  |=
 4 |  |  |  |  |  |xo|  |  |=
 3 |  |  |  |  |xx|xo|xx|  |=
 2 |  |  |  |  |  |bp|  |  |=
 1 |  |  |  |  |  |  |  |  |=
    a  b  c  d  e  f  g  h
|
}}


Konversion FEN --> Wiki-Vorlage

FEN2Wiki konvertiert Forsyth-Edwards-Notation (FEN) in Wiki-Schachdiagramme


FEN2Wikipedia - Translate FEN Chess positions into Wikipedia format (David A. Wheeler)

FEN2Wikipedia - Translate FEN Chess positions into Wikipedia format

This is FEN2Wikipedia, a simple tool that takes Chess positions described using the Forsyth-Edwards Notation (FEN) format, and converts them into the Schachcomputer Wiki format for chess diagrams "Schachbrett" template).

Enter the data below (at least the FEN value) and press the "Generate Wikipedia Text Result (below)" button. The Wikipedia format will be displayed below, which you can then cut and paste into Wikipedia.

FEN:
Header:
Footer:
Type:
Alignment:

FEN2Wikipedia was created by David A. Wheeler, and is implemented using Javascript (aka ECMAscript).

Wikimedia commons has more information on the Wikipedia standard "chess diagram" template. This form takes normal FEN (e.g., "N" is white knight and "n" is black knight), as well as "x" for a cross, "o" for a circle on an empty squre, and the Capablanca chess symbols "a" for archbishop and "c" for chancelor. It uses two characters for a position, not one (the second character shows the side of the piece/pawn); this means that the data will work correctly on case-insensitive systems. Wikipedia itself works correctly with case-sensitive data, but by storing data this way, the data will work correctly even on case-insensitive (some might say case-corrupting) systems. In other words, by doing things this way, the data is more portable.

W3Schools has more information about Javascript/ECMAscript. W3C posts the HTML 4.01 specification.

You can get the latest version of FEN2Wikipedia from http://www.dwheeler.com/misc/fen2wikipedia.html.

FEN2Wikipedia is open source software / free software (OSS/FS). That means that you can freely give it to anyone, and you can modify and redistribute modified versions of it to whoever you wish. FEN2Wikipedia is Copyright (C) 2005 David A. Wheeler, and comes with ABSOLUTELY NO WARRANTY. FEN2Wikipedia is licensed under the GNU General Public License (GPL), version 2 or later.