Extension:Technology Portfolio

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Technology Portfolio and the translation is 100% complete.
Other languages:
Manuel des extensions MediaWiki
OOjs UI icon advanced-invert.svg
Technology Portfolio
État de la version : non-maintenu
Implémentation Action de page
Description Allows you to display a technology portfolio.
Auteur(s) Wolf Quaschningk, Michael Färber
Dernière version 1.0.0 (2015-04-21)
MediaWiki 1.23+
Modifie la base
de données
Non
Licence Licence publique générale GNU v2.0 ou supérieur
Téléchargement external download

Vérifier la matrice des utilisations et des versions.

Avec l'extension Technology Portfolio vous pouvez afficher un portfolio de technologie des technologies enregistrées dans votre wiki.

Prérequis

  • MediaWiki 1.23+ (tested with 1.23 and 1.25)
  • Semantic MediaWiki 1.9.1+ (tested with 1.9.1 and 2.2)
  • Semantic Result Formats 1.9+ (tested with 1.9 and 2.1.2)

Installation

  • Download portfolio.zip and unzip it.
  • Copy the folder 'portfolio' into the formats folder of the SemanticResultFormats extension folder, i.e. /extensions/SemanticResultFormats/formats.
  • Add following code to Resources.php at the corresponding place:
		'ext.srf.portfolio.namespace' => $formatModule + array(
			'scripts' => 'portfolio/resources/ext.srf.portfolio.namespace.js',
			'styles'  => 'portfolio/resources/ext.srf.portfolio.css',
			'dependencies' => array( 'ext.srf.util', 'ext.d3.core', 'ext.srf.d3.common'),
			'messages' => array( 'srf-radar-message' ),
		),
  • Add following code to SemanticResultFormats.php:
		'portfolio' => 'SRFPortfolio',
  • Add following code to SemanticResultFormats.settings.php:
		'portfolio',
  • Add SFR_Portfolio.php to the list of automatic loaded classes.
  • If packages and autoload are managed by Composer, add following line to {mediawiki_base_dir}/vendor/composer/autoload_classmap.php:
		'SRFPortfolio' => $baseDir . '/extensions/SemanticResultFormats/formats/portfolio/SRF_Portfolio.php',
  • Otherwise add following line at the top of SemanticResultFormats.settings.php:
		$wgAutoloadClasses['SRFPortfolio'] = 'extensions/SemanticResultFormats/formats/portfolio/portfolio/SRF_Portfolio.php';

Utilisation

  • Example for an integration:
{{#ask:
 [[Category:Portfolio]]
 |?Ressourcenstärke
 |?Technologieattraktivität
 |?Projektumfang
 |format=portfolio
 |caliber=Projektumfang
}}

Thereby, all wiki articles which represent a technology and which should be included into the diagram are tagged with "[[Category:Portfolio]]" and have the properties Ressourcenstärke, Technologieattraktivität, and Projektumfang (numerical values, can be calculated by subparameters).