Navigation menu

Template:Logbook: Difference between revisions

From Metroid Wiki
(progress)
m (cleanup)
 
(58 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div class="NavFrame" valign="top" align="left" style="{{round|20px}} {{background|neutral}} {{border|2}}" >
{{#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}}" >
<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;">
does header belong here?</div>
{| style="padding:0px; width:100%; border:0px solid; margin:0px;"
<div class="NavContent" style="padding:0px">
{{#if: {{{location|}}} {{{onetime|}}} |
{| style="{{round}} {{background}} {{border}}; padding:0px; width:100%"
{{!}} {{#if: {{{imageleft|}}}|colspan="3"|{{#if:{{{image|}}}|colspan="2"|colspan="1"}}}} style="text-align:left; padding-left:10%" {{!}} {{#if: {{{location|}}} |'''First Location:'''  {{{location|}}} | }}
|content or this
{{!}} {{#if: {{{imageleft|}}}|colspan="3"|{{#if:{{{image|}}}|colspan="2"|colspan="1"}}}} align="right" {{!}} {{#if: {{{onetime|}}} | '''Limited Scan'''| }}}}
|-
{{#if: {{{imageleft|}}}|
{{!}} colspan="2" width="20%" style="padding:0px; {{background}} {{border}} {{roundl}}" {{!}}
{{{!}} style="text-align:center; padding:5px; width:100%;"
{{!}} {{{imageleft|}}}
{{!}}}
}}
| 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}}}} }}" |
{| style="text-align:center; padding:5px; width:100%;"
| <i>{{{entry}}}</i>{{#if:{{{ref|}}}{{{position|}}}|{{void}}|<ref name="Logbook">{{#var:Logbook Ref}}</ref>}}
|}
{{#if: {{{image|}}}|
{{!}} colspan="2" width="20%" style="padding:5px; {{background}} {{border}} {{roundr}}" {{!}}
{{{!}} style="text-align:center; padding:0px; width:100%;"
{{!}} {{{image|}}}
{{!}}}
}}
|}
|}
</div></div>
{{clear|{{{clear|left}}}}}</div></div><noinclude>


<!--
==Code==
<div class="NavFrame" valign="top" align="left" style="{{#switch: {{lc:{{{roundtype|}}}|1|1st|top={{roundt|20px}} |2|2nd|mid|middle={{round|0px}} |last|final|bottom={{roundb|20px}}}} {{border|2}} {{background|neutral}} width:55%; float:left;"><div class="NavHead" style="{{round}} font-size:13px; text-align:center; color: #d2d2d2; {{border}} {{background}}">[[Logbook]] Entry {{#switch: {{{gameabbrev|}}}|mp1|Metroid Prime= from {{mp1}}|mp2|Metroid Prime 2: Echoes= from {{mp2}}|mp3|Metroid Prime 3: Corruption= from {{mp3}}|mph|hu|Metroid Prime Hunters= from {{mph}}}}: "<b><i>{{{name|{{PAGENAME}}}}}</i></b>"</div>
'''Full code <small>(paste onto page)</small>:'''
<div class="NavContent" style="{{round}} font-weight:normal; display:all;">
<pre>
<div class="messagebox" style="{{round}} float: left;">
{{logbook
{| cellpadding=3
|name=
{{#if:{{{imageleft|}}}|
|entry=
{{!}} cellpadding=3 style="width:7em; {{roundl}} {{border}} {{background}}" {{!}} {{{imageleft|}}}}}
|game=
| style="{{#if:{{{image|}}}|{{#if:{{{imageleft|}}}|{{round|0px}}|{{roundl}}}}|{{#if:{{{imageleft|}}}|{{roundr}}|{{round}}}}}} width:{{#if:{{{image|}}}|{{#if:{{{imageleft|}}}|36em|43em}}|{{#if:{{{imageleft|}}}|43em|50em}}}}; {{border}} {{background}}" | <i>{{{entrytext}}}</i>
|location=
{{#if:{{{image|}}}|
|image=
{{!}} cellpadding=3 style="width:7em; {{roundr}} {{border}} {{background}}" {{!}} {{{image|}}}}}
|imageleft=
|}</div></div></div>
|clear=
{{#if: {{{clear|}}}||<br clear="left">}}
|position=
<br/><noinclude>
|onetime=
|ref=
}}
</pre>


-->
'''Basic code <small>(paste onto page)</small>:'''
<pre>
{{logbook
|name=
|entry=
|game=
|location=
|image=
|imageleft=
}}
</pre>


==Usage==
==Usage==
This template allows us to display the logbook entries for various enemies and objects in the Metroid Prime games.
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>
*'''''Name:''''' Entry Name <small>(e.g. "Beetle" for Beetle's Logbook entry)</small>.
*'''Entrytext:''' Text that appears in the game's logbook. Follow this with the Cite template <small><nowiki>(ie. "Entrytext"<ref>{{cite|"Entrytext"|Logbook|"game"}}</ref>)</nowiki></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>
*'''''Game:''''' Abbreviation for game <small>(see below)</small>.
*'''Image:''' The image displayed, if more than one image appear, place the image that appears to the right in this slot
*'''''Location:''''' The first location the scan appeared.
*'''Imageleft:''' The image that appears to the left, if there is none, don't insert anything
*'''''Image:''''' The image displayed. If multiple images appear, place the image that appears to the right in this slot.
*'''Clear:''' Place "noclear" here if no clear should be used <small>(don't worry about this)</small>
*'''''Imageleft:''''' The image that appears to the left, if one exists. Otherwise, leave blank.
*'''Roundtype:''' The type of roundness used in the overall box <small>(don't worry about this either)</small>
*'''''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.


The entry must be [[Template:Cite|cited]] and should appear as
 
<br>
*For the game input, a particular 2-3 character code should be written, found here:
:For the game input, a particular 2-3 character code should be written, found here:
*'''Input - Game'''
**mp1 - {{mp1}}
**mp1 - {{mp1}}
**mph - {{mph}}
**mph - {{mph}}
**mp2 - {{mp2}}
**mp2 - {{mp2}}
***mp2bonus - <span class="mp2">''[[Metroid Prime 2: Echoes Bonus Disc]]''</span>
**mp3 - {{mp3}}
**mp3 - {{mp3}}




'''Blank code <small>(paste onto page)</small>:'''
<span style="display:none"><references /></span>
<pre>
 
{{logbook
[[Category:Logbook Templates]]</noinclude>
|name=
|entrytext=
|gameabbrev=
|image=
|imageleft=
}}
</pre>
[[Category:Logbook Templates|{{PAGENAME}}]]</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]])