Templates: Difference between revisions

From Saltwiki
Jump to navigation Jump to search
Line 276: Line 276:
suppresserrors=true  
suppresserrors=true  
</dpl>
</dpl>
[[category:template]]

Revision as of 13:56, 26 April 2011

<accesscontrol>autor</accesscontrol> Here you can find all of the templates previously made available for authors. If you would like additional templates, please contact the administrator at the Hornemann Institute.


Classification of an article in SaltWiki[edit]

Each article tackles a self-contained subject. Explanations of terms can generally be found in the glossary. A Wiki article concentrates on the actual content and is linked to all subjects that are required or are important for understanding the article.
The classification could look as follows (for example, see the article on render/mortar): Each page starts with the page head, as proposed below.

== Abstract ==
== Introduction ==
== Main chapter ==
=== Sub-chapter ===
== Web links ==
== Literature ==

<bibprint/> : to use if at least one quote in Bibtex format is present in the text, 
              otherwise the complete list of references is displayed!


If there are more than three headings, then the software will automatically create a table of contents inserted before the first heading.

Head of a page[edit]

<bibimport/>                 
Author/s: [[user:Hschwarz|Hans-Jürgen Schwarz]]

''back to [[SalzWiki:Portal|SalzWiki]]           
<br>
[[Category:"Topic"]] [[Category:"Author"]] [[Category:"Editor"]] [[Category:"Status"]] 
<bibimport/> Allows quotation from the bibliography
'''Author/s:''' [[user:Hschwarz|Hans-Jürgen Schwarz]] Insert author name here, separated by commas in the case of several. [[User:"Author name"]] links to the author page
back to [[SalzWiki:Portal|SalzWiki]] Optional: go back one level, here to the SaltWiki site
[[Category:"Topic"]] [[Category:"Author"]] [[Category:"Editor"]] [[Category:"Status"]] Categories are very important and must be entered. The categories always appear at the end of a page .


Licences[edit]

In order to insert a licence, you only need to state the short form, including the curly brackets. If you need another licence please contact the admin on his talk page .

Creative-Commons-Licence: CC_BY-NC-SA_3.0[edit]

The template: {{CC-by-nc-sa}}

Name
NoCommercial
SA

This image or file is licensed under the Creative-Commons-License Attribution - Noncommercial - Share Alike Germany in the version 3.0.

You are free:

  • to Share — to copy, distribute and transmit the work
  • to Remix — to adapt the work


Under the following conditions:

  • Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • Noncommercial — You may not use this work for commercial purposes.
  • Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one

Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to the Commons Deed.


Creative-Commons-Licence: CC_BY-NC-ND_3.0[edit]

The template:{{CC-by-nc-nd}}

Name
NoCommercial
SA

This image or file is licensed under the Creative-Commons-License Attribution - Noncommercial - No Derivative Works Germany in the version 3.0.

You are free:

  • to Share — to copy, distribute and transmit the work


Under the following conditions:

  • Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • Noncommercial — You may not use this work for commercial purposes.
  • No Derivative Works — You may not alter, transform, or build upon this work.

Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to the Commons Deed.


GNU[edit]

The template:{{GNU}}


GNU

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.


Public Domain Licence[edit]

The template:{{PD}}


PD

This file has been released into the public domain by the copyright holder, its copyright has expired, or it is ineligible for copyright.



Uploading metadata[edit]

The following templates are available for metadata for different files that you may want to upload (there is also a link to them on the upload page)

  • Photos
  • Published articles/books, etc.
  • Grey literature
  • Unpublished reports
  • Scientific primary data
  • DOI metadata

Please copy the relevant template into the upload form and complete it in full

By uploading, you confirm that the uploaded document / file is free of rights of third parties respectively you have permission to use.

Uploading is in the repository. To embed a file (eg a photo) in SalzWiki, you need to know the name of the file in the repository.

Here as an example:

Call up the template using:

{{MetadatenFoto_upload}}

Appearance of the template for photos:== Summary ==

Description {{{description}}}
Source {{{source }}}
Date {{{date }}}
Author/s {{{author}}}
Notes {{{notes}}}


Master copy

{{MetadatenFoto_upload
|Description=
|Source =
|Date =
|Author/s =
|Permission=
|Notes=
}}

Salts information box: Infobox Salts[edit]

If you want to create the page of a new salt, please use this template for the characteristics. Should the salts information box not have all of the required parameters that you need, please contact the adminor write your required parameter on the discussion page.

Appearance of the template

