SlideShare uma empresa Scribd logo
1 de 47
Baixar para ler offline
Wikipedia


Konstantinos Stampoulis
        Geraki
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
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.
MediaWiki
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
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
Wikimedia Foundation
 
 
 
 



          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
el.wikipedia.org




           ΒΙΚΙΠΑΙΔΕΙΑ
         Η ελεύθερη εγκυκλοπαίδεια
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




           ΒΙΚΙΠΑΙΔΕΙΑ
         Η ελεύθερη εγκυκλοπαίδεια
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}}}
}}                            Plain syntax:
|-
{{#if: {{{birth_date|}}} |    Flexible but
{{!}} Birth date
{{!}} {{{birth_date}}}        complex and
}}
|-                            difficult to maintain
{{#if: {{{birth_place|}}} |
{{!}} Birth place
{{!}} {{{birth_place}}}
}}
...
|}
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|}}}
}}
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|}}}
}}
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|}}}    |}
}}
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

Mais conteúdo relacionado

Destaque

Wiki technologies nov_2008_ye
Wiki technologies nov_2008_yeWiki technologies nov_2008_ye
Wiki technologies nov_2008_yevafopoulos
 
Ws 13-3(2010-11)
Ws 13-3(2010-11)Ws 13-3(2010-11)
Ws 13-3(2010-11)vafopoulos
 
ΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟ
ΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟ
ΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟvafopoulos
 
2010 07 modeling web evolution amarantidis antoniou vafopoulos final
2010 07 modeling web evolution amarantidis antoniou vafopoulos final2010 07 modeling web evolution amarantidis antoniou vafopoulos final
2010 07 modeling web evolution amarantidis antoniou vafopoulos finalvafopoulos
 
2011 05-01 linked data
2011 05-01 linked data2011 05-01 linked data
2011 05-01 linked datavafopoulos
 
Το πλαίσιο της επιστήμης του Web
Το πλαίσιο της επιστήμης του WebΤο πλαίσιο της επιστήμης του Web
Το πλαίσιο της επιστήμης του Webvafopoulos
 
publicspending.gr
publicspending.grpublicspending.gr
publicspending.grvafopoulos
 
2010 06-08 chania stochastic web modelling - copy
2010 06-08 chania stochastic web modelling - copy2010 06-08 chania stochastic web modelling - copy
2010 06-08 chania stochastic web modelling - copyvafopoulos
 
Ws13 2(2010-11)
Ws13 2(2010-11)Ws13 2(2010-11)
Ws13 2(2010-11)vafopoulos
 
Trust and the web veria 11 12- 09
Trust and  the web  veria  11 12- 09Trust and  the web  veria  11 12- 09
Trust and the web veria 11 12- 09vafopoulos
 
κοινωνια της πληροφοριας ευκαιριες και απειλες
κοινωνια της πληροφοριας ευκαιριες και απειλεςκοινωνια της πληροφοριας ευκαιριες και απειλες
κοινωνια της πληροφοριας ευκαιριες και απειλεςvafopoulos
 
Riseptis report 1
Riseptis report 1Riseptis report 1
Riseptis report 1vafopoulos
 

Destaque (12)

Wiki technologies nov_2008_ye
Wiki technologies nov_2008_yeWiki technologies nov_2008_ye
Wiki technologies nov_2008_ye
 
Ws 13-3(2010-11)
Ws 13-3(2010-11)Ws 13-3(2010-11)
Ws 13-3(2010-11)
 
ΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟ
ΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟ
ΣΤΑΤΙΣΤΙΚΗ ΚΑΙ ΔΙΑΔΙΚΤΥΟ
 
2010 07 modeling web evolution amarantidis antoniou vafopoulos final
2010 07 modeling web evolution amarantidis antoniou vafopoulos final2010 07 modeling web evolution amarantidis antoniou vafopoulos final
2010 07 modeling web evolution amarantidis antoniou vafopoulos final
 
2011 05-01 linked data
2011 05-01 linked data2011 05-01 linked data
2011 05-01 linked data
 
Το πλαίσιο της επιστήμης του Web
Το πλαίσιο της επιστήμης του WebΤο πλαίσιο της επιστήμης του Web
Το πλαίσιο της επιστήμης του Web
 
publicspending.gr
publicspending.grpublicspending.gr
publicspending.gr
 
2010 06-08 chania stochastic web modelling - copy
2010 06-08 chania stochastic web modelling - copy2010 06-08 chania stochastic web modelling - copy
2010 06-08 chania stochastic web modelling - copy
 
