FrontPage 

TB Wiki

Login

TestProcessorGetBlock in split format

{{TableOfContents}}
Here is the test page for the 'GetBlock' processor.
Here is the test page for the 'GetBlock' processor.
This processor gets blocks from other pages (or from the current page) and shows the content where the processor block is defined.
This processor gets blocks from other pages (or from the current page)
and shows the content where the processor block is defined.

Test Data [edit section]

SamplePage
= Test Data =
Some data used for these tests is on: [[SamplePage]]
Here is more data, in the form of normal and hidden blocks on this page:
Here is more data, in the form of normal and hidden blocks on this page:
HereBlock1
this is a non-hidden block, on this page
}}}
{{{HereBlock1
this is a non-hidden block, on this page
}}}
{{{#HereBlock2
this is a hidden block, on this page
}}}

Test 1 - get block 1 from SamplePage [edit section]

= Test 1 - get block 1 from SamplePage =

processor block [edit section]

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
SamplePage:SampleBlock
}} }
}}}

result output [edit section]

== result output ==
Here is the result from the processor:
{{{#!GetBlock
SamplePage:SampleBlock
}}}

expected result [edit section]

== expected result ==
The expected output should be:
This is a block of text that appears in the block: SampleBlock
on the page SamplePage.  It is not very interesting,
but shows how a block can be read directly from a page.
}}}
{{{
This is a block of text that appears in the block: SampleBlock
on the page SamplePage.  It is not very interesting,
but shows how a block can be read directly from a page.
}}}

Test 2 - get block 2 from SamplePage [edit section]

= Test 2 - get block 2 from SamplePage =

processor block [edit section]

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
SamplePage:SampleBlock2
}} }
}}}

result output [edit section]

== result output ==
Here is the result from the processor:
{{{#!GetBlock
SamplePage:SampleBlock2
}}}

expected result [edit section]

== expected result ==
The expected output should be:
This is another block of text
}}}
{{{
This is another block of text
}}}

Test 3 - get non-hidden block from this page [edit section]

= Test 3 - get non-hidden block from this page =

processor block [edit section]

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
:HereBlock1
}} }
}}}

result output [edit section]

== result output ==
Here is the result from the processor:
{{{#!GetBlock
:HereBlock1
}}}

expected result [edit section]

== expected result ==
The expected output should be:
this is a non-hidden block, on this page
}}}
{{{
this is a non-hidden block, on this page
}}}

Test 4 - get hidden block from this page [edit section]

= Test 4 - get hidden block from this page =

processor block [edit section]

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
:HereBlock2
}} }
}}}

result output [edit section]

== result output ==
Here is the result from the processor:
{{{#!GetBlock
:HereBlock2
}}}

expected result [edit section]

== expected result ==
The expected output should be:
this is a hidden block, on this page
}}}
{{{
this is a hidden block, on this page
}}}
TBWiki engine 1.9.2 by Tim Bird