Template:Location infobox: Difference between revisions

From WikiBound, your community-driven EarthBound/Mother wiki
Jump to navigationJump to search
No edit summary
m (Text replacement - "align="center" " to "align="center" {{html5}}")
Line 1: Line 1:
{| style="background:#{{darkcolor|{{{color|locations}}}}}; width: 25%; border: 2px solid #{{darkcolor|{{{color|locations}}}}};" cellpadding="2" class="roundy right"
{| style="background:#{{darkcolor|{{{color|locations}}}}}; width: 25%; border: 2px solid #{{darkcolor|{{{color|locations}}}}};" cellpadding="2" class="roundy right"
|-
|-
| align="center" | <big><big>'''{{{enname}}}'''</big></big><br><span lang="ja">'''{{{jpkana}}}'''</span> ''{{{jptrans}}}''
| align="center" {{html5}}| <big><big>'''{{{enname}}}'''</big></big><br><span lang="ja">'''{{{jpkana}}}'''</span> ''{{{jptrans}}}''
|- align="center"
|- align="center"
| style="background: #FFFFFF;" class="roundy" | {{scrollbar||3}}[[File:{{{image}}}|{{{size}}}]]{{#ifeq: {{{captionyn|no}}}|yes|<br><small>{{{caption}}}</small>}}
| style="background: #FFFFFF;" class="roundy" | {{scrollbar||3}}[[File:{{{image}}}|{{{size}}}]]{{#ifeq: {{{captionyn|no}}}|yes|<br><small>{{{caption}}}</small>}}
{{#ifeq: {{{regionyn|no}}}|yes|{{!}}-
{{#ifeq: {{{regionyn|no}}}|yes|{{!}}-
! style="background: #{{lightcolor|{{{color|locations}}}}}; {{roundytop|20px}}" align="center" {{!}} '''Region'''
! style="background: #{{lightcolor|{{{color|locations}}}}}; {{roundytop|20px}}" align="center" {{html5}}{{!}} '''Region'''
{{!}}-
{{!}}-
{{!}} style="background: #FFFFFF; {{roundybottom|20px}}" align="center" {{!}} [[{{{region}}}]]}}
{{!}} style="background: #FFFFFF; {{roundybottom|20px}}" align="center" {{html5}}{{!}} [[{{{region}}}]]}}
|-
|-
! style="background: #{{lightcolor|{{{color|locations}}}}}; {{roundytop|20px}}" align="center" | '''Connected areas'''
! style="background: #{{lightcolor|{{{color|locations}}}}}; {{roundytop|20px}}" align="center" {{html5}}| '''Connected areas'''
|-
|-
| style="background: #FFFFFF; {{roundybottom|20px}}" align="center" | {{{connected}}}
| style="background: #FFFFFF; {{roundybottom|20px}}" align="center" {{html5}}| {{{connected}}}
{{#ifeq: {{{musicyn|no}}}|yes|{{!}}-
{{#ifeq: {{{musicyn|no}}}|yes|{{!}}-
! style="background: #{{lightcolor|{{{color|locations}}}}}; {{roundytop|20px}}" align="center" {{!}} '''Music'''
! style="background: #{{lightcolor|{{{color|locations}}}}}; {{roundytop|20px}}" align="center" {{html5}}{{!}} '''Music'''
{{!}}-
{{!}}-
{{!}} style="background: #FFFFFF; {{roundybottom|20px}}" align="center" {{!}} {{{music}}}}}
{{!}} style="background: #FFFFFF; {{roundybottom|20px}}" align="center" {{html5}}{{!}} {{{music}}}}}
|}
|}
<noinclude>{{doc}}[[Category:Infobox templates]]</noinclude>
<noinclude>{{doc}}[[Category:Infobox templates]]</noinclude>

Revision as of 18:52, 13 May 2020

align="center"| {{{enname}}}
{{{jpkana}}} {{{jptrans}}}

[[File:{{{image}}}|{{{size}}}]]

style="background: #cafbee; border-top-left-radius: 20px;border-top-right-radius: 20px;" align="center"| Connected areas
style="background: #FFFFFF; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; " align="center"| {{{connected}}}
{{Location infobox
|color=
|enname=
|jpkana=
|jptrans=
|image=
|size=
|captionyn=
|caption=
|regionyn=
|region=
|connected=
|musicyn=
|music=
}}

Color is out of the same options of M1, EB, M3, etc. as in other templates.

Captionyn and caption are optional. If you want a caption for the image, then put in "captionyn=yes", along with the desired caption in the caption field.

Region is similarly optional by "optionyn=yes/no", and when used, it is automatically in [[]] brackets. Connected, however, is not; this will need brackets and line breaks between area names.

The Music field is activated like the Region field. Link music titles when official ones exist, and if possible, use ones with the fewest conditions - songs specifically associated with the location in question.