Template:Databank/doc: Difference between revisions

From Subnautica Wiki
(Created the documentation)
 
(Formatting)
Tag: 2017 source edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
This template is used to make an organized, standardized data bank layout. The image for the in-game data bank should be used, along with the text.


== Example ==
Note: in most cases, it is easier and simpler to use {{T|DataBank2}}, which will add the proper data bank for the topic automatically. However, if the data bank must be written out manually, then the following should be noted.
=== HTML ===
;Usage
<pre><nowiki>
{{Databank
| name=[[Mobile Vehicle Bay]]
| image=MVBEncy.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
}}
</nowiki></pre>


=== Output ===
*Full syntax: {{T|Databank|name|image|description|source}}
{{Databank

| name=[[Mobile Vehicle Bay]]

| image=MVBEncy.PNG|centre|650px
*Basic usage is as follows:
| description=
<pre>{{DataBank|name=Peeper|image=Peeper-0.png|description=''Peeper Data Bank Text''
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
>#''More Peeper Data Bank Text''
}}

Assessment: Further research required.|source=Reading Template Documentation}}</pre>{{DataBank|name=Peeper|image=Peeper-0.png|description=''Peeper Data Bank Text''

#''More Peeper Data Bank Text''

Assessment: Further research required.|source=Reading Template Documentation}}


*Notes:
#For the image, include the name and type of file only; do not add <code>File:</code>. For example, <code>image=Peeper-0.png</code> will add [[:File:Peeper-0.png]]. The appropriate file should be on the wiki (if not, tell an administrator or someone else who knows how to properly upload it).
#For text, follow standard HTML protocol; for example, number lists should be done with <code>#</code> at the beginning of each line. Enter the data bank word-for-word, as shown in-game.
<includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 18:26, 9 July 2024

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
| name=[[Mobile Vehicle Bay]]
| image=MVBEncy.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.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