Difference between revisions of "Template:Entity Infobox"

From Sven Co-op
Jump to navigation Jump to search
m
m (PAGENAME -> PAGENAMEE)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div id="NPC_infobox" class="infobox hidable">
 
<div id="NPC_infobox" class="infobox hidable">
 
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4"
 
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4"
! class="infoboxheading" colspan="2" | {{lc:{{{{{2|PAGENAME}}}}}}}
+
! class="infoboxheading" colspan="2" | {{lc:{{{{{2|PAGENAMEE}}}}}}}
 
  {{#if:{{{title|}}}|
 
  {{#if:{{{title|}}}|
 
{{!}}-
 
{{!}}-
Line 8: Line 8:
 
{{{title|}}}
 
{{{title|}}}
 
{{!}}-
 
{{!}}-
|}} {{#if:{{{type|}}}|
+
|}} {{#if:{{{type|p}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} class="infoboxlabel" {{!}} Type
 
{{!}} class="infoboxlabel" {{!}} Type
 
{{!}} class="infoboxcell" {{!}}
 
{{!}} class="infoboxcell" {{!}}
{{#switch: {{{type|}}} | p = point | b = brush | ??? }}
+
{{#switch: {{{type|p}}} | p = point | b = brush | ??? }}
 
{{!}}-
 
{{!}}-
|}} {{#if:{{{status|}}}|
+
|}} {{#if:{{{status|s}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} class="infoboxlabel" {{!}} Status
 
{{!}} class="infoboxlabel" {{!}} Status
 
{{!}} class="infoboxcell" {{!}}
 
{{!}} class="infoboxcell" {{!}}
{{#switch: {{{status|}}} | o = obsolete | ??? }}
+
{{#switch: {{{status|s}}} | o = obsolete | s = supported | ??? }}
 
{{!}}-
 
{{!}}-
  {{#if:{{{replaced|}}} |{{#ifeq:{{{status|}}} | o |
+
  {{#if:{{{replaced_by|}}} |{{#ifeq:{{{status|}}} | o |
 
{{!}}-
 
{{!}}-
 
{{!}} class="infoboxlabel" {{!}} Replaced by
 
{{!}} class="infoboxlabel" {{!}} Replaced by
 
{{!}} class="infoboxcell" {{!}}
 
{{!}} class="infoboxcell" {{!}}
[[{{{replaced|}}}]]
+
[[{{{replaced_by|}}}]]
 
{{!}}-
 
{{!}}-
 
|}}|}}
 
|}}|}}
Line 42: Line 42:
 
| type=
 
| type=
 
| status=
 
| status=
| replaced=
+
| replaced_by=
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  

Latest revision as of 06:42, 27 January 2019

entity_infobox
Type

point

Status

supported

 


1 Usage instructions

Copy and paste the following code into the top of the article, filling the appropriate fields. Omitted or blank fields will not be shown on the article page.

{{Entity_Infobox
| title=
| type=
| status=
| replaced_by=
}}

1.1 Display parameters

(none)