Template:Databank (BZ): Difference between revisions

From Subnautica Wiki
m (undoing the span id change)
m (Updated template formatting.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| class="article-table unsortable" id="{{{id|{{#replace:{{#replace:{{{name}}}|[|}}|]|}}}}}" style="width: 95%; text-align: left;" cellspacing="1" cellpadding="1" border="0"
{| class="article-table" id="{{{id|{{#replace:{{#replace:{{{name}}}|[|}}|]|}}}}}" style="width:95%; text-align:left; border:0; border-spacing:0"
|-
|-
| <span id="{{{name}}}"></span>'''{{{name}}}'''
| <span id="{{{name}}}"></span>'''{{{name}}}'''
{{#if:{{{image|}}} | {{!}}-
{{#if:{{{image|}}} | {{!}}-
! class="unsortable" style="width: 100%;" {{!}}[[File:{{{image}}}{{!}}center{{!}}650px]] | }}
! class="unsortable" style="width:100%" {{!}}[[File:{{{image}}}{{!}}center{{!}}650px]] | }}
|-
|-
|<poem>{{{description}}}</poem>
|<poem>{{{description}}}</poem>
|-
|-
|Source: {{{source}}}
|Source: {{{source}}}
|}<noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
|}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 23:11, 10 July 2023

{{{name}}}
<poem>{{{description}}}</poem>
Source: {{{source}}}

This template allows the creation of a Databank entry table. It requires three parameters, but takes up to four: name, description, source, and optionally image. Names and sources can be supplemented with links if need be. Descriptions must be void or other text-interrupting features. Image is defined via file name including MIME type.

Example

HTML

{{Databank (BZ)
|name=[[Mobile Vehicle Bay (Below Zero)|]]
|image=MVBEncy (BZ).png
|description=
The mobile vehicle bay is a deployable station equipped with fabrication drones, designed to construct small research and exploration vehicles from raw materials. It is a common tool in almost all industrial, scientific and colonization operations.
|source=Unlocked by default
}}

Output

Mobile Vehicle Bay
MVBEncy (BZ).png
<poem>The mobile vehicle bay is a deployable station equipped with fabrication drones, designed to construct small research and exploration vehicles from raw materials. It is a common tool in almost all industrial, scientific and colonization operations.</poem>
Source: Unlocked by default