Wikipedia is an online encyclopedia that can be edited by anyone. It uses the wiki software MediaWiki and is governed by policies of neutral point of view, verifiability, and not including original research. The Wikimedia Foundation oversees Wikipedia and other wiki projects to support sharing knowledge freely.
2. Five Pillars
Wikipedia is an online encyclopedia
Wikipedia has a neutral point of view
Wikipedia is free content that anyone can edit and distribute
Wikipedians should interact in a respectful and civil manner
Wikipedia does not have firm rules
3. Policy
●Wikipedia is not a paper encyclopedia
●Wikipedia is not a dictionary
●Wikipedia is not a publisher of original thought
●Wikipedia is not a soapbox or means of promotion
●Wikipedia is not a mirror or a repository of links, images, or
media files
●Wikipedia is not a blog, webspace provider, social networking,
or memorial site
●Wikipedia is not a directory
●Wikipedia is not a manual, guidebook, textbook, or scientific
journal
●Wikipedia is not a crystal ball
●Wikipedia is not an indiscriminate collection of information
●Wikipedia is not censored
4. Policy
●Wikipedia is not a democracy
●Wikipedia is not a bureaucracy
●Wikipedia is not a battleground
●Wikipedia is not an anarchy
7. MediaWiki
MediaWiki is a popular free web-based wiki
software application.
It is developed by, and it runs, all the projects of the
Wikimedia Foundation, including Wikipedia,
Wiktionary, and Wikinews, as well as powering
many other wiki websites worldwide.
It is written in the PHP programming language and
uses a backend database.
10. MediaWiki
Page content is generated through the use of a
markup language and limited HTML.
Examples:
'''Bold''' : Bold
''Italics'' : Italics
[[Linux]] : link to article "Linux"
[http://www.gnu.org/ GNU Project] : External link
11. System architecture
Wikipedia currently runs on dedicated clusters of Linux
servers (mainly Ubuntu), with a few OpenSolaris
machines for ZFS. As of December 2009, there were
300 in Florida and 44 in Amsterdam
28. Template code:
You gave {{{par1|lion}}} and {{{par2|tiger}}}.
Article code:
{{mybox| par2 = mule }}
Article output:
You gave lion and mule.
29. Template code:
You gave {{{par1|{{{1}}} }}} and
{{{par1|{{{1|lion}}} }}}.
Article code:
{{mybox| tiger | par2 = mule }}
Article output:
You gave tiger and mule.
30. Template code:
{| class=”infobox”
| First name
| {{{par1|}}}
|-
| Last name
| {{{par2|}}}
|}
Article code:
{{mybox| par1 = King | par2 = Kong }}
Article output:
First name King
Last name Kong
31. Template code:
{| class=”infobox”
| First name
| {{{par1|}}}
|-
| Last name
| {{{par2|}}}
|}
Article code:
{{mybox| par1 = | par2 = Kong }}
Article output:
First name
Last name Kong
32. {{#if: test string | value if true | value if false }}
{{#if: {{{par1|}}} | value if true | value if false }}
Remember: When checking infobox parameters, default value
should always be empty (=false).
33. Template code:
{| class=”infobox”
{{#if: {{{par1|}}} |
{{!}} First name
{{!}} {{{par1}}}
}}
|-
{{#if: {{{par2|}}} |
{{!}} Last name
{{!}} {{{par2}}}
}}
|}
Article code:
{{infobox| par1 = | par2 = Kong }}
Article output:
Last name Kong
39. Template code:
{{Infobox
|label1 = Name
|data1 = {{{name}}}
|label2 = Birth date
|data2 = {{{birth_date|}}}
|label3 = Birth place
|data3 = {{{birth_place|}}}
|label4 = Death date
|data4 = {{{birth_date|}}}
|label5 = Death place
|data5 = {{{birth_place|}}}
|label6 = Nationality
|data6 = {{{nationality|}}}
|label7 = Other names
|data7 = {{{other_names|}}}
|label8 = Occupation
|data8 = {{{occupation|}}}
}}
40. Template code:
{{Infobox
|label1 = Name
|data1 = {{{name}}}
← Obligatory parameter
|label2 = Birth date
|data2 = {{{birth_date|}}} ← Optional parameter
|label3 = Birth place
|data3 = {{{birth_place|}}}
|label4 = Death date
|data4 = {{{birth_date|}}}
|label5 = Death place
|data5 = {{{birth_place|}}}
|label6 = Nationality
|data6 = {{{nationality|}}}
|label7 = Other names
|data7 = {{{other_names|}}}
|label8 = Occupation
|data8 = {{{occupation|}}}
}}
41. Template code:
{| class=”infobox”
{{Infobox {{#if: {{{name|}}} |
|label1 = Name {{!}} Name
|data1 = {{{name}}}
{{!}} {{{name}}}
|label2 = Birth date
}}
|data2 = {{{birth_date|}}}
|label3 = Birth place |-
|data3 = {{{birth_place|}}} {{#if: {{{birth_date|}}} |
|label4 = Death date {{!}} Birth date
|data4 = {{{birth_date|}}} {{!}} {{{birth_date}}}
|label5 = Death place }}
|data5 = {{{birth_place|}}} |-
|label6 = Nationality {{#if: {{{birth_place|}}} |
|data6 = {{{nationality|}}} {{!}} Birth place
|label7 = Other names {{!}} {{{birth_place}}}
|data7 = {{{other_names|}}} }}
|label8 = Occupation ...
|data8 = {{{occupation|}}} |}
}}
42. Complex code can be used if needed:
| label6 = Μάζα
| data6 = {{#if:{{{mass|}}}|{{{mass}}} kg}}
43. Important parameters of meta-template “Infobox”:
● name - the name of the infobox – important for many features
● title - title that appears at the top of our box
● image – image to show on the top of our box
● headerD
● labelD
● dataD
Text to use in corresponding row.
Headers, labels and data items with the same D-value are
mutually exclusive; if all are defined, only header will be
displayed.
If data is not defined, label is not displayed.