0

How Wikipedia convert wikitext of infobox to display on web page?

For example, Barack Obama's wiki, when View source, we can see {{Infobox officeholder template, and below is snippet of this infobox

|birth_name = Barack Hussein Obama II
|birth_date = {{birth date and age|mf=yes|1961|8|4}}
|birth_place = [[Honolulu]], [[Hawaii]], U.S.
|nationality = American
|party = [[Democratic Party (United States)|Democratic]]

What I'm interesting is that how Wikipedia display nationality as Nationality on web page

also party as Political party

birth_name, birth_date, birth_place as Born

icycandy
  • 1,193
  • 2
  • 12
  • 20

1 Answers1

3

It is made through the template Infobox officeholder. If you look at the source, you can see how the code is constructed.

Ainali
  • 1,613
  • 13
  • 23
  • I'm still not able to figure out how `birth_name`, `birth_date`, `birth_place` display as `Born`. Search [the source](https://en.wikipedia.org/w/index.php?title=Template:Infobox_officeholder&action=edit), `Born` not found. – icycandy Aug 16 '14 at 05:48
  • 2
    That is because the template include another template, there you can find it: https://en.wikipedia.org/w/index.php?title=Template:Infobox_officeholder/Personal_data&action=edit – Ainali Aug 16 '14 at 07:15