[Mediawiki-l] include only a part of a page in another.
Serveur-Faucon Surveillance
SrvFaucon at cslaval.qc.ca
Tue Nov 7 17:59:48 UTC 2006
Hi all,
So I am experimenting with page inclusion, but can't find the perfect solution.
I know I can include a full page with this {{:Page tests no 99}}.
I know I can include part of a page by putting in the "Page tests no 99" page some "<include></include>" so that only the not included part will be visible insite the first page.
But what I would prefer, is more something like putting some <from here><to here>, but that would be visible even when the included page is visited. That's not what the <onlyinclude></onlyinclude> tags do.
So what I was thinking about doing is to put some kind of condition.
{{if (this page is included) | then put <onlyinclude> | else <put nothing>}}
{{if (this page is included) | then put </onlyinclude> | else <put nothing>}}
But I can't find the correct syntax for that. Can someone help me? Thanks.
---------------------------------------------------
Alexandre Racine - Gardien Virtuel - Sécurité Informatique www.gardienvirtuel.com
Montréal, Québec, Canada
More information about the MediaWiki-l
mailing list