Ws13 2(2010-11)
Ws13 2(2010-11)Ws13 2(2010-11)
Ws13 2(2010-11)
 
Trust and the web veria 11 12- 09
Trust and  the web  veria  11 12- 09Trust and  the web  veria  11 12- 09
Trust and the web veria 11 12- 09
 
κοινωνια της πληροφοριας ευκαιριες και απειλες
κοινωνια της πληροφοριας ευκαιριες και απειλεςκοινωνια της πληροφοριας ευκαιριες και απειλες
κοινωνια της πληροφοριας ευκαιριες και απειλες
 
Riseptis report 1
Riseptis report 1Riseptis report 1
Riseptis report 1
 

Semelhante a D bpedia

Dynamic languages, for software craftmanship group
Dynamic languages, for software craftmanship groupDynamic languages, for software craftmanship group
Dynamic languages, for software craftmanship groupReuven Lerner
 
Domain Driven Design with the F# type System -- F#unctional Londoners 2014
Domain Driven Design with the F# type System -- F#unctional Londoners 2014Domain Driven Design with the F# type System -- F#unctional Londoners 2014
Domain Driven Design with the F# type System -- F#unctional Londoners 2014Scott Wlaschin
 
Java → kotlin: Tests Made Simple
Java → kotlin: Tests Made SimpleJava → kotlin: Tests Made Simple
Java → kotlin: Tests Made Simpleleonsabr
 
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27Ruby Meditation
 
Linked Open Data for Digital Humanities
Linked Open Data for Digital HumanitiesLinked Open Data for Digital Humanities
Linked Open Data for Digital HumanitiesChristophe Guéret
 
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Adam Mukharil Bachtiar
 
Intro to MongoDB and datamodeling
Intro to MongoDB and datamodeling Intro to MongoDB and datamodeling
Intro to MongoDB and datamodeling rogerbodamer
 
Webinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasWebinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasMongoDB
 
ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...
ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...
ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...eswcsummerschool
 
