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
458 bytes added ,  04:15, 3 September 2010
no edit summary
Line 8: Line 8:
Our info box start off with 5 areas to be used, plus the ability to add more. For example:  
Our info box start off with 5 areas to be used, plus the ability to add more. For example:  
<pre>
<pre>
{{InfoBoxBegin v2.0
{{InfoBoxBegin v2.5
| class = {{{class|}}} Fruit wikitable
| class = {{{class|}}} Fruit wikitable
| title = Fruits
| title = Fruits
Line 27: Line 27:
| Info5details = {{{related_info|}}}
| Info5details = {{{related_info|}}}
}}
}}
{{InfoBoxEntry v2.0
{{!-}}
{{!}} {{InfoBoxEntry v2.5
| colors = Wiki
| colors = Wiki
| InfoName = Pie?
| InfoName = Pie?
Line 33: Line 34:
}}
}}
<!-- {{InfoBoxEntry}} -->
<!-- {{InfoBoxEntry}} -->
{{InfoBoxEnd v2.0
{{!-}}
| name = WkiInfoBox v2.0
{{!}} {{InfoBoxEnd v2.5
| name = WkiInfoBox v2.5
| colors = Wiki
| colors = Wiki
}}
}} {{tableend}}
</pre>
</pre>


comes out looking like:  
comes out looking like:  
{{InfoBoxBegin v2.0
{{InfoBoxBegin v2.5
| class = {{{class|}}} Fruit wikitable
| class = {{{class|}}} Fruit wikitable
| title = Fruits
| title = Fruits
Line 59: Line 61:
| Info5details = {{{related_info|}}}
| Info5details = {{{related_info|}}}
}}
}}
{{InfoBoxEntry v2.0
{{!-}}
{{!}} {{InfoBoxEntry v2.5
| colors = Wiki
| colors = Wiki
| InfoName = Pie?
| InfoName = Pie?
Line 65: Line 68:
}}
}}
<!-- {{InfoBoxEntry}} -->
<!-- {{InfoBoxEntry}} -->
{{InfoBoxEnd v2.0
{{!-}}
| name = WkiInfoBox v2.0
{{!}} {{InfoBoxEnd v2.5
| name = WkiInfoBox v2.5
| colors = Wiki
| colors = Wiki
}}
}} {{tableend}}


 
Each row in the table has 2 cells: Info#name and Info#details, where # is the row number. [[Template:InfoBoxBegin v2.5]] has room for 5 rows, and [[Template:InfoBoxEntry v2.5]] can dynamically add a row for each time it's used. [[Template:InfoBoxBegin v2.5]] and [[Template:InfoBoxEnd v2.5]] 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:InfoBoxBegin v2.0]] has room for 5 rows, and [[Template:InfoBoxEntry v2.0]] can dynamically add a row for each time it's used. [[Template:InfoBoxBegin v2.0]] and [[Template:InfoBoxEnd v2.0]] complete the box with all the needed info.  


== Parameters ==
== Parameters ==
Line 84: Line 87:


