साँचा:PhysicsNavigation

मुक्त ज्ञानकोश विकिपीडिया से
[[{{{Name}}}]]
इस संदूक को: [[Template:{{{Name}}}|देखें]]  [[Template talk:{{{Name}}}|संवाद]]  [{{fullurl:साँचा:{{{Name}}}|action=edit}} संपादन]
परिचय का प्रतीक साँचा परिचय[देखें] [संपादन] [इतिहास] [पर्ज .]
WARNING ! THIS IS JUST A DRAFT !!

This template creates a naviagtion template for a larger subject when supplied with the desired topic and this subtopics. It is specially purposed for e.g. browsing in Physics subfield, while mentioning all necessary topics

Usage[संपादित करें]

Please remove the parameters that are left blank.

{{PhysicsNavigation
|Name       =
|Image      =
|Label      =
|KeyItems   =
|Topic1     =
|Items1     =
|Topic2     =
|Items2     =
  ...
|Topic8     =
|Items8     =
|Scientists =
}}

Parameters[संपादित करें]

Mandatory[संपादित करें]

Name
The name of the template, which is needed for the "v · d · e" ("view · discuss · edit") links to work properly on all pages where the template is used. You can enter PhysicsNavigation/doc for this value as a shortcut.
Topic1
The Name or Category of the Subfields, can also be a link
Items1
The links to the subfield, please use
<br \>
for new line and · for separating the fields

Optional[संपादित करें]

Image
An imaga under the name of the template
Label
A generall Label, most likly a math formular like
<math>\part \int L ds = 0</math>
Topic2
Other subfields
Items2
The links to the subfields, please use <pre><br \> for new line and · for separating the fields
Scientists
An List of Scientists with importand contribuitions in this field.


Examples[संपादित करें]

Example 1[संपादित करें]

{{PhysicsNavigation
|Name  = Plasmaphysics
|Image = Plasma.jpg
|KeyItems = [[Plasma]] · [[MHD]]
|Topic1 = Description
|Items1 = [[Vlasov]] · [[MHD]]<br \> [[Two-Fluid]]
}}

Example 2[संपादित करें]

{{PhysicsNavigation
|Name = Continuum mechanics
|Image = BernoullisLawDerivationDiagram.png
|KeyItems = [[Conservation of mass]]<br />[[Conservation of momentum]]<br />
[[Navier-Stokes equations]]
|Topic1 = [[Classical mechanics]]
|Items1 = [[Stress (physics)|Stress]] · [[Strain (materials science)|Strain]]
 · [[Tensor]]<br />
|Topic2 = [[Solid mechanics]]
|Items2 = [[Solid]]s · [[Elasticity (physics)|Elasticity]]<br />
[[Plasticity (physics)|Plasticity]] · [[Hooke's law]]<br />[[Rheology]] · [[Viscoelasticity]]
|Topic3 = [[Fluid mechanics]]
|Items3 = [[Fluid]]s · [[Fluid statics]]<br />[[Fluid dynamics]]
 · [[Viscosity]] · [[Newtonian fluid]]s<br />[[Non-Newtonian fluid]]s<br />[[Surface tension]]
|Scientists = [[Isaac Newton|Newton]] · [[George Gabriel Stokes|Stokes]]
 · [[Claude-Louis Navier|Navier]]
|}}

Example 3[संपादित करें]

That the Navigation Box automatically collapse if the user view an item which is defined inside a <italic>Topic<italic/>. You have to pass the cTopic variable to PhysicsNavigation.

cTopic = {{{cTopic}}}

for example

{{PhysicsNavigation
|Name = String theory
|Image = Point&string.png
|KeyItems = [[Superstring theory]]
|Topic1 = Theory
|Items1 = [[Bosonic string theory]]<br />[[M-theory]] ([[M-theory (simplified)|simplified]])<br />
[[type I string theory|Type I string]] · [[type II string theory|Type II string]]<br />
[[String field theory]] · [[Heterotic string]]
|Topic2 = Concepts
|Items2 = [[String (physics)|Strings]] · [[Branes]] 
|Topic3 = Related Topics
|Items3 = [[Supersymmetry]] · [[Supergravity]] · [[Quantum gravity]]
|Scientists = [[Edward Witten|Witten]]
|cTopic = {{{cTopic}}}
}}

now inside the views page, add the template plus the parameter cTopic which is named after the browsed topic. Note both names have to matched exactly ! Example in the page about Branes add

{{String-theory|cTopic=Concepts}}


Note
If you know a way how to avoid explicitly adding the cTopic line to the template, please let me now !!!


solid red; border-bottom:2px solid red; border-left:1px solid red;"
Note
If you know a way how to avoid axplicitly add the cTopic line to the template, please let me now


Results[संपादित करें]

Example 1 Example 2 Example 3
Plasmaphysics
Plasma · MHD
इस संदूक को: देखें  संवाद  संपादन
Continuum mechanics
Conservation of mass
Conservation of momentum
Navier-Stokes equations
इस संदूक को: देखें  संवाद  संपादन
स्ट्रिंग सिद्धांत
अति स्ट्रिंग सिद्धांत
इस संदूक को: देखें  संवाद  संपादन

See also[संपादित करें]