« Modèle:Campus » : différence entre les versions
De Wiki Campus Cyber
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<includeonly><div class="pageHeader"> | <includeonly><div class="pageHeader"> | ||
<div class="row"> | <div class="row"> | ||
<div class="col-12 align-center"> | <div class="col-12 align-center"> | ||
<div class="col-4 offset-4 mt-1 mb-2"> | <div class="col-4 offset-4 mt-1 mb-2"> | ||
{{#if: {{{ | {{#if: {{{Image|}}} | ||
| [[File:{{{ | | [[File:{{{Image|}}}|class=img-fluid|link=|alt="" {{{ShortName|}}}]] | ||
| [[File:Placeholder.jpg|class=img-fluid|link=|alt="" {{{ShortName|}}}]] | | [[File:Placeholder.jpg|class=img-fluid|link=|alt="" {{{ShortName|}}}]] | ||
}} | }} | ||
Ligne 39 : | Ligne 15 : | ||
<p class="lead">{{#ifeq: {{USERLANGUAGECODE}}|en|{{{ShortDescription EN|}}}|{{{ShortDescription FR|}}}}}</p> | <p class="lead">{{#ifeq: {{USERLANGUAGECODE}}|en|{{{ShortDescription EN|}}}|{{{ShortDescription FR|}}}}}</p> | ||
<div class="text-center">__TOC__</div> | <div class="text-center">__TOC__</div> | ||
<span class="py-1 px-2 mr-2 bg-light rounded">{{int:Catégorie}} <strong>{{int:CCT}}</strong></span> | <span class="py-1 px-2 mr-2 bg-light rounded">{{int:Catégorie}} <strong>{{int:CCT}}</strong></span> | ||
{{#if: {{{Cycle|}}}|<span class="py-1 px-2 mr-2 bg-light rounded">{{int:Cycle}} <strong>{{{Cycle}}}</strong></span>|}} | {{#if: {{{Cycle|}}}|<span class="py-1 px-2 mr-2 bg-light rounded">{{int:Cycle}} <strong>{{{Cycle}}}</strong></span>|}} | ||
{{#if: {{{Status|}}}|<span class="py-1 px-2 mr-2 bg-light rounded">{{int:cc-status}} <strong>{{int:cc-gt-{{{Status}}}}}</strong></span>|}} | {{#if: {{{Status|}}}|<span class="py-1 px-2 mr-2 bg-light rounded">{{int:cc-status}} <strong>{{int:cc-gt-{{{Status}}}}}</strong></span>|}} | ||
{{#if: {{{Website|}}} |<br/>{{int:Website}} {{#arraymap: {{{Website}}} |,|@|@|,/s}}|}} | |||
{{#if: {{{Website|}}} |<br/>{{int:Website}} {{#arraymap: {{{Website}}} |,|@| | |||
{{#if: {{{Contributor|}}} |<br/>{{int:Contributeurs}} {{#arraymap: {{{Contributor}}} |,|@| [[@]]|,/s}}|}} | {{#if: {{{Contributor|}}} |<br/>{{int:Contributeurs}} {{#arraymap: {{{Contributor}}} |,|@| [[@]]|,/s}}|}} | ||
{{#if: {{{Contact|}}} |<br />{{int:Contact}} {{#arraymap: {{{Contact}}} | , | @ |[[@]]|,/s}}|}} | {{#if: {{{Contact|}}} |<br />{{int:Contact}} {{#arraymap: {{{Contact}}} | , | @ |[[@]]|,/s}}|}} | ||
{{#if: {{{Région|}}} |<br />{{int:Region}} {{#arraymap: {{{Region}}} | , | @ |[[@]]|,/s}}|}} | {{#if: {{{Région|}}} |<br />{{int:Region}} {{#arraymap: {{{Region}}} | , | @ |[[@]]|,/s}}|}} | ||
</div> | </div> | ||
</div> | </div> | ||
<!----- INSTANCIATION SÉMANTIQUE -----> | <!----- INSTANCIATION SÉMANTIQUE -----> | ||
{{#set: | {{#set: | ||
|Name (display=nonempty) | |Name (display=nonempty) | ||
|ShortDescription | |ShortDescription={{#if:{{{ShortDescription FR|}}}|{{{ShortDescription FR}}}@fr|}} | ||
|ShortDescription={{#if:{{{ShortDescription EN|}}}|{{{ShortDescription EN}}}@en|}} | |||
|Image (display=nonempty) | |Image (display=nonempty) | ||
|Website (display=nonempty) | |Website (display=nonempty) | ||
Ligne 65 : | Ligne 36 : | ||
|Region (display=nonempty) | |Region (display=nonempty) | ||
}} | }} | ||
[[Catégorie:Campus]] | [[Catégorie:Campus]] | ||
</includeonly> | </includeonly> |