Difference between revisions of "Documentation/4.1/Developers/Sandbox"
From Slicer Wiki
(Prepend documentation/versioncheck template. See http://na-mic.org/Mantis/view.php?id=2887) |
m (Text replacement - "slicerWiki/index.php" to "wiki") |
||
Line 20: | Line 20: | ||
= 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/ | + | The raw set of data retrieved using this [http://wiki.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data URL] is reported below: |
{{ambox | {{ambox | ||
Line 43: | Line 43: | ||
<pre> | <pre> | ||
− | {{#get_web_data:url=http://wiki.slicer.org/ | + | {{#get_web_data:url=http://wiki.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data|format=CSV with header|data=name=Name,color=Color,shape=Shape}} |
{| class="wikitable" | {| class="wikitable" | ||
! Name | ! Name | ||
Line 59: | Line 59: | ||
<pre> | <pre> | ||
{{#get_web_data: | {{#get_web_data: | ||
− | url=http://wiki.slicer.org/ | + | url=http://wiki.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 | ||
Line 68: | Line 68: | ||
{{#get_web_data: | {{#get_web_data: | ||
− | url=http://wiki.slicer.org/ | + | url=http://wiki.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 | ||
Line 79: | Line 79: | ||
<pre> | <pre> | ||
{{#get_web_data: | {{#get_web_data: | ||
− | url=http://wiki.slicer.org/ | + | url=http://wiki.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 87: | Line 87: | ||
{{#get_web_data: | {{#get_web_data: | ||
− | url=http://wiki.slicer.org/ | + | url=http://wiki.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 |
Revision as of 16:57, 21 November 2019
Home < Documentation < 4.1 < Developers < Sandbox
For the latest Slicer documentation, visit the read-the-docs. |
Contents
Graphviz test
<graphviz border='frame' format='png'>
digraph example1 {Hello->World!}
</graphviz>
Embedded video
The #evp parser function was deprecated in EmbedVideo 2.0. Please convert your parser function tag to #ev.
Test modulo function associated with CURRENTTIMESTAMP
14
Random image
[[File:|thumb|x150px|
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:
There are two extra empty lines ! |
Name,Color,Shape Apple,Red,Round Banana,Yellow,Oblong Orange,Orange,Round Pear,Yellow,"Pear-shaped"
The following table should contains Fruits |
{{#get_web_data:url=http://wiki.slicer.org/wiki/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=http://wiki.slicer.org/wiki/Special:GetData/Documentation/4.0/Developers/Sandbox_data |format=CSV with header |data=bananashape0=Shape |filters=Name=Banana }} * {{#external_value:bananashape0}}
- Error: no local variable "bananashape0" was set.
Using filter as URL parameter
{{#get_web_data: url=http://wiki.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 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