Difference between revisions of "Documentation/Nightly/Developers/Sandbox"

From Slicer Wiki
Jump to: navigation, search
(4.1 -> Nightly)
 
m (Text replacement - "https?:\/\/wiki.slicer.org\/slicerWiki\/index.php\/([^ ]+) " to "https://www.slicer.org/wiki/$1")
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
<noinclude>{{documentation/versioncheck}}</noinclude>
 +
 +
 +
= Video Test =
 +
The extension [https://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo] is now installed!
 +
 +
{{#ev:youtube|https://www.youtube.com/watch?v=MKLWzD0PiIc}}
  
 
= Graphviz test =
 
= Graphviz test =
 
+
<graphviz caption="Graph for example no. 3 (contains Wiki-Links)" alt="phylogenetic tree" format="png">
<graphviz border='frame' format='png'>
+
digraph example3 {
digraph example1 {Hello->World!}
+
  node [shape=plaintext];
 +
  Mollusca [URL="[[w:Mollusca]]"];
 +
  Neomeniomorpha [URL="[[w:Neomeniomorpha]]"];
 +
  X1 [shape=point,label=""];
 +
  Caudofoveata [URL="[[w:Caudofoveata]]"];
 +
  Testaria [URL="[[w:Testaria]]"];
 +
  Polyplacophora [URL="[[w:Polyplacophora]]"];
 +
  Conchifera [URL="[[w:Conchifera]]"];
 +
  Tryblidiida [URL="[[w:Tryblidiida]]"];
 +
  Ganglioneura [URL="[[w:Ganglioneura]]"];
 +
  Bivalvia [URL="[[w:Bivalvia]]"];
 +
  X2 [shape=point,label=""];
 +
  X3 [shape=point,label=""];
 +
  Scaphopoda [URL="[[w:Scaphopoda]]"];
 +
  Cephalopoda [URL="[[w:Cephalopoda]]"];
 +
  Gastropoda [URL="[[w:Gastropoda]]"];
 +
  Mollusca->X1->Testaria->Conchifera->Ganglioneura->X2->Gastropoda
 +
  Mollusca->Neomeniomorpha
 +
  X1->Caudofoveata
 +
  Testaria->Polyplacophora
 +
  Conchifera->Tryblidiida
 +
  Ganglioneura ->Bivalvia
 +
  X2->X3->Cephalopoda
 +
  X3->Scaphopoda
 +
}
 
</graphviz>
 
</graphviz>
  
Line 16: Line 47:
 
= Use of get_web_data and for_external_table =
 
= Use of get_web_data and for_external_table =
  
The raw set of data retrieved using this [http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data URL] is reported below:
+
The raw set of data retrieved using this [[Special:GetData/Documentation/4.0/Developers/Sandbox_data|URL]] is reported below:
  
 
{{ambox
 
{{ambox
Line 55: Line 86:
 
<pre>
 
<pre>
 
{{#get_web_data:
 
{{#get_web_data:
url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data
+
url=https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header
|format=CSV with header
 
 
|data=bananashape0=Shape
 
|data=bananashape0=Shape
 
|filters=Name=Banana
 
|filters=Name=Banana
Line 64: Line 94:
  
 
{{#get_web_data:
 
{{#get_web_data:
url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data
+
url=https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header
|format=CSV with header
 
 
|data=bananashape0=Shape
 
|data=bananashape0=Shape
 
|filters=Name=Banana
 
|filters=Name=Banana
Line 75: Line 104:
 
<pre>
 
<pre>
 
{{#get_web_data:
 
{{#get_web_data:
url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data,Name=Banana
+
url=https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data,Name=Banana|format=CSV with header
|format=CSV with header
 
 
|data=bananashape1=Shape
 
|data=bananashape1=Shape
 
}}
 
}}
Line 83: Line 111:
  
 
{{#get_web_data:
 
{{#get_web_data:
url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data,Name=Banana
+
url=https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data,Name=Banana|format=CSV with header
|format=CSV with header
 
 
|data=bananashape1=Shape
 
|data=bananashape1=Shape
 
}}
 
}}

Latest revision as of 14:53, 27 November 2019

Home < Documentation < Nightly < Developers < Sandbox


For the latest Slicer documentation, visit the read-the-docs.



Video Test

The extension EmbedVideo is now installed!

Graphviz test

<graphviz caption="Graph for example no. 3 (contains Wiki-Links)" alt="phylogenetic tree" format="png"> digraph example3 {

 node [shape=plaintext];
 Mollusca [URL="w:Mollusca"];
 Neomeniomorpha [URL="w:Neomeniomorpha"];
 X1 [shape=point,label=""];
 Caudofoveata [URL="w:Caudofoveata"];
 Testaria [URL="w:Testaria"];
 Polyplacophora [URL="w:Polyplacophora"];
 Conchifera [URL="w:Conchifera"];
 Tryblidiida [URL="w:Tryblidiida"];
 Ganglioneura [URL="w:Ganglioneura"];
 Bivalvia [URL="w:Bivalvia"];
 X2 [shape=point,label=""];
 X3 [shape=point,label=""];
 Scaphopoda [URL="w:Scaphopoda"];
 Cephalopoda [URL="w:Cephalopoda"];
 Gastropoda [URL="w:Gastropoda"];
 Mollusca->X1->Testaria->Conchifera->Ganglioneura->X2->Gastropoda
 Mollusca->Neomeniomorpha
 X1->Caudofoveata
 Testaria->Polyplacophora
 Conchifera->Tryblidiida
 Ganglioneura ->Bivalvia
 X2->X3->Cephalopoda
 X3->Scaphopoda

} </graphviz>

Test modulo function associated with CURRENTTIMESTAMP

13

Random image

Color picker dialog
Browse the image gallery

Use of get_web_data and for_external_table

The raw set of data retrieved using this URL is reported below:



Name,Color,Shape
Apple,Red,Round
Banana,Yellow,Oblong
Orange,Orange,Round
Pear,Yellow,"Pear-shaped"
{{#get_web_data:url=http://wiki.slicer.org/slicerWiki/index.php/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header|data=name=Name,color=Color,shape=Shape}}
{| class="wikitable"
! Name
! Color {{#for_external_table:<nowiki/>
{{!}}-
{{!}} [[{{{name}}}]]
{{!}} {{{color}}} }}
|}

Use of get_web_data and external_value

Using filter as template parameter

{{#get_web_data:
url=https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header
|data=bananashape0=Shape
|filters=Name=Banana
}}
* {{#external_value:bananashape0}}


  • Oblong


Using filter as URL parameter

{{#get_web_data:
url=https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data,Name=Banana|format=CSV with header
|data=bananashape1=Shape
}}
* {{#external_value:bananashape1}}

Error: No contents found at URL https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data,Name=Banana.

  • Error: no local variable "bananashape1" was set.


Using fullurl

{{#get_web_data:
url={{fullurl:Special:GetData/Documentation/4.0/Developers/Sandbox_data}}
|format=CSV with header
|data=bananashape2=Shape
|filters=Name=Banana
}}
* {{#external_value:bananashape2}}

https://www.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data,Name%3DBanana


  • Oblong

Debug module-footer template