Wikisage, de vrije encyclopedie van de tweede generatie, is digitaal erfgoed

Wikisage is op 1 na de grootste internet-encyclopedie in het Nederlands. Iedereen kan de hier verzamelde kennis gratis gebruiken, zonder storende advertenties. De Koninklijke Bibliotheek van Nederland heeft Wikisage in 2018 aangemerkt als digitaal erfgoed.

  • Wilt u meehelpen om Wikisage te laten groeien? Maak dan een account aan. U bent van harte welkom. Zie: Portaal:Gebruikers.
  • Bent u blij met Wikisage, of wilt u juist meer? Dan stellen we een bescheiden donatie om de kosten te bestrijden zeer op prijs. Zie: Portaal:Donaties.
rel=nofollow

Sjabloon:Schaakdiagram: verschil tussen versies

Uit Wikisage
Naar navigatie springen Naar zoeken springen
k (+uitleg gebruik)
k (margin toegevoegd, om collisie met text te vermijden)
Regel 1: Regel 1:
<div class="{{{1}}}" style="clear: right; width: 260px; text-align:center"><includeonly>{{{2}}}</includeonly>
<div class="{{{1}}}" style="clear: right; width: 260px; text-align:center; margin:4px;"><includeonly>{{{2}}}</includeonly>
<div style="border:1px solid #b0b0b0; background:#f9f9f9; padding-top:6px">
<div style="border:1px solid #b0b0b0; background:#f9f9f9; padding-top:6px">
{| cellpadding="0" cellspacing="0" style="border: 1px solid #b0b0b0; background-color: #ffce9e; margin:auto"
{| cellpadding="0" cellspacing="0" style="border: 1px solid #b0b0b0; background-color: #ffce9e; margin:auto"

Versie van 7 okt 2008 13:46

a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
De sjabloonbeschrijving hieronder wordt niet afgebeeld wanneer de sjabloon wordt geplaatst.
doel

Afbeelden van een schaakdiagram

gebruik

Om een stuk af te beelden kan je een 'stukkcode' in het sjabloon plaatsen. deze code bestaat uit twee letters:

  • De eerste letter is de kleur (w=wit, b=zwart)
  • De tweede letter geeft het soort stuk aan: p=pion, r=toren, n=paard, b=loper, q=dame en k=koning
voorbeeld
{{schaakdiagram|=
| tright
|
|=
 8 |br|bn|bb|bq|bk|bb|bn|br|=
 7 |bp|bp|bp|bp|bp|bp|bp|bp|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |  |  |  |  |=
 4 |  |  |  |  |  |  |  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |wp|wp|wp|wp|wp|wp|wp|wp|=
 1 |wr|wn|wb|wq|wk|wb|wn|wr|=
    a  b  c  d  e  f  g  h
|Beginopstelling
|}}

geeft:

a8 br b8 bn c8 bb d8 bq e8 bk f8 bb g8 bn h8 br
a7 bp b7 bp c7 bp d7 bp e7 bp f7 bp g7 bp h7 bp
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 wp b2 wp c2 wp d2 wp e2 wp f2 wp g2 wp h2 wp
a1 wr b1 wn c1 wb d1 wq e1 wk f1 wb g1 wn h1 wr
Beginopstelling
rel=nofollow