Note that in this case, you either need a literal argument
to avoid the creation of an insane topic link with a single word.
{{}}
or to explicitly escape the #
character as in:
= History of Tiananmen Square
{wiki=Tiananmen_Square\#History}
Also note that Wikipedia subsections are not completely stable, so generally you would rather want to link to a permalink with a full URL as in:
Note that in this case escaping the
= Artificial general intelligence
{wiki=https://en.wikipedia.org/w/index.php?title=Artificial_general_intelligence&oldid=1192191193#Tests_for_human-level_AGI}
#
is not necessary because it is part of the insane link that starts at https://
.