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

From SmartHubs
Jump to: navigation, search
 
(16 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
   |electrified={{{electrified|}}}
 
   |electrified={{{electrified|}}}
 
   |note={{{note|}}}
 
   |note={{{note|}}}
 +
}}{{#if:{{{provider|}}}
 +
  |{{#semorg-subobject:hub-actor
 +
    |actor={{{provider|}}}
 +
    |hub={{FULLPAGENAME}}
 +
    |role=Provider
 +
    |description={{#show:{{{mode}}}|?semorg-mode-name}}
 +
  }}
 
}}{{semorg-card
 
}}{{semorg-card
   |title={{mode-link|{{{mode|}}}}}
+
   |style={{#ifeq:{{{status|}}}|existing||opacity:.6}}
  |body=<small>{{#if:{{{provider|}}}
+
  |body=<div class="float-right"><i class="{{#show:{{{mode|}}}|?semorg-mode-icon}}"></i></div><div>{{mode-link|{{{mode|}}}}}</div><div style="font-size:small">{{#if:{{{provider|}}}
   |<br>Provider: {{provider-link|{{{provider}}}}}
+
   |Provider: {{provider-link|{{{provider}}}}}<br>
}}{{#if:{{{status|}}}
+
}}{{#ifeq:{{{status|}}}|existing
   |<br>Status: {{{status}}}
+
  |
}}{{#if:{{{electrified|}}}
+
   |Status: {{{status}}}<br>
   |<br>electrified: {{{electrified}}}
+
}}{{#ifeq:{{{electrified|}}}|yes
 +
   |electrified<br>
 
}}{{#if:{{{note|}}}
 
}}{{#if:{{{note|}}}
   |<br>Note: {{{note|}}}
+
   |Note: {{{note|}}}<br>
}}</small>
+
}}</div>
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 15:35, 13 October 2021

This page is part of the Semantic Organization extension.

If you want to customize this template you can copy its contents to another page (use for example Template:Semorg-hub-mode-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-hub-mode-template