Extension:OpenJsCad/de-formal

From mediawiki.org
This page is a translated version of the page Extension:OpenJsCad and the translation is 12% complete.
MediaWiki extensions manual
OpenJsCad
Release status: experimental
Implementation Tag
Description Allows embedding of OpenJsCad Designs
Author(s) Wolfgang Fahl (WolfgangFahlDiskussion)
Latest version 0.0.1 (2019-06-11)
MediaWiki >= 1.31.0
Database changes No
License Apache License 2.0
Download
Quarterly downloads 1 (Ranked 139th)
Translate the OpenJsCad extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

Purpose

Allows to embed 3D Designs created with https://www.openjscad.org/ for display in your wikipage.

Usage

{{jscad|title=OpenJSCAD example|code=function main() {
    return CSG.cube({radius:[15,15,15]});
}
}}

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens OpenJsCad im Ordner extensions/ ablegen.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenJsCad
  • Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
    wfLoadExtension( 'OpenJsCad' );
    
  • OpenJsCad is best used with a template that hides the ‎<jscad> tag

Here is an example:

<includeonly>
= {{{title|}}} =
{{#tag:jscad|{{{code|}}}}}
= Source code =
{{#tag:source|{{{code|}}}|lang=javascript}}
[[Category:OpenJSCAD]]
</includeonly>
  • Yes Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.