Template:Infobox: Difference between revisions
(more notes to self about testing this template.) |
(Documenting where I have gotten to with this template) |
||
Line 3: | Line 3: | ||
The template offers the fields infobox-title, infobox-image, name, age, hometown, sign, and blood type as example fields. | The template offers the fields infobox-title, infobox-image, name, age, hometown, sign, and blood type as example fields. | ||
Infobox code itself starts with the if statement after the table class element, and defines the first parameter to fill out in the infobox, in this case age. | |||
In this code, infobox-title is doing the work of a name field, so I took it out, but we could define a separate name field. | |||
At this point I have all of the parameters, Age, Hometown, Sign, Type loading. | |||
Infobox-image isn't loading, however. And I am still trying to understand how the infobox-title part and PAGENAME in brackets actually work, as well as the image stuff. That having been said much of this template is working and is modifiable to create other infoboxes! Back to the template syntax mines I go! | |||
</noinclude> | </noinclude> |
Revision as of 23:07, 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.
Infobox code itself starts with the if statement after the table class element, and defines the first parameter to fill out in the infobox, in this case age.
In this code, infobox-title is doing the work of a name field, so I took it out, but we could define a separate name field.
At this point I have all of the parameters, Age, Hometown, Sign, Type loading.
Infobox-image isn't loading, however. And I am still trying to understand how the infobox-title part and PAGENAME in brackets actually work, as well as the image stuff. That having been said much of this template is working and is modifiable to create other infoboxes! Back to the template syntax mines I go!