Template:Category game classes: Difference between revisions

From Unreal Wiki, The Unreal Engine Documentation Site
mNo edit summary
added support for native-only class categories
Line 1: Line 1:
This [[Project:Categories|category]] contains all {{#if:{{{custom|}}}|custom}} [[UnrealScript]] [[class]]e{{#ifexist:Category:{{#if:{{{custom|}}}|Custom_}}{{{1}}}-specific interfaces|s and [[interface]]}}s specific to {{ {{{1}}} }}.
This [[Project:Categories|category]] contains all {{#if:{{{custom|}}}|custom}} {{#if:{{{native|}}}|[[native-only classes]]|[[UnrealScript]] classe{{#ifexist:Category:{{#if:{{{custom|}}}|Custom_}}{{{1}}}-specific interfaces|s and interface}}}}s specific to {{ {{{1}}} }}.
{{#if:{{{custom|}}}|
{{#if:{{{toc|}}}|
|
{{{!}} class="toc plainlinks" summary="Contents" align="center"
{{{!}} class="toc plainlinks" summary="Contents" align="center"
! {{MediaWiki:Toc}}:
! {{MediaWiki:Toc}}:
Line 8: Line 7:
}}
}}
<includeonly>
<includeonly>
{{#if:{{{custom|}}}
{{#ifeq:{{{custom}}}|{{{native}}}
|[[Category:Custom classes by game{{!}}{{{1}}}]] [[Category:{{{1}}}-specific classes{{!}}  {{PAGENAME}}]] {{#if:{{{2|}}}|[[Category:Custom {{{2}}}-specific classes{{!}} {{PAGENAME}}]]}}
|[[Category:Custom {{{1}}}-specific classes{{!}} {{PAGENAME}}]][[Category:Native {{{1}}}-specific classes{{!}}  {{PAGENAME}}]]
|[[Category:Classes by game{{!}}{{{1}}}]] {{#if:{{{2|}}}|[[Category:{{{2}}}-specific classes{{!}} {{PAGENAME}}]]}}
|{{#if:{{{custom|{{{native|}}}}}}|[[Category:{{{1}}}-specific classes{{!}} {{PAGENAME}}]]}}}}
}}</includeonly><noinclude>
[[Category:{{#if:{{{custom|}}}|Custom_}}{{#if:{{{native|}}}|native_}}classes by game{{!}}{{{1}}}]]
{{#if:{{{2|}}}|[[Category:{{#if:{{{custom|}}}|Custom_}}{{#if:{{{native|}}}|native_}}{{{2}}}-specific classes{{!}} {{PAGENAME}}]]}}
</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 07:59, 16 May 2008

This category contains all UnrealScript classes specific to {{ {{{1}}} }}.


[edit] Documentation

This template defines the content of game-specific class category pages.

Usage

For stock class categories:

{{category game classes|UT3|UE3}}

The first parameter is mandatory and defines the game's short name. The long name is determined through a template with same name as the short name. The second parameter is optional and defines the short name of a "parent game", usually the game's engine.

For custom class categories:

{{category game classes|UT3|UE3|custom=yes}}

See also