Template:Infobox interface: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{| class="infobox infobox-class" | {| class="infobox infobox-class" | ||
! Interface: | ! Interface:{{DISPLAYTITLE:{{{classpage|{{classpage|c={{{class|{{classname}}}}}}}}}}}}{{DEFAULTSORT:{{PAGENAME}} {{{game|{{gamename}}}}} {{{engine|{{ARTICLESPACE}}}}}}} | ||
| {{{package}}}.{{{interface|{{classname}}}}} | | {{{package}}}.{{{interface|{{classname}}}}} {{#if:{{{custom|}}}|(custom)}} | ||
|{{#if: {{{game|{{gamename}}}}} | |{{#if: {{{game|{{gamename}}}}} | ||
|- | |- | ||
! Game: | ! Game: | ||
{{!}} [[{{{game|{{gamename}}}}}]] <includeonly>[[Category:{{{game|{{gamename}}}}}-specific interface classes | {{!}} [[{{{game|{{gamename}}}}}]] <includeonly>[[Category:{{#if:{{{custom|}}}|Custom }}{{{game|{{gamename}}}}}-specific interface classes]]</includeonly> | ||
{{!}}|{{#if: {{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}} | {{!}}|{{#if: {{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}} | ||
|- | |- | ||
! Engine: | ! Engine: | ||
{{!}} [[{{{engine|{{ARTICLESPACE}}}}}]] <includeonly>[[Category:{{{engine|{{ARTICLESPACE}}}}}-specific interface classes | {{!}} [[{{{engine|{{ARTICLESPACE}}}}}]] <includeonly>[[Category:{{#if:{{{custom|}}}|Custom }}{{{engine|{{ARTICLESPACE}}}}}-specific interface classes]]</includeonly> | ||
{{!}}|- style="display:none" | {{!}}|- style="display:none" | ||
{{!}}<includeonly>[[Category:Interface classes | {{!}}<includeonly>{{#if:{{{custom|}}}|[[Category:Custom interface classes]]|[[Category:Interface classes]]}}</includeonly> | ||
{{!}}}}}}{{#if: {{{tree|}}} | {{!}}}}}}{{#if: {{{tree|}}} | ||
|- | |- |
Revision as of 03:52, 6 March 2008
Interface: | {{{package}}}.Infobox_interface |
---|
This template provides an info box for an interface class. The info box can contain relevant information like parent interfaces.
Usage
Example:
{{Infobox interface | interface = UIDataStorePublisher | package = Engine | game = UT3 | engine = UE3 | parent = UIDataStoreSubscriber }}
Interface:Warning: Default sort key "Infobox interface UT3 UE3" overrides earlier default sort key "Infobox interface Template". | Engine.UIDataStorePublisher |
---|---|
Game: | UT3 |
If interface, game or engine are missing, they are derived from the current page name. Engine and game are only used for page and category links. It's usually better to let the template derive class, game and engine from the page name. If the interface has a super interface other than "Interface" itself, the list of parent interfaces up to (but excluding) "Interface" should be specified. If more than one parent needs to be specified, use parent1, parent2, etc., with parent1 being a synonym for parent.
For the interface "Interface" itself the class "Object" is given as parent, because technically "Interface" is an abstract class extending "Object" and all other interfaces are abstract classes extending either class "Interface" or their parent interface.
See also
Warning: Default sort key "Infobox interface" overrides earlier default sort key "Infobox interface UT3 UE3".