#Infoboxes/templates

7 messages · Page 1 of 1 (latest)

winter ravine
#

Hello! I am making a wiki of different information about countries, and I started with the US, by copying the Wikipedia syntax and it came out as this. I believe I need to make the templates needed for the infobox but I'm not sure how to go about that.

Thanks!

echo fjord
#

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]]

icy thornBOT
winter ravine
# echo fjord here's the guide, in short - you better make a similar infobox via PortableInfob...

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!

topaz eagle
#
    <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