[%- IF playerid && needsClient %][% setuplinks = playersetup %][% ELSE %][% setuplinks = additionalLinks.setup %][% END -%] [%- FOREACH token = setuplinks.keys -%] [% stringkeys.$token = token | string | html -%] [%- END -%] [%- IF useTabList %] [%- IF setuplinks && stringkeys %] [%- IF style == "list" %]

[% END %] [%- FOREACH stringkey = stringkeys.sort %] [%- IF style == "list" %]
- [%- ELSIF loop.index > 0%]|[% END %] [% stringkey | string | html %][% IF style == "list" %]
[% END %] [%- END -%] [%- IF style == "list" %]

[% END %] [%- END -%] [%- ELSE -%] [%- BLOCK addSetupLinks; IF setuplinks; sortedlinks = []; sortedplugins = []; FOREACH token = stringkeys.sort; IF setuplinks.$token.search('plugin'); sortedplugins.push(token); ELSE; sortedlinks.push(token); END; END %] [% FOREACH stringkey IN sortedlinks %] [% stringkeys.$stringkey %] [%- END %] [% FOREACH stringkey IN sortedplugins %] [% stringkeys.$stringkey %] [%- END %] [% END; END %]
[% END %]