Templates: Difference between revisions
No edit summary |
|||
(38 intermediate revisions by 5 users not shown) | |||
Line 90: | Line 90: | ||
{|cellspacing="0" cellpadding = "10" style="border-style:solid; border-color:black; border-width:1px;" | {|cellspacing="0" cellpadding = "10" style="border-style:solid; border-color:black; border-width:1px;" | ||
|align="center" | |align="center" bgcolor="#ffff99" |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 | Uploading is in the repository. To embed a file (eg a photo) in SaltWiki, you need to know the name of the file in the repository. | ||
Here as an example: | Here as an example: | ||
Call up the template using: <pre>{{ | Call up the template using: <pre>{{MetadataPhoto_upload}}</pre> | ||
Appearance of the template for photos:{{ | Appearance of the template for photos: | ||
{{MetadataPhoto_upload}} | |||
'''Master copy''' | '''Master copy''' | ||
<pre>{{ | <pre> | ||
| | {{MetadataPhoto_upload | ||
| | |description= | ||
| | |source= | ||
| | |date= | ||
| | |author= | ||
| | |permission= | ||
|notes= | |||
}} | }} | ||
</pre> | </pre> | ||
== Salts information box: Infobox Salts == | == Salts information box: Infobox Salts == | ||
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 | 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 [[user:Hschwarz| the admin]]or write your required parameter on the discussion page. | ||
Appearance of the template {{Infobox_Salt}} | Appearance of the template {{Infobox_Salt}} | ||
''' Master copy''' | ''' Master copy''' | ||
Line 149: | Line 147: | ||
|Comments = | |Comments = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 156: | Line 153: | ||
== Table with table heading == | == Table with table heading == | ||
In order to create a table, you can either use the Editor button or use the following template: | |||
<br clear="all"> | |||
{|border="2" cellspacing="0" cellpadding="4" width="52%" align="left" class="wikitable sortable" | |||
|+''Table 1: Table heading'' <!-- insert Table heading --> | |||
|- | |||
|bgcolor = "#F0F0F0"|'''Column heading 1''' | |||
|bgcolor = "#F0F0F0"|'''Column heading 2''' | |||
|bgcolor = "#F0F0F0"|'''Column heading 3''' | |||
|- | |||
|bgcolor = "#F7F7F7"|row heading 1 | |||
|bgcolor = "#FFFFEO"|Text | |||
|bgcolor = "#FFFFEO"|Text | |||
|- | |||
|bgcolor = "#F7F7F7"|row heading 2 | |||
|bgcolor = "#FFFFEO"|Text | |||
|bgcolor = "#FFFFEO"|Text | |||
|} | |||
<br clear="all"> | |||
;Format details for a table with 3 columns and 3 rows<br> | |||
:width= "52%" // gives the table width as a % of the page width<br> | |||
:align="left" // flush left, right = flush right, center = centred<br> | |||
:bgcolor = "#F0F0F0" // gives the background colour for the respective field<br> | |||
:class="wikitable sortable" // Click for all rows sorted by column content | |||
'''Master copy''' | |||
<br clear="all"> | |||
<pre>{|border="2" cellspacing="0" cellpadding="4" width="52%" align="left" class="wikitable sortable" | <pre>{|border="2" cellspacing="0" cellpadding="4" width="52%" align="left" class="wikitable sortable" | ||
|+'' | |+''Table 1: Table heading'' <!-- insert Table heading --> | ||
|- | |- | ||
|bgcolor = "# | |bgcolor = "#F0F0F0"|'''Column heading 1''' | ||
|bgcolor = "# | |bgcolor = "#F0F0F0"|'''Column heading 2''' | ||
|bgcolor = "# | |bgcolor = "#F0F0F0"|'''Column heading 3''' | ||
|- | |- | ||
|bgcolor = "# | |bgcolor = "#F7F7F7"|row heading 1 | ||
|bgcolor = "# | |bgcolor = "#FFFFEO"|Text | ||
|bgcolor = "# | |bgcolor = "#FFFFEO"|Text | ||
|- | |- | ||
|bgcolor = "# | |bgcolor = "#F7F7F7"|row heading 2 | ||
|bgcolor = "# | |bgcolor = "#FFFFEO"|Text | ||
|bgcolor = "# | |bgcolor = "#FFFFEO"|Text | ||
|} | |} | ||
<br clear="all"> <!-- has the effect that the text does not flow around the table --> | <br clear="all"> <!-- has the effect that the text does not flow around the table --> | ||
</pre> | </pre> | ||
== Yellow Notice == | |||
If you wish to show a notice in a yellow frame , please use the template <pre> {{Ynotice}}</pre> | |||
It looks like: | |||
{{Ynotice}} | |||
'''Master copy''' | |||
| | <pre> | ||
{{Ynotice|text= YOUR TEXT}} | |||
</pre> | |||
== Status of an article == | |||
'''Article to be written''' | |||
{{ArticleToDo}} | |||
Please use the master copy: | |||
<pre>{{ArticleToDo}} | |||
</pre> | |||
'''Article in Progress''' | |||
{{UnderConstruction}} | |||
Please use the master copy: | |||
<pre>{{UnderConstruction}} | |||
</pre> | |||
==Embedding photos in a text == | |||
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. | |||
'' | <pre>[[Image:''full name of the photo''|thumb|center|300px|caption]] </pre> | ||
*'''thumb''': States that the illustration is embedded in a reduced size, given in px = Pixelsl<br> | |||
*'''center''': center <br> | |||
*'''left''': left <br> | |||
*'''right''': right<br> | |||
*'''300px''' : The image width is 300 pixels; can be amended to meet your own requirements | |||
*'''caption''': The illustration caption is entered here<br> | |||
[[Image:HJS Ca(NO3)2 101703-4-4.jpg|thumb|center|300px|caption]] | [[Image:HJS Ca(NO3)2 101703-4-4.jpg|thumb|center|300px|caption]] | ||
Line 225: | Line 246: | ||
As previously only videos in the format "OGG" were able to be embedded, only videos in this format should be uploaded. | 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: | Videos in the ".ogg" format can be viewed directly on the pages. To do this, enter the following: | ||
Line 244: | Line 253: | ||
<pre>[[image:MgSO4_Kristallisationsvideo.ogg]] </pre> | <pre>[[image:MgSO4_Kristallisationsvideo.ogg]] </pre> | ||
Detailed information on the width, etc., as under " | Detailed information on the width, etc., as under "Embedding photos" using, as an example | ||
with <pre>[[image:MgSO4_Kristallisationsvideo.ogg|thumb|300px|Crystallisation of Magnesiumsulfat]]</pre> the video will be shown as follows. | with <pre>[[image:MgSO4_Kristallisationsvideo.ogg|thumb|300px|Figure 1:Crystallisation of Magnesiumsulfat]]</pre> the video will be shown as follows. | ||
[[image:MgSO4_Kristallisationsvideo.ogg|thumb|300px|Figure 1: Crystallisation of Magnesiumsulfat]] | [[image:MgSO4_Kristallisationsvideo.ogg|thumb|300px|Figure 1: Crystallisation of Magnesiumsulfat]] | ||
<br clear=all> | <br clear=all> | ||
== Weblinks == | == Weblinks == | ||
<references/> | <pre><references/> //all "footnotes" will be shown</pre> | ||
== DynamicPageList == | == DynamicPageList == | ||
Using the "DynamicPageList", it is possible to generate compilations of everything that is tagged using categories, | Using the "DynamicPageList", it is possible to generate compilations of everything that is tagged using categories, | ||
e.g. all pages in the | e.g. all pages in the category "Niter" are listed with the following details: | ||
<pre><dpl> | <pre><dpl> | ||
category= | category = Niter | ||
format = ,\n* [[%PAGE%]],, | |||
</dpl> | </dpl> | ||
</pre> | </pre> | ||
Line 269: | Line 280: | ||
The list (if input available): | The list (if input available): | ||
<dpl> | <dpl> | ||
category= | category = Niter | ||
format = ,\n* [[%PAGE%]],, | |||
</dpl> | </dpl> | ||
Line 280: | Line 292: | ||
The following DPL statements : | The following DPL statements : | ||
<pre><dpl> | <pre><dpl> | ||
category = Nitrat&Salt | category = Nitrat&Salt | ||
include ={Infobox_Salt}:birefringence:refractive_indices:molvolume:solubility :deliqueszenzhumidity | include = {Infobox_Salt}:birefringence:refractive_indices:molvolume:solubility :deliqueszenzhumidity | ||
table=class="wikitable sortable",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|%% | tablerow =%%,bgcolor=lightyellow|%%,bgcolor=lightyellow|%%,bgcolor=lightyellow align=center|%%,bgcolor=lightyellow|%% | ||
suppresserrors = true | |||
</dpl> | </dpl> | ||
</pre> | </pre> | ||
Line 293: | Line 306: | ||
table=class="wikitable sortable",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|%% | tablerow=%%,bgcolor=lightyellow|%%,bgcolor=lightyellow|%%,bgcolor=lightyellow align=center|%%,bgcolor=lightyellow|%% | ||
suppresserrors=true | |||
</dpl> | |||
[[category:templates]] |
Revision as of 10:24, 17 March 2017
<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}}
|
This image or file is licensed under the Creative-Commons-License Attribution - Noncommercial - Share Alike Germany in the version 3.0. You are free:
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}}
|
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:
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}}
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}}
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 SaltWiki, you need to know the name of the file in the repository.
Here as an example:
Call up the template using:
{{MetadataPhoto_upload}}
Appearance of the template for photos:
Description | {{{description}}} |
Source | {{{source}}} |
Date | {{{date}}} |
Author/s | {{{author}}} |
Permission | {{{permission}}} |
Notes | {{{notes}}} |
Master copy
{{MetadataPhoto_upload |description= |source= |date= |author= |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:
Column heading 1 | Column heading 2 | Column heading 3 |
row heading 1 | Text | Text |
row heading 2 | Text | Text |
- 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 = "#F0F0F0" // gives the background colour for the respective field
- class="wikitable sortable" // Click for all rows sorted by column content
Master copy
{|border="2" cellspacing="0" cellpadding="4" width="52%" align="left" class="wikitable sortable" |+''Table 1: Table heading'' <!-- insert Table heading --> |- |bgcolor = "#F0F0F0"|'''Column heading 1''' |bgcolor = "#F0F0F0"|'''Column heading 2''' |bgcolor = "#F0F0F0"|'''Column heading 3''' |- |bgcolor = "#F7F7F7"|row heading 1 |bgcolor = "#FFFFEO"|Text |bgcolor = "#FFFFEO"|Text |- |bgcolor = "#F7F7F7"|row heading 2 |bgcolor = "#FFFFEO"|Text |bgcolor = "#FFFFEO"|Text |} <br clear="all"> <!-- has the effect that the text does not flow around the table -->
Yellow Notice[edit]
If you wish to show a notice in a yellow frame , please use the template
{{Ynotice}}
It looks like:
{{{text}}} |
Master copy
{{Ynotice|text= YOUR TEXT}}
Status of an article[edit]
Article to be written
Authors Wanted! This article is waiting to be written. Please have first a look to the German SalzWiki. If there is an article on that topic you may start with an English version of it. |
Please use the master copy:
{{ArticleToDo}}
Article in Progress
This article will be released soon. |
Please use the master copy:
{{UnderConstruction}}
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: left
- right: right
- 300px : The image width is 300 pixels; can be amended to meet your own requirements
- caption: The illustration caption is entered here
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.
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):
- Niter
- Equilibrium moisture content as a function of temperature
- Hygroscopicity of salts and their equilibrium moisture content
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):