Template:Course infobox: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{{title|{{PAGENAME}}}}}</span>'''
| align="center" colspan="2" bgcolor="#10274c" style="font-size:145%;" | '''<span style="color:white;">{{{title|{{PAGENAME}}}}}</span>'''
|-
|-
|align="center" colspan="2" | {{{image|300px}}}
|align="center" colspan="2" | {{{image|}}}
|- style="vertical-align: top"
|- style="vertical-align: top"
{{#if:{{{environment|}}}|{{!}}- style="vertical-align: top;"
|}
{{!}} '''Environment'''
{{!}} {{{environment}}}
|}}
|- style="vertical-align: top"
{{#if:{{{setting|}}}|{{!}}- style="vertical-align:top"
{{!}} '''Setting'''
{{!}} {{{setting}}}
|}}
|- style="vertical-align: top"
{{#if:{{{water|}}}|{{!}}- style="vertical-align:top"
{{!}} '''Water'''
{{!}} {{{Water}}}
|}}
{{{!}} class=width="100%" style="background: ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Objects
| {{#if: {{{yellow-coins|}}} {{{red-coins|}}} {{{blue-coins|}}} |
{{!}} '''Coins:'''
{{!}} style="text-align:center;" {{!}} {{#if: {{{yellow-coins|}}} [[File:Yellow_Coin.gif|link=Yellow_coin|20px]] &nbsp;&times;{{{yellow-coins}}} }} | {{#if: {{{red-coins|}}} [[File:Red_Coin.gif|link=Red_coin|20px]] &nbsp;&times;{{{red-coins}}} }} | {{#if: {{{blue-coins|}}} [[File:Blue_Coin.gif|link=Blue_coin|20px]] &nbsp;&times;{{{blue-coins}}} | }}
}}}
<!-- {{!}} '''Enemies:'''-->
<!-- {{!}} style="text-align:center;" {{!}} {{#if: {{{scuttlebug|}}} [[File:Scuttlebug_small.png]] &nbsp;&times;{{{yellow-coins}}} }} | ... -->
<!-- The next person who edits this should add all the enemies to this template-->
<br>
{{!}} '''Objects:'''
{{!}} style="text-align:center;" {{!}} {{#if: {{{star|}}} [[File:Star.gif|link=Star|20px]] &nbsp;&times;{{{star}}} }} | {{#if: {{{heart|}}} [[File:Spin_Heart.png|link=Spinning_heart|20px]] &nbsp;&times;{{{heart}}} }} |
<!-- The next person who edits this should add more objects to this template-->
<br>
{{{!}} class=width="100%" style="background: ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Course Photos
  {{!}}-
  {{!}} colspan="2" {{!}} [[File:Photo {{{file-name}}}.png|300px|center]]
  {{!}}-
}
{{{!}} class= width="100%" style="background: ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Course Overview
 
  {{!}}-
  {{!}} colspan="2" {{!}} [[File:{{{file-name}}} overview.png|300px|center]]
  {{!}}-
}
}
 
{{#ifeq:{{NAMESPACENUMBER}}|0|
{{#ifeq:{{NAMESPACENUMBER}}|0|
[[Category:Templates]]}}
[[Category:Courses]]}}
</includeonly><noinclude><div style="float:right"><pre>{{map_infobox
</includeonly><noinclude><div style="float:right"><pre>{{course_infobox
|title=
|title=
|image=
|image=
|environment=
|setting=
|water=
|yellow-coins=
|red-coins=
|blue-coins=
|related=
|found_in=
|expand=
}}</pre></div>
}}</pre></div>
*image &ndash; an image. Must use <code><nowiki>{{!}}</nowiki></code> for a <code>|</code> break symbol in image syntax. Automatically resized to 300x300
*image &ndash; an image. Must use <code><nowiki>{{!}}</nowiki></code> for a <code>|</code> break symbol in image syntax.
*title &ndash; default pagename, just in case can be changed
*title &ndash; default pagename, just in case can be changed
*environment &ndash; Course environment (Alpine, Desert, etc).
*setting &ndash; Course setting, as daytime and weather.
*water &ndash; Deep water present in course.
*yellow-coins &ndash; Number of yellow coins in the course
*red-coins &ndash; Number of red coins in the course
*blue-coins &ndash; Number of blue coins in the course
*star &ndash; Number of stars coins in the course
This template also automatically embeds course images if they are uploaded with the title "Photo (title of article)".png
This template also automatically embeds course overviews if they are uploaded with the title "(title of article) overview".png
<br clear="all"> [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
<br clear="all"> [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Revision as of 02:08, 10 June 2018

{{course_infobox
|title=
|image=
}}
  • image – an image. Must use {{!}} for a | break symbol in image syntax.
  • title – default pagename, just in case can be changed