More actions
Created page with "<div style="float: right; width: 300px; background: #1a1a2e; border: 1px solid #333; border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;"> <div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div> {{{image|}}} {| style="width: 100%;" {{#if:{{{type|}}}| {{!}}- ! style="text-align: right; padding: 4px 10px; color: #999;" {{!}} Type {{!}} style="padding: 4px;" {{!}} {{{type}}} }} {{#if:{{{leader|}}}| {{!}}..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style="float: right; width: 300px; background: | <div style="float: right; width: 300px; background: var(--color-surface-2); border: 1px solid var(--border-color-base); border-radius: 8px; padding: 15px; margin: 0 0 15px 20px;"> | ||
<div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div> | <div style="text-align: center; font-size: 1.3em; font-weight: bold; margin-bottom: 10px;">{{{name|{{PAGENAME}}}}}</div> | ||
{{{image|}}} | <div style="text-align: center;">{{{image|}}}</div> | ||
{| style="width: 100%;" | {| style="width: 100%;" | ||
{{#if:{{{type|}}}| | {{#if:{{{type|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: right; padding: 4px 10px; color: | ! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Type | ||
{{!}} style="padding: 4px;" {{!}} {{{type}}} | {{!}} style="padding: 4px;" {{!}} {{{type}}} | ||
}} | }} | ||
{{#if:{{{leader|}}}| | {{#if:{{{leader|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: right; padding: 4px 10px; color: | ! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Leader | ||
{{!}} style="padding: 4px;" {{!}} {{{leader}}} | {{!}} style="padding: 4px;" {{!}} {{{leader}}} | ||
}} | }} | ||
{{#if:{{{status|}}}| | {{#if:{{{status|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: right; padding: 4px 10px; color: | ! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Status | ||
{{!}} style="padding: 4px;" {{!}} {{{status}}} | {{!}} style="padding: 4px;" {{!}} {{{status}}} | ||
}} | }} | ||
{{#if:{{{series|}}}| | {{#if:{{{series|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: right; padding: 4px 10px; color: | ! style="text-align: right; padding: 4px 10px; color: var(--color-base--subtle);" {{!}} Series | ||
{{!}} style="padding: 4px;" {{!}} {{{series}}} | {{!}} style="padding: 4px;" {{!}} {{{series}}} | ||
}} | }} | ||
| Line 47: | Line 32: | ||
|type= | |type= | ||
|leader= | |leader= | ||
|status= | |status= | ||
|series= | |series= | ||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"type": "string", | |||
"description": "Faction name", | |||
"default": "{{PAGENAME}}" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"type": "wiki-file-name", | |||
"description": "Faction image or logo" | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"type": "string", | |||
"description": "Type of faction", | |||
"suggestedvalues": ["Military", "Government", "Organisation", "Coalition", "Guild"] | |||
}, | |||
"leader": { | |||
"label": "Leader", | |||
"type": "string", | |||
"description": "Leader of the faction" | |||
}, | |||
"status": { | |||
"label": "Status", | |||
"type": "string", | |||
"description": "Current status", | |||
"suggestedvalues": ["Active", "Disbanded", "Destroyed", "Unknown"] | |||
}, | |||
"series": { | |||
"label": "Series", | |||
"type": "string", | |||
"description": "Which series this faction is from", | |||
"suggestedvalues": ["Rift SMP", "Ruinous Sands", "Tropical Island Civ"] | |||
} | |||
}, | |||
"description": "Infobox for faction pages", | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 08:58, 5 April 2026
Infobox faction
Usage
{{Infobox faction
|name=
|image=
|type=
|leader=
|status=
|series=
}}
Infobox for faction pages
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Faction name
| String | optional |
| Image | image | Faction image or logo | File | optional |
| Type | type | Type of faction
| String | optional |
| Leader | leader | Leader of the faction | String | optional |
| Status | status | Current status
| String | optional |
| Series | series | Which series this faction is from
| String | optional |