#Infoboxes/templates
7 messages · Page 1 of 1 (latest)
rule 1: don't copy paste from Wikipedia, big mistake
here's the guide, in short - you better make a similar infobox via PortableInfobox extension
[[Infoboxes]]
thank you for the help, I've been working around with the info in the aeticle since you've sent me it - I've settled on Portable Infobox, but I'm struggling to learn the code. I'm looking at the fandom links under "cored manually."
I see all this code:
<infobox layout="stacked">
<title source="name">
<default>{{PAGENAME}}</default>
</title>
<image source="image" />
<data source="parameter-1">
<label>Label 1</label>
</data>
<data source="parameter-2">
<label>Label 2</label>
</data>
</infobox>
But I'm not sure how to reformat it to fit my needs (country information.) What parts do I replace with the values and labels?
Thank you for the help!
<label>Label 1</label>
</data>```
this code block makes up one line in an infobox, for example if i want a name field i would write it like this:
```<data source="name">
<label>Name</label>
</data>```
and when using the template on a page, i would write it like this:
```{{MyInfobox
| name= John Guy
...
}}```
<data source="name"> = starts a new line in an infobox and the name parameter is assigned to it
<label>Name</label> = the line's title or label, to let you know what the field is about
</data> = closes the code block