<pre>
<pre>
{{InfoBoxBegin v2.0
{{InfoBoxBegin v2.5
| class = {{{class|}}} Character color5  
| class = {{{class|}}} Character color5  
| title = Characters
| title = Characters
| picture = {{{picture|}}}
| picture = {{{picture|}}}
| picture_size = {{{picture_size}}}
| picture_size = {{{picture_size|}}}
| caption = {{{caption|}}}  
| caption = {{{caption|}}}  
| colors = Character  
| colors = Character
| style= {{{style|}}}
| style= {{{style|}}}
| teams = {{{teams}}}
| Info1name = name
| Info1name = name
| Info1details = {{{name}}} ({{{jname}}})
| Info1details = {{{name}}} {{#if:{{{jname|}}}|({{{jname|}}})}}
| Info2name = [[home planet]]
| Info2name = [[home planet]]
| Info2details = {{{home_planet|}}}
| Info2details = {{{home_planet|}}}
Line 104: Line 108:
}}
}}
{{!-}}
{{!-}}
{{#if: {{{alias|}}} |  
{{!}} {{#if: {{{alias|}}} |  
{{InfoBoxEntry v2.0
{{InfoBoxEntry v2.5
| colors = Character
| colors = Character
| InfoName = Alais
| InfoName = Alais
Line 111: Line 115:
}}
}}
| }}
| }}
{{InfoBoxEnd
{{!-}}
| name = CharacterInfoBox v2.0
{{!}} {{InfoBoxEntry v2.5
| colors = Character
| colors = Character
}}<includeonly>[[Category:{{{name}}}| ]]</includeonly><noinclude>
| InfoName = Teams
| InfoDetails = {{{teams}}}
}}
{{!-}}
{{!}} {{InfoBoxEnd v2.5
| name = CharacterInfoBox v2.5
| colors = Character
}}{{tableend}}<includeonly>[[Category:{{{name}}}| ]]</includeonly><noinclude>
 
 
 
 
 
 
 
 
 
 
 
 
 


{{doc}}{{auto-cat2|InfoBox Usage Templates|Character Templates}}</noinclude>
{{doc}}{{auto-cat2|InfoBox Usage Templates|Character Templates}}</noinclude>
</pre>
and came out like this  
and came out like this  
{{InfoBoxBegin v2.0
{{InfoBoxBegin v2.5
| class = {{{class|}}} Character color5  
| class = {{{class|}}} Character color5  
| title = Characters
| title = Characters
| picture = {{{picture|}}}
| picture = {{{picture|}}}
| picture_size = {{{picture_size}}}
| picture_size = {{{picture_size|}}}
| caption = {{{caption|}}}  
| caption = {{{caption|}}}  
| colors = Character  
| colors = Character
| style= {{{style|}}}
| style= {{{style|}}}
| teams = {{{teams}}}
| Info1name = name
| Info1name = name
| Info1details = {{{name}}} ({{{jname}}})
| Info1details = {{{name}}} {{#if:{{{jname|}}}|({{{jname|}}})}}
| Info2name = [[home planet]]
| Info2name = [[home planet]]
| Info2details = {{{home_planet|}}}
| Info2details = {{{home_planet|}}}
Line 140: Line 163:
}}
}}
{{!-}}
{{!-}}
{{#if: {{{alias|}}} |  
{{!}} {{#if: {{{alias|}}} |  
{{InfoBoxEntry v2.0
{{InfoBoxEntry v2.5
| colors = Character
| colors = Character
| InfoName = Alais
| InfoName = Alais
Line 147: Line 170:
}}
}}
| }}
| }}
{{InfoBoxEnd
{{!-}}
| name = CharacterInfoBox v2.0
{{!}} {{InfoBoxEntry v2.5
| colors = Character
| colors = Character
| InfoName = Teams
| InfoDetails = {{{teams}}}
}}
}}
{{!-}}
{{!}} {{InfoBoxEnd v2.5
| name = CharacterInfoBox v2.5
| colors = Character
}}{{tableend}}




 
Becuase of the way we set up parameters, a user of the characterinfobox only needs to place this in the article:
Becuase of the way we set up parameters, a user of the characterinfobox only needs to place this in the artilce:


<pre>
<pre>
{{CharacterInfoBox v2.0
{{CharacterInfoBox v2.5
| name =
| picture =  
| picture =  
| caption =  
| caption =  
| home_planet =
| name =
| role =
| home_planet =  
| role =  
| premier_game =  
| premier_game =  
| affiliations =  
| affiliations =  
| teams =
}}
}}
</pre>
</pre>
Line 175: Line 205:
| name = [[Peppy Hare]]
| name = [[Peppy Hare]]
| line = "Never give up. Trust your instincts. "  
| line = "Never give up. Trust your instincts. "  
| game = ''[[Star Fox 64]]''
| game = ''[[Star Fox 64]]''<ref>http://www.imdb.com/title/tt0241985/quotes</ref>
| ref = <ref>http://www.imdb.com/title/tt0241985/quotes</ref>
| ref =
}}
}}


== References ==
== References ==
<references />
<references />

Navigation menu