Templates with sidebars could make use of of the $ID of the Parent Page (the main one).
An example is highlighting the current parent page's link via 'span class="curid"' as in
http://wiki.splitbrain.org/plugin:navilevel#tip
I propose $PPID as the name of this variable.