Template:InfoboxNMSRef: Difference between revisions

From Step Mods | Change The Game
(Created page with "<includeonly>{| class="InfoboxNMSRef" style="float:{{{float|right}}};" ! colspan="2" class="bluebg" style="text-align:center;font-size:1.1em;" | {{{title|}}} |- ! File Suffix:...")
 
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| class="InfoboxNMSRef" style="float:{{{float|right}}};"
<includeonly>{{#vardefine:float|{{{float|left}}}}}{| class="infobox" style="float:{{#var:float}}; margin-{{#ifeq:{{#var:float}}|right|left|right}}:1em;"
! colspan="2" class="bluebg" style="text-align:center;font-size:1.1em;" | {{{title|}}}
! colspan="2" class="modnamehd" style="padding-top:1em; text-align:center;" | {{{title|}}}
|-
|-
! File Suffix:
! class="infoattr" style="padding-top: 0.5em;" | File Suffix:
| {{{suffix|...}}}
| class="infovalue" style="padding-top: 0.5em;" | {{{suffix|...}}}
|-
|-
! Template Name:
! class="infoattr" | Template Name:
| {{{templateName|...}}}
| class="infovalue" | {{{templateName|...}}}
|-
|-
! Directory:
! class="infoattr" | Directory:
| {{{directory|...}}}
| class="infovalue" | {{{directory|...}}}
|-  
|-  
! Knowledge State:
! class="infoattr" | Knowledge State:
| {{#switch:{{lc:{{{knowledge|}}}}}
| class="infovalue" | {{#switch:{{lc:{{{knowledge|}}}}}
|unknown = Unknown
|unknown = Unknown
|partial = Partially Understood
|partial = Partially Understood
Line 18: Line 18:
|#default = ...}}
|#default = ...}}
|-
|-
! Summary:
! class="infoattr" style="padding-bottom: 1em;" | Summary:
| {{{summary|...}}}
| class="infovalue" style="padding-bottom: 1em;" | {{{summary|...}}}
|}</includeonly><noinclude>__NOTITLE__ __NOTOC__ [[Category:Infobox Templates]][[Category:Formatting Templates]][[Category:NMS]]
|}</includeonly><noinclude>__NOTITLE__ __NOTOC__ [[Category:Infobox Templates]][[Category:Formatting Templates]][[Category:NoMansSky Templates]]


= {{FULLPAGENAME}} =
= {{FULLPAGENAME}} =
Line 28: Line 28:


=== Parameters ===
=== Parameters ===
* '''float'''
*: Allowed switches: ''left (default)'', ''right''
*: Sets the horizontal position.
* '''title'''
* '''title'''
*: Sets the header tile of the infobox.
*: Sets the header tile of the infobox.
Line 45: Line 48:
====Blank Code:====
====Blank Code:====
<pre>{{InfoboxNMSRef
<pre>{{InfoboxNMSRef
|float =
|title =  
|title =  
|suffix =  
|suffix =  
Line 55: Line 59:
====Code:====
====Code:====
<pre>{{InfoboxNMSRef
<pre>{{InfoboxNMSRef
|float = right
|title = Space...the final...balls...
|title = Space...the final...balls...
|suffix = Groovy.MBIN
|suffix = Groovy.MBIN
Line 64: Line 69:
====Result:====
====Result:====
{{InfoboxNMSRef
{{InfoboxNMSRef
|float = right
|title = Space...the final...balls...
|title = Space...the final...balls...
|suffix = Groovy.MBIN
|suffix = Groovy.MBIN
Line 70: Line 76:
|knowledge = understood
|knowledge = understood
|summary = Commence Operation... '''VAC-U-SUCK!'''
|summary = Commence Operation... '''VAC-U-SUCK!'''
}}
}}{{clear}}


</noinclude>
</noinclude>

Latest revision as of 21:40, February 19, 2021


Template:InfoboxNMSRef

Purpose & Usage

Use this template to create an infobox for No Man's Sky References.

Parameters

  • float
    Allowed switches: left (default), right
    Sets the horizontal position.
  • title
    Sets the header tile of the infobox.
  • suffix
    File suffix. (e.g. SCENE.MBIN)
  • templateName
    (e.g. tkSceneNodeData)
  • directory
    (e.g. GLOBAL/AUDIO/FONTS/MATERIALS)
  • knowledge
    Allowed switches: unknown, partial, understood
    Sets the state of the current knowledge level of the reference.
  • summary
    A summary of the reference.

Examples

Blank Code:

{{InfoboxNMSRef
|float = 
|title = 
|suffix = 
|templateName = 
|directory = 
|knowledge = 
|summary = 
}}

Code:

{{InfoboxNMSRef
|float = right
|title = Space...the final...balls...
|suffix = Groovy.MBIN
|templateName = tkSpaceBallsData
|directory = GLOBAL/Space/Farce/
|knowledge = understood
|summary = Commence Operation... '''VAC-U-SUCK!'''
}}

Result:

Space...the final...balls...
File Suffix: Groovy.MBIN
Template Name: tkSpaceBallsData
Directory: GLOBAL/Space/Farce/
Knowledge State: Well Understood
Summary: Commence Operation... VAC-U-SUCK!