Template:Infobox: Difference between revisions
(adding documentation in noinclude) |
(adding to noinclude about how this works) |
||
Line 1: | Line 1: | ||
<noinclude>This is our initial practice infobox template. It should take the page title as its title, it has room for an image, | <noinclude>This is our initial practice infobox template. It should take the page title as its title, it has room for an image, etc. | ||
The template offers the fields name, age, hometown, sign, and blood type as example fields. </noinclude> | The template offers the fields infobox-title, infobox-image, name, age, hometown, sign, and blood type as example fields. | ||
I think the if statement looking for a param1 is simple logic saying that if there's another parameter listed at the end it interprets that as the thing coming up next. But I'm not sure. </noinclude> | |||
<div class="infobox"> | <div class="infobox"> | ||
<div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | <div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| |
Revision as of 21:37, 25 April 2024
This is our initial practice infobox template. It should take the page title as its title, it has room for an image, etc.
The template offers the fields infobox-title, infobox-image, name, age, hometown, sign, and blood type as example fields.
I think the if statement looking for a param1 is simple logic saying that if there's another parameter listed at the end it interprets that as the thing coming up next. But I'm not sure.
Infobox