Template:Infobox interface: Difference between revisions
mNo edit summary |
same new layout as class infobox |
||
Line 1: | Line 1: | ||
<div class="infobox infobox-interface">{{Tnavbar|Infobox interface|style=float:right;}}{{#if:{{{game|{{gamename}}}}} | |||
|[[Image:Icon-{{{game|{{gamename}}}}}.png|{{{game|{{gamename}}}}} interface]]|{{#if:{{{engine|{{ARTICLESPACE}}}}} | |||
|[[Image:Icon-{{{engine|{{ARTICLESPACE}}}}}.png|{{{engine|{{ARTICLESPACE}}}}} interface]]}}}} | |||
{{links|{{{parent1|{{{parent|{{#ifeq:{{{interface|{{classname}}}}}|Interface|Object|Interface}}}}}}}}|{{{parent2|}}}|{{{parent3|}}}|{{{parent4|}}}|{{{parent5|}}}|{{{parent6|}}}|{{{parent7|}}}|{{{parent8|}}}|{{{parent9|}}}| | |||
|{{ | prefix={{#if:{{{engine|{{ARTICLESPACE}}}}}|{{{engine|{{ARTICLESPACE}}}}}:}}|suffix={{#if: {{{game|{{gamename}}}}}|_({{{game|{{gamename}}}}})}}|sep= >> }} >> '''{{{class|{{classname}}}}}'''</div> | ||
| | {{#if:{{{notoc|}}}||<div style="float:right;padding:0 0 1em 1em;">__TOC__</div>}}{{#if:{{{package|}}}| | ||
;Package: : {{{package}}}}} | |||
{{ | ;<span class="plainlinks">[{{fullurl:Category:Classes implementing {{{interface|{{classname}}}}}{{#if: {{{game|{{gamename}}}}}|_({{{game|{{gamename}}}}})|{{#if: {{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}}|_({{{engine|{{ARTICLESPACE}}}}})}}}}}} Known implementing classes]</span><includeonly>{{DISPLAYTITLE:{{#if:{{#pos: UE1UE2UE3 | {{{engine|{{ARTICLESPACE}}}}}}}|{{{engine|{{ARTICLESPACE}}}}}:}}{{{class|{{classname}}}}} {{#if:{{{game|{{gamename}}}}}|({{{game|{{gamename}}}}})}}}}{{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 16:39, 18 March 2008
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 }}
- Package:
- Engine
- 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".