Template:Infobox: Difference between revisions
Template page
More actions
Admin Jeremy (talk | contribs) No edit summary |
Admin Jeremy (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Infobox/styles.css" /> | <templatestyles src="Template:Infobox/styles.css" /> | ||
{{#invoke:Infobox|render}} | {{#invoke:Infobox|render}} | ||
<noinclude> | |||
= Basic infobox usage = | |||
Piñata Journal's infobox template is very robust and extensible. The most basic infobox can be created using the following template text: | |||
<nowiki>{{Infobox</nowiki> | |||
| name = Example | |||
| image = Question mark icon.png | |||
}} | |||
This creates the following infobox: | |||
{{Infobox | |||
| name = Example | |||
| image = Question mark icon.png | |||
}} | |||
= Journal description = | |||
Infoboxes can also accept parameters for journal descriptions that will appear below the image. See below: | |||
<nowiki>{{Infobox</nowiki> | |||
| name = Example | |||
| image = Question mark icon.png | |||
| journal_entry = Example journal entry | |||
}} | |||
{{Infobox | |||
| name = Example | |||
| image = Question mark icon.png | |||
| journal_entry = Example journal entry}} | |||
== Journal description across multiple games == | |||
Infoboxes can also surface journal entries from multiple different games. See below: | |||
<nowiki>{{Infobox</nowiki> | |||
| name = Example | |||
| image = Question mark icon.png | |||
| journal_vp1 = Example VP1 journal entry | |||
| journal_pp = Example PP journal entry | |||
| journal_tip = Example TIP journal entry | |||
}} | |||
{{Infobox | |||
| name = Example | |||
| image = Question mark icon.png | |||
| journal_vp1 = Example VP1 journal entry | |||
| journal_pp = Example PP journal entry | |||
| journal_tip = Example TIP journal entry | |||
}} | |||
= Additional parameters = | |||
Infoboxes can also take parameters beyond the usual journal entry text: | |||
<nowiki>{{Infobox</nowiki> | |||
| name = Example | |||
| image = Question mark icon.png | |||
| example_parameter_1 = Example parameter 1 | |||
| example_parameter_2 = Example parameter 2 | |||
| example_parameter_3 = Example parameter 3 | |||
}} | |||
{{Infobox | |||
| name = Example | |||
| image = Question mark icon.png | |||
| example_parameter_1 = Example parameter 1 | |||
| example_parameter_2 = Example parameter 2 | |||
| example_parameter_3 = Example parameter 3 | |||
}} | |||
</noinclude> | |||
Latest revision as of 17:11, 28 February 2026
| Infobox |
|---|
Basic infobox usage
Piñata Journal's infobox template is very robust and extensible. The most basic infobox can be created using the following template text:
{{Infobox
| name = Example
| image = Question mark icon.png
}}
This creates the following infobox:
| Example | |
|---|---|
Journal description
Infoboxes can also accept parameters for journal descriptions that will appear below the image. See below:
{{Infobox
| name = Example
| image = Question mark icon.png
| journal_entry = Example journal entry
}}
| Example | |
|---|---|
| Example journal entry |
Journal description across multiple games
Infoboxes can also surface journal entries from multiple different games. See below:
{{Infobox
| name = Example
| image = Question mark icon.png
| journal_vp1 = Example VP1 journal entry
| journal_pp = Example PP journal entry
| journal_tip = Example TIP journal entry
}}
| Example | |
|---|---|
Viva PiñataExample VP1 journal entry Trouble in ParadiseExample TIP journal entry Pocket ParadiseExample PP journal entry |
Additional parameters
Infoboxes can also take parameters beyond the usual journal entry text:
{{Infobox
| name = Example
| image = Question mark icon.png
| example_parameter_1 = Example parameter 1
| example_parameter_2 = Example parameter 2
| example_parameter_3 = Example parameter 3
}}
| Example | |
|---|---|
| Example Parameter 1 | Example parameter 1 |
| Example Parameter 2 | Example parameter 2 |
| Example Parameter 3 | Example parameter 3 |
