Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.

Difference between revisions of "Help:Infoboxes"

From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Jump to navigationJump to search
1,753 bytes added ,  21:47, 28 February 2010
no edit summary
Line 43: Line 43:




Each row in the table has 2 cells: Info#name and Info#details, where # is the row #. [[Template:InfoBoxDetails]] has room for 5 rows, and [[Template:infoboxentry]] can dynamically add a row for each time it's used. [[Template:InfoBoxBegin]] and [[Template:InfoBoxEnd]] complete the box with all the needed info.  
Each row in the table has 2 cells: Info#name and Info#details, where # is the row number. [[Template:InfoBoxDetails]] has room for 5 rows, and [[Template:infoboxentry]] can dynamically add a row for each time it's used. [[Template:InfoBoxBegin]] and [[Template:InfoBoxEnd]] complete the box with all the needed info.  


== Parameters ==
== Parameters ==
Line 51: Line 51:


Lets take a look at another example.
Lets take a look at another example.
== CharacterInfobox template ==
at the time of this writing, CharacterInfobox looked like this:
<pre>
{{InfoBoxBegin | class = {{{class|}}} Character | caption = [[Lylat Wiki:Characters|Character]] | style= {{{style|}}} }}
{{!-}}
{{!}} colspan=2 {{!}}
{{#if: {{{picture|}}} | [[File:{{{picture}}}|100px]] | Have an image of this character? Why not [[Special:Upload|upload]] it? }}
{{!-}}
! colspan=2 {{!}} Details
{{InfoBox
| Info1name = [[name]]
| Info1details = {{{name|}}}
| Info2name = [[home planet]]
| Info2details = {{{home_planet|}}}
| Info3name = [[role]]
| Info3details = {{{role|}}}
| Info4name = [[premier game]]
| Info4details = {{{premier_game|}}}
| Info5name = [[affiliations]]
| Info5details = {{{affiliations|}}}
}}
<!-- {{infoboxentry}} -->
{{InfoBoxEnd}}
</pre>
and came out like this
{{InfoBoxBegin | class = {{{class|}}} Character | caption = [[Lylat Wiki:Characters|Character]] | style= {{{style|}}} }}
{{!-}}
{{!}} colspan=2 {{!}}
{{#if: {{{picture|}}} | [[File:{{{picture}}}|100px]] | Have an image of this character? Why not [[Special:Upload|upload]] it? }}
{{!-}}
! colspan=2 {{!}} Details
{{InfoBox
| Info1name = [[name]]
| Info1details = {{{name|}}}
| Info2name = [[home planet]]
| Info2details = {{{home_planet|}}}
| Info3name = [[role]]
| Info3details = {{{role|}}}
| Info4name = [[premier game]]
| Info4details = {{{premier_game|}}}
| Info5name = [[affiliations]]
| Info5details = {{{affiliations|}}}
}}
<!-- {{infoboxentry}} -->
{{InfoBoxEnd}}
Becuase of the way we set up parameters, a user of the characterinfobox only needs to place this in the artilce:
<pre>
{{CharacterInfoBox
| name =
| class =
| style = 
| picture =
| name =
| home_planet =
| role =
| premier_game =
| affiliations =
}}
</pre>

Navigation menu