Template:Object: Difference between revisions

From Opasnet
Jump to navigation Jump to search
No edit summary
(upload data and show data links added to all objects)
Line 1: Line 1:
[[Category:{{{category}}}]]
[[Category:{{{category}}}]]
{| align="right" width="250pt" {{prettytable}}
{| class="wikitable collapsible collapsed" align="right" width="250pt" {{prettytable}}
|'''This page is a [[Glossary#{{{type}}}|{{{type}}}]]'''.<br>The page identifier is Op_en{{PAGEID}}<br>[[Moderator]]: {{#if: {{{moderator|}}} | [[category:Moderator:{{{moderator}}}]][[user:{{{moderator}}}|{{{moderator}}}]] [[moderators#{{{moderator}}}|(see all)]] | [[category:Moderator:Nobody]]Nobody [[moderators#Unmoderated pages|(see all)]]<br>[[Moderator#How to sign up|Click here to sign up.]] }}
!<div style='text-align: left;'>This page is a [[{{{type}}}]].<br>The page identifier is Op_en{{PAGEID}}</div>
|----
|[[Moderator]]: {{#if: {{{moderator|}}} | [[category:Moderator:{{{moderator}}}]][[user:{{{moderator}}}|{{{moderator}}}]] [[moderators#{{{moderator}}}|(see all)]] | [[category:Moderator:Nobody]]Nobody [[moderators#Unmoderated pages|(see all)]]<br>[[Moderator#How to sign up|Click here to sign up.]] }}
|----
|----
|{{#if: {{{respect|}}}|This page has been [[peer review]]ed. It has gained {{{respect}}} [[onor]]s. [[Talk:{{PAGENAME}}#Review|See review]].|}}  
|{{#if: {{{respect|}}}|This page has been [[peer review]]ed. It has gained {{{respect}}} [[onor]]s. [[Talk:{{PAGENAME}}#Review|See review]].|}}  
Line 7: Line 9:
{{#if:{{{reference|}}}|Citation of this page:<br>{{{reference}}}|}}
{{#if:{{{reference|}}}|Citation of this page:<br>{{{reference}}}|}}
|----
|----
|{{uploadlink}}<br/>{{resultlink|{{#if: {{{upload|}}}|upload = {{{upload}}}|}} |base = {{#if: {{{base|}}}|{{{base}}}|Opasnet}} }}
<noinclude>
<noinclude>
 
|}
{{todo|Sijaistoimintana tärkeämpiä hommia vältellessäni siivosin oliomallinteita. Katsokaapa miltä näyttää, jos OK niin tehdään sama Opasnet FI:hin myöhemmin.|Juha Villman, Einari Happonen|project=Opasnet}}
 
NOTE! The Metadata box does NOT end in this template. The end mark <nowiki>|}</nowiki> must be placed into the template of the particular object type.
NOTE! The Metadata box does NOT end in this template. The end mark <nowiki>|}</nowiki> must be placed into the template of the particular object type.
[[op_fi:objekti]]
[[op_fi:objekti]]

Revision as of 13:11, 14 November 2013

[[Category:{{{category}}}]]

NOTE! The Metadata box does NOT end in this template. The end mark |} must be placed into the template of the particular object type.

Templates of the Object family

Object

This template contains the parts that are common to all object pages. This template is always called from another object-type template (see below).

Parameters:

  • category: category of the object type.
  • type: object type (variable, assessment, study,...)
  • moderator: username of a person that looks after this page and tries to keep it tidy. Moderators should watch their pages.
  • respect: amount of onors the page has received. This is typically based on a review. This is an alternative way to measure the goodness of a page to the rating bar. Too little experience exists to know what works and what doesn't.
  • stub: if this parameter has a value, the page is a stub, which means that the rating bar is not shown.

Variable

This is the most common object type.

Parameters:

  • All parameters for Template:Object are given through Template:Variable.
    • category = Variables and type = variable. These are always the same.
    • moderator, respect, and stub are asked directly as parameters of Template:Variable.
  • Parameters for Template:Resultlink are given through Template:Variable. (NOTE! These parameters are not actually functional yet):
    • upload: As a default, Show result shows the newest results uploaded. However, if the upload parameter is given, the upload with that particular act.series_id (see Opasnet base structure will always be shown even if newer results are uploaded.
    • base: As a default, result is stored to and retrieved from Opasnet Base. Using base parameter, another database may be defined.
  • reference: This parameter, if exists, contains the whole Template:Publication, within which are its own parameters.
    • authors: authors of this page. This is based on the history of the page, or on the Acknowledgements section on the talk page.
    • name: The name of the page where the template is used. This must be a parameter, because this template is used for a dpl summary functionality, and simply using {{PAGENAME}} would result in the page name of the output page, not the page where the template is used.
    • urn: unified resource name of this page, if any. You can obtain an urn from here.
    • elsewhere: If the page has been published elsewhere, a reference for that.
  • 1: Due to compatibility reasons with old pages, if the first parameter given does not have a name, it is assumed that it is a name of a category.
  • addinfo: any content that you want to be shown up in the metadatabox under the rating bar.