Templates: Difference between revisions

    From Consumerium development wiki R&D Wiki
    (link to Wiktionary:Wiktionary:Index of templates and link to Meta page about templates. + a definition of the purpose of this page. Lot's more to discover and collate for our use)
    (mentioning Wikidata and DBpedia as sources to populate and update our own Wikibase installation)
     
    (28 intermediate revisions by the same user not shown)
    Line 1: Line 1:
    '''This article is about templates in [[MediaWiki]] [[Wiki]] software and their application to reaching [[consumerium]] [[Consumerium Services|goals]].'''
    Templates basically offer the possibility to include the articles from [[Template:]]-[[namespace]] into other articles by the means of '''[[w:transclusion]]'''. '''[[mw:Help:Templates]]''' is an excellent tutorial into MW templates.
     
    Templates will be widely employed to add [[categories]] to articles.
     
    The template system in [[MediaWiki]] has evolved to a very powerful (and complicated in some cases) system for avoiding redundant manual work, and enabling consistent structure for articles that deal with a certain, shared area of knowledge. Other features in MediaWiki include [[MediaWiki/extensions|extensions]], [[categories]] and extra [[namespaces]] and [[MediaWiki/widgets|widgets]].
     
    [[Wikidata]] and [[DBpedia]] will be used to populate and update Consumium's own [[Wikibase]] installation.
     
    == Templates in development wiki ==


    ==Templates in development wiki==
    There are a few templates in use in this wiki. A complete list is [http://develop.consumerium.org/w/index.php?title=Special%3AAllpages&from=&namespace=10 here] with the only useful (and ones used) being:
    There are a few templates in use in this wiki. A complete list is [http://develop.consumerium.org/w/index.php?title=Special%3AAllpages&from=&namespace=10 here] with the only useful (and ones used) being:
    *[[Template:Deprecated]] - used to mark pages that are no longer relevant or coherent with current plans due to evolution of the implementation plan
    *[[Template:Deprecated]] - used to mark pages that are no longer relevant or coherent with current plans due to evolution of the implementation plan
    *[[Template:Fromwp]] - used to give credit when an article is adapted from Wikipedia
    *[[Template:Fromwp]] - used to give credit when an article is adapted from Wikipedia
    *[[Template:Stub]] - a stadard stub message
    *[[Template:Stub]] - a stadard stub message
    *[[Template:TFD]] - Tagged For Deletion - If someone want's to conserve contents from a page that has been tagged like this they either move all useful information to another article or improve the article so that it makes sense in the larger scheme of things.
    == Template use in Implementation wiki ==
    Here we should compile a list of templates that will be useful in the implementation stage when we begin to assemble information about companies and products.
    == New infoboxen ==
    Infoboxen can consist of standard items in the form of a large unified template with fields for value '''and''' freeform portion with mostly single item templates ( think of [[userboxen]] ).
    === Consumption/Product related entities infoboxen ===
    * [[Brand]]
    * [[Product]] ( made in country X, sold in country X, sold in retail outlet X chain X and up )
    * [[Product group]] ( mainly from [[OHIM#EURONICE]] )
    === Places and areas infoboxen ===
    * [[Continent]] - ( population, per capita avg. income, median income )
    * [[w:Trade area]] (  ) NAFTA , EU ...
    * [[Country]] [[w:ISO 3166-1]] ( capitol, population, exports, imports, per capita avg. income, median income, neighbours ( clockwise from starting from north ) )
    * [[Area]] ( intra-country ) [[w:ISO 3166-2]]
    * County/Village/City ( from [[UN/LOCODE]] usually )
    * Site ( type: retail, production, combined, office or HQ and full postal address, web, email, phone)
    === Organizations infoboxen ===
    * [[Business]]
    * [[NGO]] - [[w:Category:Non-governmental organizations by country]]
    * [[IGO]] ( Inter-Governmental  Organization ) UN, EU, WTO, IMF, WB, G8, G20, Asean, AU ...
    * [[Government]] ( [[w:locale]] and timeperiod )


    ----
    === Misc. ===
    * [[w:Nutrition facts label]]
    * [[Occupation]]
    == Single item boxen ==
    === Single item boxen for products ===
    * All [[labels]] obviously ( [[w:vegetarian]], [[w:halal]], [[w:kosher]], [[w:dolphin safe]], [[w:reinheitsgebot]], [[w:no old growth]]... )
    * Sold at retail site X / retail chain X ( and up )
    === Single item boxen for businesses ===
    * Operates in site/area/country/continent X
    ** Production site in X
    ** Retail site in X
    === Single item boxen for people/users ===
    * Recycles
    * Uses mass transit
    * Shops at retail site X / retail chain X
    === Single item boxen for production [[sites]] ===
    * [[SA8000]] certified
    * [[ISO 14000]] certified
    * [[WUR]] and [[WURC]] items
    ----
    == Information on using templates on Meta ==
    *[[m:Help:Template]]
    == Templates to be copied from Wikipedia ==
    * [[w:Template:Infobox prepared food]] makes sense to copy 1-to-1 this
    === Templates to be copied from other sources ===
    * Uncyc:Q ( quote )
    == Template use in Wikipedia, 2012 situation mapping ==
    [[w:Category:Business infobox templates]] will likely almost all be included under GFDL to form the base data on entitites such as brands and businesses.
    Using the SPARQL queries on [[DBpedia]]'s datasets on [[Wikipedia]] infoboxes enabled by the [[MediaWiki/Extensions#LinkedWiki|LinkedWiki extension]] so we will start collecting a list of Infoboxes to get datasets for.
    === [[w:Template:Infobox company]] ===
    <pre>
    {{Infobox company
    | name            =
    | logo            =
    | caption          =
    | type            =
    | traded_as        =
    | genre            = <!-- Only used with media and publishing companies -->
    | fate            =
    | predecessor      =
    | successor        =
    | foundation      = <!-- {{Start date|YYYY|MM|DD}} -->
    | founder          =
    | defunct          = <!-- {{End date|YYYY|MM|DD}} -->
    | location_city    =
    | location_country =
    | locations        =
    | area_served      =
    | key_people      =
    | industry        =
    | products        =
    | services        =
    | revenue          =
    | operating_income =
    | net_income      =
    | aum              = <!-- Only used with financial services companies -->
    | assets          =
    | equity          =
    | owner            =
    | num_employees    =
    | parent          =
    | divisions        =
    | subsid          =
    | homepage        = <!-- {{URL|examplesite.com|ExampleSite.com}} -->
    | footnotes        =
    | intl     
    </pre>
    === [[w:Template:Infobox brand]] ===
    <pre>
    {{infobox brand
    | logo          =
    | name          =
    | image          =
    | type          =
    | currentowner  =
    | origin        =
    | introduced    =
    | discontinued  =
    | related        =
    | markets        =
    | previousowners =
    | trademarkregistrations =
    | ambassador    =
    | tagline        =
    | website        =
    }}
    </pre>
    === [[w:Templates:Infobox advertising]] ===
    <pre>
    {{Infobox advertising
    | name    =
    | image    =
    | caption  =
    | agency  =
    | client  =
    | title    =
    | product  =
    | product2 =
    | product3 =
    | year    =
    }}
    </pre>
    === [[w:Template:Infobox prepared food]] ===
    <pre>
    {{Infobox prepared food
    | name            =
    | image            =
    | caption          =
    | alternate_name  =
    | country          =
    | region          =
    | creator          =
    | course          =
    | type            =
    | served          =
    | main_ingredient  =
    | variations      =
    | calories        =
    | other            =
    }}
    </pre>
    ----
    ==Information on using templates on Meta==
    ==Information on using templates on Meta==
    *[[m:Help:Template]]
    *[[m:Help:Template]]


    ==Template use in Wikipedia==
    The template system in [[MediaWiki]] has evolved to a very powerful (and complicated in some cases) system for avoiding redundant manual work, and enabling consistent structure for articles that deal with a certain, shared area of knowledge.


    [All templates used in Wikipedia can be found http://en.wikipedia.org/w/index.php?title=Special%3AAllpages&from=&namespace=10 here] (an automatically generated alphabetically ordered list)
    [[w:Wikipedia:Template_messages]] lists (most) of the templates used in Wikipedia in a user friendly way.
    <small>All templates used in Wikipedia can be found [http://en.wikipedia.org/w/index.php?title=Special%3AAllpages&from=&namespace=10 here] (an automatically generated alphabetically ordered list)</small>


    Some of Wikipedia's templates (such as those dealing with calendars and such) are directly applicable to the implementation wiki
    Some of Wikipedia's templates (such as those dealing with calendars and such) are directly applicable to the implementation wiki
    Line 22: Line 207:
    *[[Wiktionary:Wiktionary:Index_to_templates|Wiktionary's index to templates]] has some good explanations of the different kinds of templates used there and their application
    *[[Wiktionary:Wiktionary:Index_to_templates|Wiktionary's index to templates]] has some good explanations of the different kinds of templates used there and their application


    ==Template use in Implementation wiki==
    Here we should compile a list of templates that will be useful in the implementation stage when we begin to assemble information about companies and products.


    ===Templates to be copied from Wikipedia===
    '''See also'''
    ===Templates to be created specifically for use in implementation wiki===
    * [[MediaWiki/Extensions]]
    ===Templates to be copied from other sources===
    * [[MediaWiki/Widgets]]
    * [[Categories]]

    Latest revision as of 14:35, 19 January 2013

    Templates basically offer the possibility to include the articles from [[Template:]]-namespace into other articles by the means of w:transclusion. mw:Help:Templates is an excellent tutorial into MW templates.

    Templates will be widely employed to add categories to articles.

    The template system in MediaWiki has evolved to a very powerful (and complicated in some cases) system for avoiding redundant manual work, and enabling consistent structure for articles that deal with a certain, shared area of knowledge. Other features in MediaWiki include extensions, categories and extra namespaces and widgets.

    Wikidata and DBpedia will be used to populate and update Consumium's own Wikibase installation.

    Templates in development wiki[edit | edit source]

    There are a few templates in use in this wiki. A complete list is here with the only useful (and ones used) being:

    • Template:Deprecated - used to mark pages that are no longer relevant or coherent with current plans due to evolution of the implementation plan
    • Template:Fromwp - used to give credit when an article is adapted from Wikipedia
    • Template:Stub - a stadard stub message
    • Template:TFD - Tagged For Deletion - If someone want's to conserve contents from a page that has been tagged like this they either move all useful information to another article or improve the article so that it makes sense in the larger scheme of things.

    Template use in Implementation wiki[edit | edit source]

    Here we should compile a list of templates that will be useful in the implementation stage when we begin to assemble information about companies and products.

    New infoboxen[edit | edit source]

    Infoboxen can consist of standard items in the form of a large unified template with fields for value and freeform portion with mostly single item templates ( think of userboxen ).


    Consumption/Product related entities infoboxen[edit | edit source]

    Places and areas infoboxen[edit | edit source]

    • Continent - ( population, per capita avg. income, median income )
    • w:Trade area ( ) NAFTA , EU ...
    • Country w:ISO 3166-1 ( capitol, population, exports, imports, per capita avg. income, median income, neighbours ( clockwise from starting from north ) )
    • Area ( intra-country ) w:ISO 3166-2
    • County/Village/City ( from UN/LOCODE usually )
    • Site ( type: retail, production, combined, office or HQ and full postal address, web, email, phone)

    Organizations infoboxen[edit | edit source]


    Misc.[edit | edit source]

    Single item boxen[edit | edit source]

    Single item boxen for products[edit | edit source]

    Single item boxen for businesses[edit | edit source]

    • Operates in site/area/country/continent X
      • Production site in X
      • Retail site in X

    Single item boxen for people/users[edit | edit source]

    • Recycles
    • Uses mass transit
    • Shops at retail site X / retail chain X

    Single item boxen for production sites[edit | edit source]


    Information on using templates on Meta[edit | edit source]

    Templates to be copied from Wikipedia[edit | edit source]

    Templates to be copied from other sources[edit | edit source]

    • Uncyc:Q ( quote )

    Template use in Wikipedia, 2012 situation mapping[edit | edit source]

    w:Category:Business infobox templates will likely almost all be included under GFDL to form the base data on entitites such as brands and businesses.

    Using the SPARQL queries on DBpedia's datasets on Wikipedia infoboxes enabled by the LinkedWiki extension so we will start collecting a list of Infoboxes to get datasets for.

    w:Template:Infobox company[edit | edit source]

    {{Infobox company
    | name             = 
    | logo             = 
    | caption          = 
    | type             = 
    | traded_as        = 
    | genre            = <!-- Only used with media and publishing companies -->
    | fate             = 
    | predecessor      = 
    | successor        = 
    | foundation       = <!-- {{Start date|YYYY|MM|DD}} -->
    | founder          = 
    | defunct          = <!-- {{End date|YYYY|MM|DD}} -->
    | location_city    = 
    | location_country = 
    | locations        = 
    | area_served      = 
    | key_people       = 
    | industry         = 
    | products         = 
    | services         = 
    | revenue          = 
    | operating_income = 
    | net_income       = 
    | aum              = <!-- Only used with financial services companies -->
    | assets           = 
    | equity           = 
    | owner            = 
    | num_employees    = 
    | parent           = 
    | divisions        = 
    | subsid           = 
    | homepage         = <!-- {{URL|examplesite.com|ExampleSite.com}} -->
    | footnotes        = 
    | intl      
    


    w:Template:Infobox brand[edit | edit source]

    {{infobox brand
    | logo           = 
    | name           = 
    | image          = 
    | type           = 
    | currentowner   = 
    | origin         = 
    | introduced     = 
    | discontinued   = 
    | related        = 
    | markets        = 
    | previousowners = 
    | trademarkregistrations = 
    | ambassador     = 
    | tagline        =
    | website        = 
    }}
    

    w:Templates:Infobox advertising[edit | edit source]

    {{Infobox advertising
    | name     = 
    | image    = 
    | caption  = 
    | agency   = 
    | client   = 
    | title    = 
    | product  =
    | product2 =
    | product3 =
    | year     =
    }}
    


    w:Template:Infobox prepared food[edit | edit source]

    {{Infobox prepared food
    | name             = 
    | image            = 
    | caption          = 
    | alternate_name   = 
    | country          = 
    | region           = 
    | creator          = 
    | course           = 
    | type             = 
    | served           = 
    | main_ingredient  = 
    | variations       = 
    | calories         = 
    | other            = 
    }}
    
    

    Information on using templates on Meta[edit | edit source]


    w:Wikipedia:Template_messages lists (most) of the templates used in Wikipedia in a user friendly way. All templates used in Wikipedia can be found here (an automatically generated alphabetically ordered list)

    Some of Wikipedia's templates (such as those dealing with calendars and such) are directly applicable to the implementation wiki

    Surfing around Wikipedia one encounters many complex templates that may include nested templates and parameters.

    Template use in Wiktionary[edit | edit source]


    See also