Template:Infobox interface: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{| class="infobox infobox-class" | {| class="infobox infobox-class" | ||
! [[Interface]]: | ! colspan="2" style="text-align:center;" |{{Tnavbar|Infobox interface|style=float:right;}}[[Interface]] | ||
| {{#if:{{{package|}}}|{{{package}}}.}}{{{interface|{{classname}}}}} {{#if:{{{custom|}}}|(custom)}} | |- | ||
| colspan="2" style="text-align:center;" |{{#if:{{{package|}}}|{{{package}}}.}}{{{interface|{{classname}}}}} {{#if:{{{custom|}}}|(custom)}} | |||
|{{#if: {{{game|{{gamename}}}}} | |{{#if: {{{game|{{gamename}}}}} | ||
|- | |- | ||
Line 17: | Line 18: | ||
{{{tree}}} | {{{tree}}} | ||
{{!}}}}- | {{!}}}}- | ||
| colspan="2" class="plainlinks" style="font-size:smaller;text-align:center;" | [{{fullurl:Category:Classes implementing {{{interface|{{classname}}}}}{{#if: {{{game|{{gamename}}}}}|_({{{game|{{gamename}}}}})|{{#if: {{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}}|_({{{engine|{{ARTICLESPACE}}}}})}}}}}} Known classes | | colspan="2" class="plainlinks" style="font-size:smaller;text-align:center;" | [{{fullurl:Category:Classes implementing {{{interface|{{classname}}}}}{{#if: {{{game|{{gamename}}}}}|_({{{game|{{gamename}}}}})|{{#if: {{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}}|_({{{engine|{{ARTICLESPACE}}}}})}}}}}} Known implementing classes] | ||
|}<includeonly>{{DISPLAYTITLE:{{{interfacepage|{{classpage|c={{{interface|{{classname}}}}}}}}}}}}{{DEFAULTSORT:{{PAGENAME}} {{{game|}}} {{{engine|{{ARTICLESPACE}}}}}}}{{#if:{{{interfacepage|{{{nocat|}}}}}}||{{#if: {{{custom|}}}|{{#if: {{{game|{{gamename}}}}}|[[Category:Custom {{{game|{{gamename}}}}}-specific interfaces]]|{{#if: {{{engine|{{ARTICLESPACE}}}}}|[[Category:Custom {{{engine|{{ARTICLESPACE}}}}}-specific interfaces]]|[[Category:Custom interfaces]]}}}}|{{#if: {{{game|{{gamename}}}}}|[[Category:{{{game|{{gamename}}}}}-specific interfaces]]|{{#if: {{{engine|{{ARTICLESPACE}}}}}|[[Category:{{{engine|{{ARTICLESPACE}}}}}-specific interfaces]]|[[Category:Interfaces]]}}}}{{#if: {{{package|}}}|{{#if: {{{game|{{gamename}}}}}|[[Category:Interfaces in {{{game|{{gamename}}}}} package {{{package}}}]]|{{#if: {{{engine|{{ARTICLESPACE}}}}}|[[Category:Interfaces in {{{engine|{{ARTICLESPACE}}}}} package {{{package}}}]]|[[Category:Interfaces in package {{{package}}}]]}}}}}}}}[[Category:Classes implementing {{{interface|{{classname}}}}}{{#if: {{{game|{{gamename}}}}}|_({{{game|{{gamename}}}}})|{{#if: {{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}}|_({{{engine|{{ARTICLESPACE}}}}})}}}}| ]]}}</includeonly><noinclude> | |}<includeonly>{{DISPLAYTITLE:{{{interfacepage|{{classpage|c={{{interface|{{classname}}}}}}}}}}}}{{DEFAULTSORT:{{PAGENAME}} {{{game|}}} {{{engine|{{ARTICLESPACE}}}}}}}{{#if:{{{interfacepage|{{{nocat|}}}}}}||{{#if: {{{custom|}}}|{{#if: {{{game|{{gamename}}}}}|[[Category:Custom {{{game|{{gamename}}}}}-specific interfaces]]|{{#if: {{{engine|{{ARTICLESPACE}}}}}|[[Category:Custom {{{engine|{{ARTICLESPACE}}}}}-specific interfaces]]|[[Category:Custom interfaces]]}}}}|{{#if: {{{game|{{gamename}}}}}|[[Category:{{{game|{{gamename}}}}}-specific interfaces]]|{{#if: {{{engine|{{ARTICLESPACE}}}}}|[[Category:{{{engine|{{ARTICLESPACE}}}}}-specific interfaces]]|[[Category:Interfaces]]}}}}{{#if: {{{package|}}}|{{#if: {{{game|{{gamename}}}}}|[[Category:Interfaces in {{{game|{{gamename}}}}} package {{{package}}}]]|{{#if: {{{engine|{{ARTICLESPACE}}}}}|[[Category:Interfaces in {{{engine|{{ARTICLESPACE}}}}} package {{{package}}}]]|[[Category:Interfaces in package {{{package}}}]]}}}}}}}}[[Category:Classes implementing {{{interface|{{classname}}}}}{{#if: {{{game|{{gamename}}}}}|_({{{game|{{gamename}}}}})|{{#if: {{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}}|_({{{engine|{{ARTICLESPACE}}}}})}}}}| ]]}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 08:09, 7 March 2008
Interface | |
---|---|
Infobox_interface | |
Known implementing classes |
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 | |
---|---|
Engine.UIDataStorePublisher | |
Game: | UT3 |
Known implementing classes |
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".