On 11/23/05, judi chen <judi_chen(a)yahoo.com> wrote:
Rick,
Thanks for your time.
My problem is that my wiki site using those three
templates to automate the portal creation process. So
I have three exact same templates.
My point is that there are more than three templates.
{{/box-header ...}} is NOT referring to
Wikiportal/box-header
The / means that it's a sub-page of the current page so it's really referring to
Portal:Sports_and_games/box-header
which is an entirely different template.
Similarly {{/box-footer ...}} refers to Portal:Sports_and_games/box-footer
So if your portal page is called Xxx:Yyy then you need a template
called Xxx:Yyy/box-header which would be based on
Portal:Sports_and_games/box-header
and similarly for Xxx:Yyy/box-footer
In my first template, I have a <div> to open a box and
in my third template I have a </div> to close this
box.
But my wiki 1.5.2 did not recognize the </div> in the
third template. So the display box is above the
content of the second template. And at the display
rendering of the third template has a </div> at the
end.
Also can you explain to me why you use 01 and 10 when
you tried to explain nesting level.
It's something which old Lisp programmers do to match up opening and
closing parentheses, but applied here to braces {} The digit
represents the nesting level before an opening brace is encountered,
or after a closing brace is encountered. So
{{/box-header|Sports and games
01
Means we are now inside two braces (or at nesting level 2
portal|Wikipedia:Wikiportal/Sports and games/Intro|}}
10
Means that the first closing brace took us out to nesting level 1 and the
second to level 0 (i.e. no unmatched braces.
--
Rick DeNatale
Visit the Project Mercury Wiki Site
http://www.mercuryspacecraft.com/