Difference between revisions of "Template:Entity Infobox"
Jump to navigation
Jump to search
(Type is now either p (point) or b (brush).) |
m (PAGENAME -> PAGENAMEE) |
||
(19 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" | {{{{{{2| | + | ! 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}}} | p = point | b = brush | ??? }} |
{{!}}- | {{!}}- | ||
− | |}} {{#if:{{{status|}}}| | + | |}} {{#if:{{{status|s}}}| |
{{!}}- | {{!}}- | ||
{{!}} class="infoboxlabel" {{!}} Status | {{!}} class="infoboxlabel" {{!}} Status | ||
{{!}} class="infoboxcell" {{!}} | {{!}} class="infoboxcell" {{!}} | ||
− | {{{status|}}} | + | {{#switch: {{{status|s}}} | o = obsolete | s = supported | ??? }} |
{{!}}- | {{!}}- | ||
+ | {{#if:{{{replaced_by|}}} |{{#ifeq:{{{status|}}} | o | | ||
+ | {{!}}- | ||
+ | {{!}} class="infoboxlabel" {{!}} Replaced by | ||
+ | {{!}} class="infoboxcell" {{!}} | ||
+ | [[{{{replaced_by|}}}]] | ||
+ | {{!}}- | ||
+ | |}}|}} | ||
|}} | |}} | ||
|- | |- | ||
Line 32: | Line 39: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Entity_Infobox | {{Entity_Infobox | ||
− | |||
| title= | | title= | ||
| type= | | type= | ||
| status= | | status= | ||
+ | | 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)