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
7 bytes removed ,  22:09, 7 April 2020
no edit summary
m (Results May Vary moved page Lylat Wiki:Infoboxes to Help:Infoboxes without leaving a redirect: help namespace for consistency)
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
| title = Fruits
| title = Fruits
| picture = {{{picture|}}}
| picture = {{{picture|}}}
| picture_size = {{{picture_size}}}
| image_size = {{{picture_size}}}
| caption = {{{caption|}}}  
| caption = {{{caption|}}}  
| colors = Wiki
| colors = Wiki
Line 44: Line 44:
| title = Fruits
| title = Fruits
| picture = {{{picture|}}}
| picture = {{{picture|}}}
| picture_size = {{{picture_size}}}
| image_size = {{{picture_size}}}
| caption = {{{caption|}}}  
| caption = {{{caption|}}}  
| colors = Wiki
| colors = Wiki
Line 75: Line 75:


== Parameters ==
== Parameters ==
when using a infobox within another template, like [[Template:Infobox vehicle ]], 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:Infobox vehicle]], 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 actually uses the information. This is where the parameters with a variable 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?


Lets take a look at another example.
Lets take a look at another example.
Line 89: Line 89:
| title = Characters
| title = Characters
| picture = {{{picture|}}}
| picture = {{{picture|}}}
| picture_size = {{{picture_size|}}}
| image_size = {{{picture_size|}}}
| caption = {{{caption|}}}  
| caption = {{{caption|}}}  
| colors = Character
| colors = Character
Line 144: Line 144:
| title = Characters
| title = Characters
| picture = {{{picture|}}}
| picture = {{{picture|}}}
| picture_size = {{{picture_size|}}}
| image_size = {{{picture_size|}}}
| caption = {{{caption|}}}  
| caption = {{{caption|}}}  
| colors = Character
| colors = Character
8,161

edits

Navigation menu