Welcome to the Virtual Education Wiki ~ Open Education Wiki

Test if: Difference between revisions

From Virtual Education Wiki
Jump to navigation Jump to search
No edit summary
(messing around finished for now)
Line 22: Line 22:


<nowiki>&#91;&#91;{{#if:{{#show:France| ?In OECD}}|Category:OECD|}}&#93;&#93;</nowiki> yields "&#91;&#91;{{#if:{{#show:France| ?In OECD}}|Category:OECD|}}&#93;&#93;"
<nowiki>&#91;&#91;{{#if:{{#show:France| ?In OECD}}|Category:OECD|}}&#93;&#93;</nowiki> yields "&#91;&#91;{{#if:{{#show:France| ?In OECD}}|Category:OECD|}}&#93;&#93;"
But the [[ ]] codes do not make it a valid category definition.





Revision as of 20:21, 5 May 2023

#IF parser function

{{#show:Albania/OER| ?Has capital|link=none}} yields Tirana

{{#show:Hungary | ?In OECD}} yields "true"

{{#show:Brazil| ?In OECD}} yields ""

{{#if:string | yes | no}} yields "yes"

{{#if:{{#show:Brazil| ?In OECD}}| yes | no}} yields "no"

{{#if:{{#show:France| ?In OECD}}| yes | no}} yields "yes"

Thus:

{{#if:{{#show:Brazil| ?In OECD}}|Category:OECD|}} yields ""

{{#if:{{#show:France| ?In OECD}}|Category:OECD|}} yields "Category:OECD"

Thus:

[[{{#if:{{#show:France| ?In OECD}}|Category:OECD|}}]] yields "[[Category:OECD]]"

But the [[ ]] codes do not make it a valid category definition.



>> Main Page