Templates{{{Footnote}}}
{{{photo}}}
Mineralogical name {{{mineralogical_Name}}}
Chemical name {{{chemical_Name}}}
Trivial name {{{Trivial_Name}}}
Chemical formula {{{chemical_Formula}}}
Other forms {{{Hydratforms}}}
Crystal system {{{Crystal_System}}}
Crystal structure {{{Crystal_Structure}}}
Deliquescence humidity 20°C {{{Deliqueszenzhumidity}}}
Solubility (g/l) at 20°C {{{Solubility}}}
Density (g/cm³) {{{Density}}}
Molar volume {{{MolVolume}}}
Molar weight {{{Molweight}}}
Transparency {{{Transparency}}}
Cleavage {{{Cleavage}}}
Crystal habit {{{Crystal_Habit}}}
Twinning {{{Twinning}}}
Phase transition {{{Phase_Transition}}}
Chemical behavior {{{chemBehavior}}}
Comments {{{Comments}}}
Crystal Optics
Refractive Indices {{{Refractive_Indices}}}
Birefringence {{{Birefringence}}}
Optical Orientation {{{optical_Orientation}}}
Pleochroism {{{Pleochroism}}}
Dispersion {{{Dispersion}}}
Used Literature
{{{Literature}}}


Master copy

{{Infobox_Salt
|Footnote             =
|photo                =  [[Image:"file name"|300px]]
|mineralogical_Name   =
|chemical_Name        =
|Trivial_Name         =
|chemicalFormula      =
|Hydratforms          =
|Crystal_Class        =
|Deliqueszenzhumidity =
|Solubility           =
|Density              =
|MolVolume            =
|Molweight            =
|Transparency         =
|Cleavage             =
|Crystal_Habit        =
|Twinning             =
|Refractive_Indices   =
|Birefringence        =
|optical_Orientation  =
|Pleochroism          =
|Dispersion           =
|Phase_Transition     =
|chemBehavior         =
|Comments             =
}}


Table with table heading[edit]

In order to create a table, you can either use the Editor button or use the following template:

Format details for a table with 3 columns and 3 rows:

  • width= "52%" // gives the table width as a % of the page width
  • align="left" // flush left, right = flush right, center = centred
  • bgcolor = "#FFFF99"| // gives the background colour for the respective field
  • class="wikitable sortable" // Click for all rows sorted by column content
{|border="2" cellspacing="0" cellpadding="4" width="52%" align="left" class="wikitable sortable"
|+''Tabelle 1: Table heading''                    <!-- insert Table heading -->
|-
|bgcolor = "#FFFF99"|'''Column heading 1'''
|bgcolor = "#FFFF99"|'''Column heading 2'''
|bgcolor = "#FFFF99"|'''Column heading 3'''
|-
|bgcolor = "#FFFF99"|row heading 1
|bgcolor = "#CCFFFF"|Text
|bgcolor = "#CCFFFF"|Text
|-
|bgcolor = "#FFFF99"|row heading 2
|bgcolor = "#CCFFFF"|Text
|bgcolor = "#CCFFFF"|Text
|}

<br clear="all">                 <!-- has the effect that the text does not flow around the table -->
Tabelle 1: Table heading
Column heading 1 Column heading 2 Column heading3
row heading 1 Text Text
row heading 2 Text Text


Embedding photos in a text[edit]

To embed a photo in a Wiki page, please use this template, insert the name of your illustration and amend the formatting details, as explained in more detail below.

[[Image:''full name of the photo''|thumb|center|300px|caption]] 
  • thumb: States that the illustration is embedded in a reduced size, given in px = Pixelsl
  • center: center
  • left-justified : left
  • right-justified: right
  • 300px : The image width is 300 pixels; can be amended to meet your own requirements
  • caption: The illustration caption is entered here
caption

Embedding videos[edit]

As previously only videos in the format "OGG" were able to be embedded, only videos in this format should be uploaded.

Videos in the ".ogg" format can be viewed directly on the pages. To do this, enter the following:

[[image:"name of the video".ogg]] 

e.g.

[[image:MgSO4_Kristallisationsvideo.ogg]] 

Detailed information on the width, etc., as under "Embedding photos" using, as an example

with

[[image:MgSO4_Kristallisationsvideo.ogg|thumb|300px|Figure 1:Crystallisation of Magnesiumsulfat]]

the video will be shown as follows.

Error creating thumbnail:
Figure 1: Crystallisation of Magnesiumsulfat



Weblinks[edit]

<references/>  //all "footnotes" will be shown

DynamicPageList[edit]

Using the "DynamicPageList", it is possible to generate compilations of everything that is tagged using categories, e.g. all pages in the category "Niter" are listed with the following details:

<dpl>
  category = Niter
  format   = ,\n* [[%PAGE%]],,
</dpl>

The list (if input available):

Create a new list/table based on tables in different articles[edit]

With the extension DynamicPageList it is also possible to create lists from tables based on the same template according to the variables used there.

Here's an example: With the entries in the "info box" of the nitrate salts create a new, sortable table with the columns birefringence, refractive indices, molar volume, solubility and deliqueszenzhumidity.

The following DPL statements :

<dpl>
category        = Nitrat&Salt
include         = {Infobox_Salt}:birefringence:refractive_indices:molvolume:solubility :deliqueszenzhumidity
table           = class="wikitable sortable" ,birefringence,refractive_indices,molvolume,solubility,deliqueszenzhumidity
tablerow        =%%,bgcolor=lightyellow|%%,bgcolor=lightyellow|%%,bgcolor=lightyellow align=center|%%,bgcolor=lightyellow|%%
suppresserrors  = true 
</dpl>

You will get the resulting table (if input available):