Template:FeatureInfobox: Difference between revisions

From Fonline2 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
{| class="wikitable infobox" style="float:right; margin-left:10px; width:300px;"
! colspan="2" style="text-align:center;" {{!}} {{{name|{{PAGENAME}}}}}
|-
{{{rows}}}
|}
</includeonly>
<noinclude>
<noinclude>
<templatedata>
== Usage ==
{
<pre>
    "params": {
{{FeatureInfobox
        "name": {
| name     = Feature Name
            "label": "Name",
| rows      =
            "type": "string"
{{!}}-
        },
{{!}} Type
        "type": {
{{!}} Event
            "label": "Type",
{{!}}-
            "type": "string"
{{!}} Location
        },
{{!}} New Reno
        "location": {
{{!}}-
            "label": "Location",
{{!}} Requirements
            "type": "string"
{{!}} Level 15
        },
{{!}}-
        "requirements": {
{{!}} Rewards
            "label": "Requirements",
{{!}} Caps, XP
            "type": "string"
}}
        },
</pre>
        "rewards": {
[[Category:Infobox templates]]
            "label": "Rewards",
            "type": "string"
        }
    },
    "format": "block"
}
</templatedata>
</noinclude>
</noinclude>
<includeonly>
<table class="wikitable" style="float:right; margin:0 0 1em 1em; width:320px">
<tr>
<th colspan="2" style="background-color:#3d6f4a; color:white; text-align:center">{{{name|{{PAGENAME}}}}}</th>
</tr>
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
{{#if:{{{location|}}}|<tr><th>Location</th><td>{{{location}}}</td></tr>}}
{{#if:{{{requirements|}}}|<tr><th>Requirements</th><td>{{{requirements}}}</td></tr>}}
{{#if:{{{rewards|}}}|<tr><th>Rewards</th><td>{{{rewards}}}</td></tr>}}
</table>
</includeonly>

Latest revision as of 11:03, 3 June 2026


Usage

{{FeatureInfobox
| name      = Feature Name
| rows      =
{{!}}-
{{!}} Type
{{!}} Event
{{!}}-
{{!}} Location
{{!}} New Reno
{{!}}-
{{!}} Requirements
{{!}} Level 15
{{!}}-
{{!}} Rewards
{{!}} Caps, XP
}}