« Modèle:Blogpost » : différence entre les versions
De Wiki Campus Cyber
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
<!-- BANDEAU IMAGE AU CENTRE --> | |||
<div class="row"> | |||
<div class="col-12 align-center"> | |||
<div class="col-4 offset-4 mt-1 mb-2"> | |||
{{#if: {{{ImageStr|}}} | |||
| [[File:{{{ImageStr|}}}|class=img-fluid|link=|alt=Blogpost {{{ShortName|}}}]] | |||
| [[File:Placeholder.jpg|class=img-fluid|link=|alt=Blogpost {{{ShortName|}}}]] | |||
}} | |||
</div> | |||
</div> | |||
</div> | |||
<!-- BANDEAU CORPS DE LA PAGE - UNE COLONNE, TOUT CENTRÉ --> | |||
<div class="row"> | |||
<div class="col-12"> | |||
<p class="lead">{{#ifeq: {{USERLANGUAGECODE}}|en|{{{ShortDescription EN|}}}|{{{ShortDescription FR|}}}}}</p> | |||
<div class="text-center">__TOC__</div> | |||
<span class="py-1 px-2 mr-2 bg-light rounded">{{int:Catégorie}} <strong>{{int:Blogpost}}</strong></span> | |||
{{#if: {{{Tag|}}} |<span class="py-1 px-2 mr-2 bg-light rounded">{{int:cc-tag}} <strong>{{#arraymap: {{{Tag}}} |,|@|[[{{ucfirst:@}}]]|,\s}} </strong></span>|}} | |||
{{#if: {{{Date}}}|{{!}} Date de publication : {{!}} [[Date::{{{Date|}}}]] }} | |||
{{#if: {{{Tag|}}} |<span class="py-1 px-2 mr-2 bg-light rounded">{{int:cc-tag}} <strong> {{#arraymap: {{{Tag|}}} |,|@|[[{{ucfirst:@}}]]|,\s}} </strong></span>}} | |||
</div> | |||
</div> | |||
<!----- INSTANCIATION SÉMANTIQUE -----> | |||
{{#set: | |||
| Name (display=nonempty) | |||
| ImageStr={{#if: {{{ImageStr|}}}|{{{ImageStr|}}}|Placeholder.jpg}} | |||
| ShortDescription (display=nonempty) | |||
| Users (display=nonempty) | |||
| Project (display=nonempty) | |||
| WorkGroup (display=nonempty) | |||
| Langue={{PAGELANGUAGE}} | |||
}} | |||
[[Catégorie:Blogpost]] | |||
</includeonly> | |||
Version du 8 janvier 2024 à 14:26