Template:FeatureInfobox: Difference between revisions

From Fonline2 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 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": { "label": "Name", "type": "string" },
| name     = Feature Name
        "type": { "label": "Type", "type": "string" },
| rows      =
        "location": { "label": "Location", "type": "string" },
{{!}}-
        "requirements": { "label": "Requirements", "type": "string" },
{{!}} Type
        "rewards": { "label": "Rewards", "type": "string" }
{{!}} Event
    },
{{!}}-
    "format": "block"
{{!}} Location
}
{{!}} New Reno
</templatedata>
{{!}}-
{{!}} Requirements
{{!}} Level 15
{{!}}-
{{!}} Rewards
{{!}} Caps, XP
}}
</pre>
[[Category:Infobox templates]]
</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>
<tr><th>Type</th><td>{{{type|—}}}</td></tr>
<tr><th>Location</th><td>{{{location|—}}}</td></tr>
<tr><th>Requirements</th><td>{{{requirements|—}}}</td></tr>
<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
}}