Difference between revisions of "Template:Guideline"

From LINKS Community Center
Jump to: navigation, search
m (Reverted edits by Cschwentker (talk) to last revision by Eschmidt)
Tag: Rollback
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Template for a Guideline profile.<br>
+
{{#template_params:Primary Target Country (property=Primary Target Country)|Publishing Organisation (property=Publishing Organisation)|Language (list;property=Language)|Year Published (property=Year Published)|Target Audience (list;property=Target Audience)|Status (property=Status)|Disaster Management Phase (list;property=Disaster Management Phase new)|Covers Thematic (list;property=Covers Thematic)|Audience Experience Level (list;property=Audience Experience Level)|Source Website (property=Source Website)|Abstract (property=Abstract)|Is Archived (property=Is Archived)|Data Sources (label=Covers platforms;list;property=Data Sources)}}
<span style="color: red; font-weight: bold;">Still in development!</span>
+
</noinclude><includeonly><div class="guideline-profile">
</noinclude><includeonly>
+
{| class="smwtable-clean"
<div hidden aria-hidden="true" style="display: none; position: absolute; width: 1px; height: 1px;">
+
! Primary Target Country
<!--
+
| [[Primary Target Country::{{{Primary Target Country|}}}]]
    The following is required for API queries.
+
|-
    Every property that is queried by the corresponding list widget must be set here.
+
! Publishing Organisation
-->
+
| [[Publishing Organisation::{{{Publishing Organisation|}}}]]
  [[Primary Target Country::{{{Primary Target Country|}}}]]
+
|-
  [[Publishing Organisation::{{{Publishing Organisation|}}}]]
+
! Language
  {{#arraymap:{{{Language|}}}|,|x|[[Language::x]]}}
+
| {{#arraymap:{{{Language|}}}|,|x|[[Language::x]]}}
  [[Year Published::{{{Year Published|}}}]]
+
 
  {{#arraymap:{{{Target Audience|}}}|,|x|[[Target Audience::x]]}}
+
|-
  [[Status::{{{Status|}}}]]
+
! Year Published
  {{#arraymap:{{{Disaster Management Phase|}}}|,|x|[[Disaster Management Phase::x]]}}
+
| [[Year Published::{{{Year Published|}}}]]
  {{#arraymap:{{{Covers Thematic|}}}|,|x|[[Covers Thematic::x]]}}
+
|-
  {{#arraymap:{{{Audience Experience Level|}}}|,|y|[[Audience Experience Level::y]]}}
+
! Target Audience
  [[Source Website::{{{Source Website|}}}]]
+
| {{#arraymap:{{{Target Audience|}}}|,|x|[[Target Audience::x]]}}
  [[Abstract::{{{Abstract|}}}]]
+
 
  [[Is Archived::{{{Is Archived|}}}]]  
+
|-
  {{#arraymap:{{{Data Sources|}}}|,|x|[[Data Sources::x]]}}
+
! Status
  {{#arraymap:{{{Technologies|}}}|,|x|[[Technologies::x]]}}
+
| [[Status::{{{Status|}}}]]
</div>
+
|-
<div id="dct-back-link">
+
! Disaster Management Phase
<div>[[File:Lcc-guidelines.svg|class=gl-icon|link=|Guidelines Icon]][[List of Guidelines|View all Guidelines]]</div>
+
| {{#arraymap:{{{Disaster Management Phase|}}}|,|x|[[Disaster Management Phase new::x]]}}
<div class="dct-page-info">Created: {{{Entry Created At|}}}<br>
+
 
Reviewed: {{{Entry Last Reviewed|}}}</div>
+
|-
</div></div>
+
! Covers Thematic
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}<div id="dct-profile" class="gl-profile">
+
| {{#arraymap:{{{Covers Thematic|}}}|,|x|[[Covers Thematic::x]]}}
<div class="section dct-meta anim-border d-flex justify-content-between align-items-center">
+
 
<h1>{{PAGENAME}}</h1>
+
|-
<div>[{{{Source Website|}}} Source]</div>
+
! Audience Experience Level
</div>
+
| {{#arraymap:{{{Audience Experience Level|}}}|,|y|[[Audience Experience Level::y]]}}
<div class="section dct-desc anim-border">
+
 
<h2>Quick Facts</h2>
+
|-
<div class="mb-4"></div>
+
! Source Website
<div class="d-flex">
+
| [[Source Website::{{{Source Website|}}}]]
{{#if: {{{Publishing Organisation|}}} | <div class="mr-4"><h6 class="d-inline">Publishing Organisation:</h6> {{{Publishing Organisation|}}}</div> |}}
+
|-
{{#if: {{{Year Published|}}} | <div class="mr-4"><h6 class="d-inline">Year:</h6> {{{Year Published|}}}</div> |}}
+
! Abstract
{{#if: {{{Primary Target Country|}}} | <div class="mr-4"><h6 class="d-inline">Primary Target Country:</h6> {{{Primary Target Country|}}}</div> |}}
+
| [[Abstract::{{{Abstract|}}}]]
{{#if: {{{Language|}}} | <div class="mr-4"><h6 class="d-inline">Languages:</h6> {{#arraymap:{{{Language|}}}|,|x| x }} </div> |}}
+
|-
{{#if: {{{Status|}}} | <div class="mr-4"><h6 class="d-inline">Status:</h6> {{{Status|}}} </div> |}}
+
! Is Archived
</div>
+
| [[Is Archived::{{{Is Archived|}}}]]
</div>
+
|-
<div class="section dct-info anim-border">
+
! Covers platforms
<div>
+
| {{#arraymap:{{{Data Sources|}}}|,|x|[[Data Sources::x]]}}
<h5>Covers Thematic</h5>
+
 
  {{#arraymap:{{{Covers Thematic|}}}|,|x|<li>x</li>|\s}}
+
|}
</div>
 
<div>
 
<h5>Target audience</h5>
 
  {{#arraymap:{{{Target Audience|}}}|,|x|<li>x</li>|\s}}
 
</div>
 
<div>
 
<h5>Audience experience level</h5>
 
  {{#arraymap:{{{Audience Experience Level|}}}|,|x|<li>x</li>|\s}}
 
</div>
 
<div>
 
<h5>Disaster Management Phase</h5>
 
  {{#arraymap:{{{Disaster Management Phase|}}}|,|x|<li>x</li>|\s}}
 
</div>
 
<div>
 
<h5>Covers platforms</h5>
 
  {{#arraymaptemplate:{{{Data Sources|}}}|SourceLogo|,|}}</div>
 
<div>
 
<h5>Covers Technologies</h5>
 
{{#arraymap:{{{Technologies|}}}|,|x|[[Technologies::x]]}}
 
</div>
 
</div>
 
<div class="section dct-more">
 
<h2>See Related <small style="color:#ccc">(coming soon)</small></h2>
 
<div>
 
<h5>Abstract</h5>
 
{{{Abstract|No abstract provided.}}}
 
</div>
 
 
</div>
 
</div>
 
[[Category:Guideline]]
 
[[Category:Guideline]]
 
</includeonly>
 
</includeonly>

Revision as of 11:46, 23 November 2022

This is the "Guideline" template.

It should be called in the following format:

{{Guideline
|Primary Target Country=
|Publishing Organisation=
|Language=
|Year Published=
|Target Audience=
|Status=
|Disaster Management Phase=
|Covers Thematic=
|Audience Experience Level=
|Source Website=
|Abstract=
|Is Archived=
|Data Sources=
}}

Edit the page to see the template text.