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
44 bytes removed ,  03:15, 15 February 2013
m
Text replace - "v2.5" to ""
m (Text replace - "InfoBoxEntry v2.5" to "InfoBoxEntry")
m (Text replace - "v2.5" to "")
Line 35: Line 35:
<!-- {{InfoBoxEntry}} -->
<!-- {{InfoBoxEntry}} -->
{{!-}}
{{!-}}
{{!}} {{InfoBoxEnd v2.5
{{!}} {{InfoBoxEnd  
| name = WkiInfoBox v2.5
| name = WkiInfoBox  
| colors = Wiki
| colors = Wiki
}} {{tableend}}
}} {{tableend}}
Line 69: Line 69:
<!-- {{InfoBoxEntry}} -->
<!-- {{InfoBoxEntry}} -->
{{!-}}
{{!-}}
{{!}} {{InfoBoxEnd v2.5
{{!}} {{InfoBoxEnd  
| name = WkiInfoBox v2.5
| name = WkiInfoBox  
| colors = Wiki
| colors = Wiki
}} {{tableend}}
}} {{tableend}}


Each row in the table has 2 cells: Info#name and Info#details, where # is the row number. [[Template:InfoBoxBegin]] has room for 5 rows, and [[Template:InfoBoxEntry]] can dynamically add a row for each time it's used. [[Template:InfoBoxBegin]] 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]] 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 ==
when using a infobox within another template, like [[Template:VehicleInfoBox v2.5]], you can specify the name of each row to something related to related usage of the template. In our example above, We are expecting this particular infobox to be used on Fruit related pages; therefore we told the template we are inheriting that we want the 5 fields to be called: Colors, Taste, Baked, Salted and "related info".  
when using a infobox within another template, like [[Template:VehicleInfoBox ]], you can specify the name of each row to something related to related usage of the template. In our example above, We are expecting this particular infobox to be used on Fruit related pages; therefore we told the template we are inheriting that we want the 5 fields to be called: Colors, Taste, Baked, Salted and "related info".  


Now, being we are using multiple layers of embedding templates, we want to make sure the end user's information is pass through our template and up to the core infobox template that actaully uses the infomation. This is where the parameters with a varible on the end come in handy. They look like <nowiki>| Info4details = {{{salted|}}}</nowiki> and if the end user specifies a value for "salted", we take it and pass it along as "Info4details". Neat, isn't it?
Now, being we are using multiple layers of embedding templates, we want to make sure the end user's information is pass through our template and up to the core infobox template that actaully uses the infomation. This is where the parameters with a varible on the end come in handy. They look like <nowiki>| Info4details = {{{salted|}}}</nowiki> and if the end user specifies a value for "salted", we take it and pass it along as "Info4details". Neat, isn't it?
Line 122: Line 122:
}}
}}
{{!-}}
{{!-}}
{{!}} {{InfoBoxEnd v2.5
{{!}} {{InfoBoxEnd  
| name = CharacterInfoBox v2.5
| name = CharacterInfoBox  
| colors = Character
| colors = Character
}}{{tableend}}<includeonly>[[Category:{{{name}}}| ]]</includeonly><noinclude>
}}{{tableend}}<includeonly>[[Category:{{{name}}}| ]]</includeonly><noinclude>
Line 177: Line 177:
}}
}}
{{!-}}
{{!-}}
{{!}} {{InfoBoxEnd v2.5
{{!}} {{InfoBoxEnd  
| name = CharacterInfoBox v2.5
| name = CharacterInfoBox  
| colors = Character
| colors = Character
}}{{tableend}}
}}{{tableend}}
Line 186: Line 186:


<pre>
<pre>
{{CharacterInfoBox v2.5
{{CharacterInfoBox  
| picture =  
| picture =  
| caption =  
| caption =  
14,010

edits

Navigation menu