Upload
vafopoulos
View
501
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
Wikipedia
Konstantinos StampoulisGeraki
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
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
Policy●Wikipedia is not a democracy●Wikipedia is not a bureaucracy●Wikipedia is not a battleground●Wikipedia is not an anarchy
Policy
●Neutrality●Verifiability●No original research
Policy-Copyright
Creative Commons Attribution Sharealike 3.0
GNU Free Documentation License 1.2
MediaWikiMediaWiki 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.
MediaWiki
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
MediaWiki
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
System architecture
http://wikimediafoundation.org
Wikimedia Foundation
Imagine a world in which every single human being can freely share in the sum of all knowledge.
That's our commitment.
Wikimedia Foundation
Wikipedia Wikisource Wiktionary Wikiquote Wikispecies Wikibooks Wikinews Wikiversity Wikimedia Commons
Wikimedia Foundation
Wikimedia Chapters
Wikimedia Foundation
ΒΙΚΙΠΑΙΔΕΙΑΗ ελεύθερη εγκυκλοπαίδεια
el.wikipedia.org
> 55.690 articles> 141.000 pages> 2.490.000 edits
el.wikipedia.org
> 70.000 registered users~ 670 active users= 18 admins
el.wikipedia.org
Page views March 2010= 12.900.000 = 430.000 /day= 18.000 /hour= 299 /min= 5 /sec
el.wikipedia.org
el.wikipedia.org
ΒΙΚΙΠΑΙΔΕΙΑΗ ελεύθερη εγκυκλοπαίδεια
el.wikipedia.org
Questions
Templates
No parameters:
{{mybox}}
Unnamed parameters:
{{mybox| 1 | 2 }}
Named parameters:
{{mybox| par1 = 1 | par2 = 2 }}
Template code:
You gave {{{1}}} and {{{2}}}.
Article code:
{{mybox| dog | cat }}
Article output:
You gave dog and cat.
Template code:
You gave {{{par1}}} and {{{par2}}}.
Article code:
{{mybox| par1 = donkey | par2 = mule }}
Article output:
You gave donkey and mule.
But what about defaults?
Template code:
You gave {{{par1|lion}}} and {{{par2|tiger}}}.
Article code:
{{mybox| par2 = mule }}
Article output:
You gave lion and mule.
Template code:
You gave {{{par1|{{{1}}} }}} and {{{par1|{{{1|lion}}} }}}.
Article code:
{{mybox| tiger | par2 = mule }}
Article output:
You gave tiger and mule.
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
Template code:
{| class=”infobox”| First name | {{{par1|}}}|-| Last name| {{{par2|}}}|}
Article code:
{{mybox| par1 = | par2 = Kong }}
Article output:
First name
Last name Kong
{{#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).
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
Nested functions:
{{#if: {{{par1|}}} | {{#if: {{{par2|}}} | true for par2 | false for par2 }} | false for par1 }}
Article code:
{{Infobox person| name = | birth_date = | birth_place = | death_date = | death_place = | nationality = | other_names = | known_for = | occupation = }}
Template code:
{| class=”infobox”{{#if: {{{name|}}} |{{!}} Name{{!}} {{{name}}} }}|-{{#if: {{{birth_date|}}} |{{!}} Birth date{{!}} {{{birth_date}}} }}|-{{#if: {{{birth_place|}}} |{{!}} Birth place{{!}} {{{birth_place}}} }}...|}
Plain syntax:Flexible butcomplex anddifficult to maintain
META-TEMPLATES
Article code:
{{Infobox person| name = | birth_date = | birth_place = | death_date = | death_place = | nationality = | other_names = | known_for = | occupation = }}
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|}}}}}
← Obligatory parameter
← Optional parameter
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|}}}}}
{| class=”infobox”{{#if: {{{name|}}} |{{!}} Name{{!}} {{{name}}} }}|-{{#if: {{{birth_date|}}} |{{!}} Birth date{{!}} {{{birth_date}}} }}|-{{#if: {{{birth_place|}}} |{{!}} Birth place{{!}} {{{birth_place}}} }}...|}
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|}}}}}
Complex code can be used if needed:
| label6 = Μάζα| data6 = {{#if:{{{mass|}}}|{{{mass}}} kg}}
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.
Questions