Phial:Infobox Parts: Difference between revisions
More actions
m Esbylion moved page Template:Infobox to Phial:Infobox Parts without leaving a redirect |
No edit summary |
||
| Line 1: | Line 1: | ||
This is a collection of infobox parts. You can create new infoboxes using these, by pasting them into a new template in the order you want them, and wrapping the whole thing in the <nowiki><dl></nowiki> tag directly below. | This is a collection of infobox parts. You can create new infoboxes using these, by pasting them into a new template in the order you want them, and wrapping the whole thing in the <nowiki><dl></nowiki> tag directly below. | ||
You will need to replace any instance of asterisks ( | You will need to replace any instance of asterisks (*) with the name of the field you want to use the element for. Names must be unique to each element within a given infobox, and are used to fill in the infobox from the page. | ||
Start with this. It should wrap the entire infobox, meaning the <nowiki></dl></nowiki> tag should go after everything else in the template, as it does here. | Start with this. It should wrap the entire infobox, meaning the <nowiki></dl></nowiki> tag should go after everything else in the template, as it does here. | ||
| Line 11: | Line 11: | ||
This is for if you want the infobox to have a title. Infoboxes generally don't need titles, unless the thing the page is about has a title that can be translated. | This is for if you want the infobox to have a title. Infoboxes generally don't need titles, unless the thing the page is about has a title that can be translated. | ||
* = the main title, big, bold and embellished. | <nowiki>*</nowiki> = the main title, big, bold and embellished. | ||
** = translations of the main title ( or otherwise alternate names ). | <nowiki>**</nowiki> = translations of the main title ( or otherwise alternate names ). | ||
<pre> | <pre> | ||
{{#if:{{{|}}} | {{#if:{{{|}}} | ||
| Line 23: | Line 23: | ||
<dl class="infobox info-wrapper"><templatestyles src="infobox.css"/> | <dl class="infobox info-wrapper"><templatestyles src="infobox.css"/> | ||
<dt class="infobox info-title"> | <dt class="infobox info-title">Main Title</dt> | ||
<dd class="infobox info-name"> | <dd class="infobox info-name">Alternative Name</dd> | ||
</dl> | </dl> | ||
Revision as of 01:37, 17 November 2025
This is a collection of infobox parts. You can create new infoboxes using these, by pasting them into a new template in the order you want them, and wrapping the whole thing in the <dl> tag directly below.
You will need to replace any instance of asterisks (*) with the name of the field you want to use the element for. Names must be unique to each element within a given infobox, and are used to fill in the infobox from the page.
Start with this. It should wrap the entire infobox, meaning the </dl> tag should go after everything else in the template, as it does here.
<dl class="infobox info-wrapper"><templatestyles src="infobox.css"/> Everything else goes here. </dl>
This is for if you want the infobox to have a title. Infoboxes generally don't need titles, unless the thing the page is about has a title that can be translated. * = the main title, big, bold and embellished. ** = translations of the main title ( or otherwise alternate names ).
{{#if:{{{|}}}
|<dt class="infobox info-title">{{{name}}}</dt>
}}
{{#if:{{{***|}}}
|<dd class="infobox info-name">{{{altname}}}</dd>
}}
- Main Title
- Alternative Name
</nowiki>