Difference between revisions of "Template:Semorg-hub-card"

From SmartHubs
Jump to: navigation, search
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="card {{#if:{{{living-lab|}}}|border-primary}}">{{#if:{{{picture|}}}
+
<includeonly><div class="card {{#if:{{{living-lab|}}}|border-primary}} {{#ifeq:{{{target|}}}|{{#semorg-query:highlight}}
 +
  |semorg-card-highlight
 +
}}">{{#if:{{{picture|}}}
 
   |[[{{{picture|}}}|1000px|class=card-img-top img-fluid|link={{fullurl:{{{target}}}}}]]
 
   |[[{{{picture|}}}|1000px|class=card-img-top img-fluid|link={{fullurl:{{{target}}}}}]]
 
}}
 
}}
<div class="card-body">{{#if:{{{living-lab|}}}
+
<div class="card-body">
 +
{{#if:{{{living-lab|}}}
 
   |<div class="float-right">{{case-study-indicator}}</div>
 
   |<div class="float-right">{{case-study-indicator}}</div>
 +
}}{{#if:{{{physical-integration-level|}}}{{{digital-integration-level|}}}{{{democratic-integration-level|}}}
 +
  |<div class="float-left">{{semorg-integration-level-square
 +
    |physical={{{physical-integration-level|}}}
 +
    |digital={{{digital-integration-level|}}}
 +
    |democratic={{{democratic-integration-level|}}}
 +
  }}</div>
 
}}
 
}}
 
<h5 class="card-title"><btn class="card-link" wrapper="">{{{target}}}|{{{name}}}</btn></h5>
 
<h5 class="card-title"><btn class="card-link" wrapper="">{{{target}}}|{{{name}}}</btn></h5>
 
<h6 class="card-subtitle mb-2 text-muted">{{location|city={{{city|}}}|country={{{country|}}}}}</h6>
 
<h6 class="card-subtitle mb-2 text-muted">{{location|city={{{city|}}}|country={{{country|}}}}}</h6>
 
<p class="card-text"><div class="semorg-list-row-details">{{{description|}}}</div></p>
 
<p class="card-text"><div class="semorg-list-row-details">{{{description|}}}</div></p>
<p class="card-text"><div class="semorg-list-row-details">{{#ask:[[-semorg-hub-mode-mode.semorg-hub-mode-hub::{{{target}}}]]
+
<p class="card-text"><span class="badge badge-primary">{{{type|}}}</span>{{status|{{{status|}}}}} {{#ifeq:{{{smartness|}}}|unknown
   |?semorg-mode-name=name
+
  |
   |?semorg-mode-category.semorg-mode-category-name=category
+
  |<span class="badge badge-primary">{{{smartness|}}}</span>
   |?semorg-mode-icon=icon
+
}}</p>
   |format=template
+
<p class="card-text"><div class="semorg-list-row-details">{{icons
   |template=mode-icon
+
  |pt-services={{{pt-services|}}}
   |named args=yes
+
  |s-carsharing={{{s-carsharing|}}}
   |sort=semorg-mode-category,semorg-mode-name
+
  |s-bikesharing={{{s-bikesharing|}}}
 +
   |s-cargobikesharing={{{s-cargobikesharing|}}}
 +
   |s-scootersharing={{{s-scootersharing|}}}
 +
   |s-kickscootersharing={{{s-kickscootersharing|}}}
 +
   |s-ridehailing={{{s-ridehailing|}}}
 +
   |s-taxi={{{s-taxi|}}}
 +
   |s-carpooling={{{s-carpooling|}}}
 +
   |mobility-related-services={{{mobility-related-services|}}}
 +
  |other-services={{{other-services|}}}
 
}}</div></p>
 
}}</div></p>
 
</div>
 
</div>
<table class="table table-borderless"><tr>
 
{{#arraymap:physical,digital,democratic
 
  |,
 
  |xxx
 
  |<th style="text-align:center;font-size:smaller;">{{uc:xxx}}<br>{{#semorg-rating:{{{xxx-integration|}}}}}</th>
 
  |
 
}}</tr></table>
 
 
</div></includeonly>
 
</div></includeonly>

Latest revision as of 16:33, 8 February 2023