Template:FeatureInfobox: Difference between revisions

From Fonline2 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 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      =
            "description": "Feature name (defaults to page name)",
{{!}}-
            "type": "string"
{{!}} Type
        },
{{!}} Event
        "rows": {
{{!}}-
            "label": "Rows",
{{!}} Location
            "description": "Infobox rows. Use {{!}}- {{!}} Label {{!}} Value for each row. Include only rows with values.",
{{!}} New Reno
            "type": "content"
{{!}}-
        }
{{!}} Requirements
    },
{{!}} Level 15
    "format": "block"
{{!}}-
}
{{!}} Rewards
</templatedata>
{{!}} 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>
{{{rows|}}}
</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
}}