Navigation menu

Template:Logbook: Difference between revisions

From Metroid Wiki
m (adjusting size)
m (cleanup)
 
(35 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#vardefine:Logbook Ref|{{cite|{{{entry}}}|Logbook|{{#switch: {{{game|}}}|mp1=[[Metroid Prime (game)|Metroid Prime]]|mph=[[Metroid Prime Hunters]]|mp2=[[Metroid Prime 2: Echoes]]|mp3=[[Metroid Prime 3: Corruption]]|#default=[[Metroid Prime (game)|Metroid Prime]]}}}}}}<div class="NavFrame" valign="top" align="left" style="{{#switch:{{lc:{{{position|}}}}}|1|1st|first|one|top={{roundt|20px}}|2|center|middle|mid={{round|0px}}|last|bottom={{roundb|20px}}|{{round|20px}}}} {{background|neutral}} {{border|2}}; width:65%; padding:5px; margin:0px">
{{#vardefine:Logbook Ref|{{cite|{{{entry}}}| {{#switch: {{{game|}}}|mp1=[[Metroid Prime Logbook#{{{name|}}}|Logbook]] "{{{name|}}}"|mph=[[Metroid Prime Hunters Logbook#{{{name|}}}|Logbook]] "{{{name|}}}"|mp2=[[Metroid Prime 2: Echoes Logbook#{{{name|}}}|Logbook]] "{{{name|}}}"|mp2bonus=[[Metroid Prime 2: Echoes Logbook#|{{{name|}}}-bonus|Logbook]] "{{{name|}}}|mp3=[[Metroid Prime 3: Corruption Logbook#{{{name|}}}|Logbook]] "{{{name|}}}"|#default=[[Metroid Prime Logbook|Logbook entry]]}} |[[{{game-link-key|{{{game|}}}}}|{{game-key|{{{game|}}}}}]]}}}}<div class="mw-collapsible" valign="top" align="left" style="{{#switch:{{lc:{{{position|}}}}}|1|1st|first|one|top={{roundt}}|2|2nd|center|middle|mid={{round|0px}}|3|3rd|last|bottom={{roundb}}|{{round}}}} {{background|neutral}} {{border|2}}; width:60%; padding:3px; margin:0px">
<div class="NavHead" style="{{round}} {{background}} {{border}}; width:100%;">[[Logbook]] entry from {{#switch: {{{game|}}}|mp|mp1={{mp1}} |mph={{mph}}|mp2={{mp2}}|mp3={{mp3}}|#default=a ''[[Metroid Prime (series)|Metroid Prime]]'' game}}: '''''{{{name|{{PAGENAME}}}}}'''''</div><div class="NavContent" style="padding:0px; width:100%; margin:0px; border:0px; display:all">
<div class="mw-collapsible-header" style="border-radius:15px; {{background}} {{border}}; width:98%; padding-left:2%">[[Logbook]] entry from {{#switch: {{{game|}}}|mp|mp1={{mp1-colored}} |mph={{mph-colored}}|mp2={{mp2-colored}}|mp2bonus=<span class="mp2">''[[Metroid Prime 2: Echoes Bonus Disc]]''</span>|mp3={{mp3-colored}}|#default=a ''[[Metroid Prime (series)|Metroid Prime]]'' game}}: '''''{{{name|{{PAGENAME}}}}}'''''</div><div class="mw-collapsible-content" style="padding:0px; width:100%; margin:0px; border:0px;">
{| style="padding:0px; width:100%; border:0px solid; margin:0px;"
{| style="padding:0px; width:100%; border:0px solid; margin:0px;"
{{#if: {{{location|}}} {{{onetime|}}} |
{{#if: {{{location|}}} {{{onetime|}}} |
{{!}} {{#if: {{{imageleft|}}}|colspan="3"|{{#if:{{{image|}}}|colspan="2"|colspan="1"}}}} style="text-align:left; padding-left:10%" {{!}} {{#if: {{{location|}}} |'''First Location:'''  {{{location|}}} | }}
{{!}} {{#if: {{{imageleft|}}}|colspan="3"|{{#if:{{{image|}}}|colspan="2"|colspan="1"}}}} style="text-align:left; padding-left:10%" {{!}} {{#if: {{{location|}}} |'''First Location:'''  {{{location|}}} | }}
{{!}} {{#if: {{{imageleft|}}}|colspan="3"|{{#if:{{{image|}}}|colspan="2"|colspan="1"}}}} align="right" {{!}} {{#if: {{{onetime|}}} | <span class="explain" title="One-time Scan" style="margin-right:30px">[[File:Metroid Icon.png|link=]]</span> | }}}}
{{!}} {{#if: {{{imageleft|}}}|colspan="3"|{{#if:{{{image|}}}|colspan="2"|colspan="1"}}}} align="right" {{!}} {{#if: {{{onetime|}}} | '''Limited Scan'''| }}}}
|-
|-
{{#if: {{{imageleft|}}}|
{{#if: {{{imageleft|}}}|
{{!}} colspan="2" width="20%" style="padding:0px; {{background}} {{border}} {{roundl}}" {{!}}
{{!}} colspan="2" width="20%" style="padding:0px; {{background}} {{border}} {{roundl}}" {{!}}
{{{!}} align="center" style="padding:5px; width:100%;"
{{{!}} style="text-align:center; padding:5px; width:100%;"
{{!}} {{{imageleft|}}}
{{!}} {{{imageleft|}}}
{{!}}}
{{!}}}
}}
}}
| colspan="2" {{#if:{{{image|}}} | {{#if:{{{imageleft|}}}| width="60%" | width="80%"}} | width="100%" }} style="padding:0px; {{background}} {{border}} {{#if: {{{imageleft|}}}||{{#if:{{{image|}}}|{{roundl}}|{{round}}}}}} " |
| colspan="2" {{#if:{{{image|}}} | {{#if:{{{imageleft|}}}| width="60%" | width="80%"}} | width="100%" }} style="padding:0px; {{background}} {{border}} {{#if: {{{image|}}} | {{#if:{{{imageleft|}}}|{{void}}|{{roundl}}}} | {{#if:{{{imageleft|}}}|{{roundr}}|{{round}}}} }}" |
{| align="center" style="padding:5px; width:100%;"
{| style="text-align:center; padding:5px; width:100%;"
| {{{entry}}}{{#switch: {{{ref}}} |no|none|No|None|clear={{void}}|#default= <ref {{#if:{{{ref|}}}| name="{{{ref|}}}" | name="Logbook {{{name|}}}" }}>{{#var:Logbook Ref}}</ref> }}
| <i>{{{entry}}}</i>{{#if:{{{ref|}}}{{{position|}}}|{{void}}|<ref name="Logbook">{{#var:Logbook Ref}}</ref>}}
|}
|}
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} colspan="2" width="20%" style="padding:5px; {{background}} {{border}} {{roundr}}" {{!}}
{{!}} colspan="2" width="20%" style="padding:5px; {{background}} {{border}} {{roundr}}" {{!}}
{{{!}} align="center" style="padding:0px; width:100%;"
{{{!}} style="text-align:center; padding:0px; width:100%;"
{{!}} {{{image|}}}
{{!}} {{{image|}}}
{{!}}}
{{!}}}
}}
}}
|}{{#switch: {{lc:{{{clear|}}}}} |left|right|both|l|r|b= {{clear|{{{clear|left}}}}} |{{clear|left}}}}
|}
</div></div><noinclude>
{{clear|{{{clear|left}}}}}</div></div><noinclude>
 
==Usage==
This template allows us to display the logbook entries for various enemies and objects in the ''Metroid Prime'' games. This is an extremely important template, but it is somewhat abstract to use, it has the following parameters, some of which will hardly ever be used and you probably will not ever have to deal with them. If you have logbook info but cannot use the template, ask an [[Metroid Wiki:Staff and Contact|administrator]] or an experienced user for assistance.
 
*'''''Name:''''' Entry Name <small>(e.g. "Beetle" for Beetle's Logbook entry)</small>
*'''''Entry:''''' Text that appears in the game's logbook, write it out exactly as written in the logbook, even if it has spelling or grammatical errors. Automatically cites the source
*'''''Game:''''' Abbreviation for game <small>(see below)</small>
*'''''Location:''''' The first location the scan appeared.
*'''''Image:''''' The image displayed, if more than one image appear, place the image that appears to the right in this slot. Insert like any other image
*'''''Imageleft:''''' The image that appears to the left, if there is none, don't insert anything. Insert the image like any other image
*'''''Clear:''''' (''noclear'', ''left'', ''right'', or ''both'') Place "''none''" here if no [[Template:Clear|clear]] should be used. "''left''", "''right''", or "''both''" also work to signify which direction the clear should be placed  <small>(One of those hardly-used parameters, i.e. don't worry about it)</small>
*'''''Position:''''' (''top'', ''mid'', or ''bottom'') The position of the template, it helps make the template decide which corners should be rounded, top, both, or bottom corners <small>(don't worry about this either)</small>
*'''''One-Time Scan:''''' This parameter should only be used when a scan is available only once in game. It makes a small [[:File:Metroid Icon.png|Metroid icon]] appear on the template signifying that the entry can only be scanned once, as in boss scans. Remove "''onetime=''" if this does not apply
*'''''Reference:''''' ("''none''" or "''ref title''") This one is extremely important, the logbook templates automatically cite themselves, however certain cases can prevent this from functioning properly. For ref=, type "''ref=none''" to remove the reference function from that particular logbook entry. If this is done, add it in manually by writng '''<nowiki><ref>{{cite|</nowiki>'''''entry''''' | Logbook | '''''game (with link)'''''<nowiki>}}</ref></nowiki>'''. Because of the way the template works, two templates used back-to-back would be referenced under the same thing. To avoid this, write a "marker" under ''ref='' to give the different references. For example, "''ref=Dark Samus 1''" for the first logbook entry and "''ref=Dark Samus 2''" for the second entry. {{small|(such cases will probably be taken care of by staff or an experienced user)}}. It is automatically set to "''Logbook [Entry Name]''" and can be used later on in the page as such.
 
<br />
:For the game input, a particular 2-3 character code should be written, found here:
*'''Input - Game'''
**mp1 - {{mp1}}
**mph - {{mph}}
**mp2 - {{mp2}}
**mp3 - {{mp3}}


==Code==
'''Full code <small>(paste onto page)</small>:'''
'''Full code <small>(paste onto page)</small>:'''
<pre>
<pre>
{{logbookdata
{{logbook
|name=
|name=
|entry=
|entry=
Line 65: Line 44:
'''Basic code <small>(paste onto page)</small>:'''
'''Basic code <small>(paste onto page)</small>:'''
<pre>
<pre>
{{logbookdata
{{logbook
|name=
|name=
|entry=
|entry=
Line 74: Line 53:
}}
}}
</pre>
</pre>
==Usage==
This template allows us to display the logbook entries for various enemies and objects in the ''Metroid Prime'' games (scan data should be added using the <nowiki>{{</nowiki>[[:Template:Scan|Scan]]<nowiki>}}</nowiki> template). This is an extremely important template, but it is somewhat abstract to use. It has the following parameters, some of which will hardly ever be used and you probably will not ever have to deal with them. If you have logbook info but cannot use the template, ask an [[Metroid Wiki:Staff and Contact|administrator]] or an experienced user for assistance.
*'''''Name:''''' Entry Name <small>(e.g. "Beetle" for Beetle's Logbook entry)</small>.
*'''''Entry:''''' Text that appears in the game's logbook. Write it out exactly as written in the logbook, even if it has spelling or grammatical errors. Automatically cites the source.
*'''''Game:''''' Abbreviation for game <small>(see below)</small>.
*'''''Location:''''' The first location the scan appeared.
*'''''Image:''''' The image displayed. If multiple images appear, place the image that appears to the right in this slot.
*'''''Imageleft:''''' The image that appears to the left, if one exists. Otherwise, leave blank.
*'''''Clear:''''' (''noclear'', ''left'', ''right'', or ''both'') Place "''none''" here if no [[Template:Clear|clear]] should be used. "''left''", "''right''", or "''both''" also work to signify which direction the clear should be placed. Be sure the preview when using this parameter.
*'''''Position:''''' (''top'', ''mid'', or ''bottom'') May be used to stack multiple Logbook templates.
*'''''One-Time Scan:''''' This parameter should be used when a scan is available for a limited time in-game. It makes a small [[:File:Metroid Icon.png|Metroid icon]] appear on the template, signifying that the entry is a limited scan. Remove "''onetime=''" if this does not apply.
*'''''Reference:''''' ("''none''") This one is '''extremely important'''. The Logbook templates automatically cite themselves, but certain cases can prevent this from functioning properly. For ref=, type "''ref=none''" to remove the reference function from that particular logbook entry. If this is done, add it in manually using the <nowiki>{{</nowiki>[[:Template:Cite|Cite]]<nowiki>}}</nowiki> template. Because of the way the template works, two templates used back-to-back would be referenced under the same thing. To avoid this, write a "marker" under ''ref='' to give the different references. For example, "''ref=Dark Samus 1''" for the first logbook entry and "''ref=Dark Samus 2''" for the second entry {{small|(such cases will probably be taken care of by staff or an experienced user)}}. It is automatically set to "''Logbook [Entry Name]''" and can be used later on in the page as such.
*For the game input, a particular 2-3 character code should be written, found here:
**mp1 - {{mp1}}
**mph - {{mph}}
**mp2 - {{mp2}}
***mp2bonus - <span class="mp2">''[[Metroid Prime 2: Echoes Bonus Disc]]''</span>
**mp3 - {{mp3}}


<span style="display:none"><references /></span>
<span style="display:none"><references /></span>


[[Category:Logbook Templates|{{PAGENAME}}]]</noinclude>
[[Category:Logbook Templates]]</noinclude>

Latest revision as of 20:35, 18 April 2023

Logbook entry from a Metroid Prime game: Logbook
{{{entry}}}[1]

Code[edit source]

Full code (paste onto page):

{{logbook
|name=
|entry=
|game=
|location=
|image=
|imageleft=
|clear=
|position=
|onetime=
|ref=
}}

Basic code (paste onto page):

{{logbook
|name=
|entry=
|game=
|location=
|image=
|imageleft=
}}

Usage[edit source]

This template allows us to display the logbook entries for various enemies and objects in the Metroid Prime games (scan data should be added using the {{Scan}} template). This is an extremely important template, but it is somewhat abstract to use. It has the following parameters, some of which will hardly ever be used and you probably will not ever have to deal with them. If you have logbook info but cannot use the template, ask an administrator or an experienced user for assistance.

  • Name: Entry Name (e.g. "Beetle" for Beetle's Logbook entry).
  • Entry: Text that appears in the game's logbook. Write it out exactly as written in the logbook, even if it has spelling or grammatical errors. Automatically cites the source.
  • Game: Abbreviation for game (see below).
  • Location: The first location the scan appeared.
  • Image: The image displayed. If multiple images appear, place the image that appears to the right in this slot.
  • Imageleft: The image that appears to the left, if one exists. Otherwise, leave blank.
  • Clear: (noclear, left, right, or both) Place "none" here if no clear should be used. "left", "right", or "both" also work to signify which direction the clear should be placed. Be sure the preview when using this parameter.
  • Position: (top, mid, or bottom) May be used to stack multiple Logbook templates.
  • One-Time Scan: This parameter should be used when a scan is available for a limited time in-game. It makes a small Metroid icon appear on the template, signifying that the entry is a limited scan. Remove "onetime=" if this does not apply.
  • Reference: ("none") This one is extremely important. The Logbook templates automatically cite themselves, but certain cases can prevent this from functioning properly. For ref=, type "ref=none" to remove the reference function from that particular logbook entry. If this is done, add it in manually using the {{Cite}} template. Because of the way the template works, two templates used back-to-back would be referenced under the same thing. To avoid this, write a "marker" under ref= to give the different references. For example, "ref=Dark Samus 1" for the first logbook entry and "ref=Dark Samus 2" for the second entry (such cases will probably be taken care of by staff or an experienced user). It is automatically set to "Logbook [Entry Name]" and can be used later on in the page as such.



  1. "{{{entry}}}" — Logbook entry ([[|Invalid game]])