Sjabloon:Nieuws hoofdpagina: verschil tussen versies

Uit NORA Online
Naar navigatie springen Naar zoeken springen
(nieuwste versie vanuit test)
(opmaak zoals Marieke wilde, maar robuuster gemaakt)
Regel 1: Regel 1:
* '''{{{2}}}''' - {{{3}}} - [[{{{1}}}|Lees bericht]]
<noinclude>
Toont in één regel een nieuwsitem, met publicatiedatum - beschrijving. De beschrijving kan de titel zijn bij [[Sjabloon:Nieuwsberichten]].
Gebruijk in css:
<pre>
.nieuwsitem .datum a {
    font-weight: bold;
}
.nieuwsitem a {
    text-decoration: none !important;
}
span.clickblock {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
}
</pre> (zie https://stackoverflow.com/questions/796087/make-a-div-into-a-link)
==voorbeeld==
</noinclude>
<div class="nieuwsitem" id="{{{link|}}}"><span class="datum">[[{{{link|#}}}|{{{Publicatiedatum}}}</span> - <span class="beschrijving">{{{Beschrijving}}}</span>…]][[{{{link|#}}}|<span class="clickblock"></span>]]</div>

Versie van 3 okt 2017 18:42

Toont in één regel een nieuwsitem, met publicatiedatum - beschrijving. De beschrijving kan de titel zijn bij Sjabloon:Nieuwsberichten. Gebruijk in css:

.nieuwsitem .datum a {
    font-weight: bold;
}
.nieuwsitem a {
    text-decoration: none !important;
}
span.clickblock {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
}

(zie https://stackoverflow.com/questions/796087/make-a-div-into-a-link)

voorbeeld[bewerken]