FP Day 2011 - Turning to the Functional Side (using C# & F#)
FP Day 2011 - Turning to the Functional Side (using C# & F#)FP Day 2011 - Turning to the Functional Side (using C# & F#)
FP Day 2011 - Turning to the Functional Side (using C# & F#)Phillip Trelford
 
Wheels we didn't re-invent: Perl's Utility Modules
Wheels we didn't re-invent: Perl's Utility ModulesWheels we didn't re-invent: Perl's Utility Modules
Wheels we didn't re-invent: Perl's Utility ModulesWorkhorse Computing
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locatorAlberto Paro
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locatorAlberto Paro
 

Semelhante a D bpedia (15)

Dynamic languages, for software craftmanship group
Dynamic languages, for software craftmanship groupDynamic languages, for software craftmanship group
Dynamic languages, for software craftmanship group
 
Domain Driven Design with the F# type System -- F#unctional Londoners 2014
Domain Driven Design with the F# type System -- F#unctional Londoners 2014Domain Driven Design with the F# type System -- F#unctional Londoners 2014
Domain Driven Design with the F# type System -- F#unctional Londoners 2014
 
Java → kotlin: Tests Made Simple
Java → kotlin: Tests Made SimpleJava → kotlin: Tests Made Simple
Java → kotlin: Tests Made Simple
 
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
 
Linked Open Data for Digital Humanities
Linked Open Data for Digital HumanitiesLinked Open Data for Digital Humanities
Linked Open Data for Digital Humanities
 
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
 
Intro to MongoDB and datamodeling
Intro to MongoDB and datamodeling Intro to MongoDB and datamodeling
Intro to MongoDB and datamodeling
 
Webinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasWebinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible Schemas
 
ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...
ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...
ESWC SS 2012 - Tuesday Tutorial Dan Brickley and Denny Vrandecic: Linked Open...
 
FP Day 2011 - Turning to the Functional Side (using C# & F#)
FP Day 2011 - Turning to the Functional Side (using C# & F#)FP Day 2011 - Turning to the Functional Side (using C# & F#)
FP Day 2011 - Turning to the Functional Side (using C# & F#)
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Wheels we didn't re-invent: Perl's Utility Modules
Wheels we didn't re-invent: Perl's Utility ModulesWheels we didn't re-invent: Perl's Utility Modules
Wheels we didn't re-invent: Perl's Utility Modules
 
Intro
IntroIntro
Intro
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator
 

Mais de vafopoulos

Presentation gr
Presentation grPresentation gr
Presentation grvafopoulos
 
Vafopoulos is the 2faces of janus
Vafopoulos is the 2faces of janusVafopoulos is the 2faces of janus
Vafopoulos is the 2faces of janusvafopoulos
 
2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiou2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiouvafopoulos
 
2010 02-24 ws gm logic
2010 02-24 ws gm logic2010 02-24 ws gm logic
2010 02-24 ws gm logicvafopoulos
 
Issue 11834$pdf
Issue 11834$pdfIssue 11834$pdf
Issue 11834$pdfvafopoulos
 
Gget 30 webscience
Gget 30 webscienceGget 30 webscience
Gget 30 websciencevafopoulos
 
Mit csail-tr-2007-034
Mit csail-tr-2007-034Mit csail-tr-2007-034
Mit csail-tr-2007-034vafopoulos
 
A framework of Web Science
A framework of Web Science A framework of Web Science
A framework of Web Science vafopoulos
 

Mais de vafopoulos (8)

Presentation gr
Presentation grPresentation gr
Presentation gr
 
Vafopoulos is the 2faces of janus
Vafopoulos is the 2faces of janusVafopoulos is the 2faces of janus
Vafopoulos is the 2faces of janus
 
2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiou2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiou
 
2010 02-24 ws gm logic
2010 02-24 ws gm logic2010 02-24 ws gm logic
2010 02-24 ws gm logic
 
Issue 11834$pdf
Issue 11834$pdfIssue 11834$pdf
Issue 11834$pdf
 
Gget 30 webscience
Gget 30 webscienceGget 30 webscience
Gget 30 webscience
 
Mit csail-tr-2007-034
Mit csail-tr-2007-034Mit csail-tr-2007-034
Mit csail-tr-2007-034
 
A framework of Web Science
A framework of Web Science A framework of Web Science
A framework of Web Science
 

D bpedia

  • 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
  • 6. Policy-Copyright Creative Commons Attribution Sharealike 3.0 GNU Free Documentation License 1.2
  • 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
  • 12. Wikimedia Foundation         http://wikimediafoundation.org
  • 13. Wikimedia Foundation         Imagine a world in which every single human being can freely share in the sum of all knowledge. That's our commitment.
  • 14. Wikimedia Foundation       Wikipedia       Wikisource       Wiktionary       Wikiquote       Wikispecies       Wikibooks       Wikinews       Wikiversity       Wikimedia Commons
  • 15. Wikimedia Foundation Wikimedia Chapters
  • 16. el.wikipedia.org ΒΙΚΙΠΑΙΔΕΙΑ Η ελεύθερη εγκυκλοπαίδεια
  • 17. el.wikipedia.org > 55.690 articles > 141.000 pages > 2.490.000 edits
  • 18. el.wikipedia.org > 70.000 registered users ~ 670 active users = 18 admins
  • 19. el.wikipedia.org Page views March 2010 = 12.900.000 = 430.000 /day = 18.000 /hour = 299 /min = 5 /sec
  • 21. el.wikipedia.org ΒΙΚΙΠΑΙΔΕΙΑ Η ελεύθερη εγκυκλοπαίδεια
  • 24. No parameters: {{mybox}} Unnamed parameters: {{mybox| 1 | 2 }} Named parameters: {{mybox| par1 = 1 | par2 = 2 }}
  • 25. Template code: You gave {{{1}}} and {{{2}}}. Article code: {{mybox| dog | cat }} Article output: You gave dog and cat.
  • 26. Template code: You gave {{{par1}}} and {{{par2}}}. Article code: {{mybox| par1 = donkey | par2 = mule }} Article output: You gave donkey and mule.
  • 27. But what about defaults?
  • 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
  • 34. Nested functions: {{#if: {{{par1|}}} | {{#if: {{{par2|}}} | true for par2 | false for par2 }} | false for par1 }}
  • 35. Article code: {{Infobox person | name = | birth_date = | birth_place = | death_date = | death_place = | nationality = | other_names = | known_for = | occupation = }}
  • 36. Template code: {| class=”infobox” {{#if: {{{name|}}} | {{!}} Name {{!}} {{{name}}} }} Plain syntax: |- {{#if: {{{birth_date|}}} | Flexible but {{!}} Birth date {{!}} {{{birth_date}}} complex and }} |- difficult to maintain {{#if: {{{birth_place|}}} | {{!}} Birth place {{!}} {{{birth_place}}} }} ... |}
  • 38. Article code: {{Infobox person | name = | birth_date = | birth_place = | death_date = | death_place = | nationality = | other_names = | known_for = | occupation = }}
  • 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.
  • 44.
  • 45.
  • 46.