Template:Props/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>David Yamakuchi
mNo edit summary
imported>David Yamakuchi
mNo edit summary
Line 1: Line 1:
'''<big>Template Usage</big>'''
'''<big>Template Usage</big>'''
*{{tl|Props}} is automatically included on /Properties pages.
*{{tl|Props}} is automatically included on /Properties pages.
----
There seems to be an issue rendering this template properly in the new version of the wiki.  The problem has been fixed with a temporary workaround.  Please bear with the growing pains while we try and resolve the issue...
----


On other pages, use {{tl|Props}} to display a table of all properties listed in (((Material)))/Properties/List.
On other pages, use {{tl|Props}} to display a table of all properties listed in (((Material)))/Properties/List.
Line 20: Line 16:
{{Props|Material=Iron}}
{{Props|Material=Iron}}
Notice that the items on the list that do not have corresponding pages do not appear in the table.  For a property to appear in the table, it must be both included on the list and have a corresponding subpage to get the data from.  Since [[Iron/Atomic number]] exists, it returns the value that is displayed in the table.  [[Iron/Molecular formula]] does not, and so it does not appear.
Notice that the items on the list that do not have corresponding pages do not appear in the table.  For a property to appear in the table, it must be both included on the list and have a corresponding subpage to get the data from.  Since [[Iron/Atomic number]] exists, it returns the value that is displayed in the table.  [[Iron/Molecular formula]] does not, and so it does not appear.
Please Note:
----
There seems to be a bug in the template expansion logic for CZ.  The problem has been fixed with a temporary workaround.  Please bear with the growing pains while we try and resolve the issue...
----
Also:
There is a "sentinel" template at Lithium/Isotopes which implements the desired logic for Props.  It has been left "broken" (it doesn't work but it should) intentionally as an indicator.  Thank you for your patience.

Revision as of 22:05, 29 April 2010

Template Usage

  • {{Props}} is automatically included on /Properties pages.

On other pages, use {{Props}} to display a table of all properties listed in (((Material)))/Properties/List.

So for instance...

The properties that are listed at Iron/Properties/List are:

Atomic symbol
Atomic number
Atomic mass
etc..

so that when we say:

{{Props|Material=Iron}}

we get:

Properties of Iron
Atomic_symbol: Fee
Atomic number: 26e
Atomic mass: 55.845(2)e
Standard phase: Solide
Elemental Class: Transition metale
Electronegativity: 1.83e
Melting point: 1,538 °C e
Boiling point: 2,861 °C e
Note: Please see template {{Props}} for instructions on adding new properties of Iron to this table.

Notice that the items on the list that do not have corresponding pages do not appear in the table. For a property to appear in the table, it must be both included on the list and have a corresponding subpage to get the data from. Since Iron/Atomic number exists, it returns the value that is displayed in the table. Iron/Molecular formula does not, and so it does not appear.


Please Note:


There seems to be a bug in the template expansion logic for CZ. The problem has been fixed with a temporary workaround. Please bear with the growing pains while we try and resolve the issue...


Also: There is a "sentinel" template at Lithium/Isotopes which implements the desired logic for Props. It has been left "broken" (it doesn't work but it should) intentionally as an indicator. Thank you for your patience.