வார்ப்புரு:M
&lt;includeonly&gt;{{replace|
 {{#if:{{{1|}}} 
 |&lt;!-- Has a non-empty parameter: --&gt;
 &lt;!-- But first: handle special case. --&gt;
 {{#ifeq: {{lc: {{{1|}}} }} | mag |
   [[நிலநடுக்கம்|Mag.]]
 &lt;!-- 
   [[நிலநடுக்கம்#Magnitude|{{h:title|Earthquake magnitude|Mag.|dotted=no}}]]
 H:title doesn't work in sortable tables.
   --&gt;
  |&lt;!-- else: --&gt;
 
 &lt;!-- Big switch statement of magnitude types starts here: --&gt;
 {{#switch: {{lc: {{{1}}}}} 
 
 &lt;!-- [* Deprecated: &quot;Generic &quot;M&quot; for magnitude, e.g. for table header usage.&quot;
   Temporarily maintained because it's already in use in several articles.
   Category added for tracking  --&gt;
 | magnitude = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு|{{H:title|Magnitude|M|dotted=no}}]]
  |M}}
 &lt;!-- Deprecated! Remove when category is clear *]  --&gt;
 
 &lt;!-- These first several cases are for preliminary or dubious cases.
   They use {H:title} that creates the dotted underscore
   to indicate they are doubtful and require attention. --&gt;
 
 &lt;!-- Unknown mag. scale --&gt;
 |  ? = {{H:title|Unknown mag. scale|M}}
 &lt;!-- That's the &quot;Main_other&quot; template. Not &quot;Main&quot;. --&gt;
 
 &lt;!-- Scale/mag. questioned --&gt;
 | ?? = {{H:title|Scale/mag. questioned|M}}
 
 &lt;!-- &quot;Richter&quot; questioned --&gt;
 | r? = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#ML|{{H:title|Richter mag. scale|M|dotted=no}}]]
  |M
 }}
 
 &lt;!-- ---------------------------------------------------
   Section numbers refer to MNSOP-2 Chapter 3, and/or 
   IASPEI/MNSOP-2 Information Sheet 3.
   --&gt;
 
 &lt;!-- Source says &quot;unknown&quot;. --&gt;
 | uk | unk | ukn | unknown  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Muk|{{H:title|Unknown mag. scale|M&lt;sub&gt;uk&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;uk&lt;/sub&gt;
 }}
 
 &lt;!-- §4.1 Local (&quot;Richter&quot;) mag. --&gt;
 | l  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#ML|{{H:title|'Local' mag. scale|M&lt;sub&gt;L&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;L&lt;/sub&gt;
 }}
 
 
 &lt;!-- §3.2.4.7 JMA --&gt;
 | jma | j  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mjma|{{H:title|JMA mag.|M&lt;sub&gt;JMA&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;JMA&lt;/sub&gt;
 }}
 
 &lt;!-- Moment mag. dot: implicit w  --&gt;
 | .  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mw|{{H:title|Moment mag. scale|M|dotted=no}}]]
  |M
 }}
 
 &lt;!-- § §4.7 Moment mag.--&gt;
 | w  = {{#if:{{{link|}}}
  |[[உந்தத்திறன் ஒப்பளவு|{{H:title|Moment mag. scale|M&lt;sub&gt;w&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;w&lt;/sub&gt;
 }}
 
 &lt;!-- §  Mwp from P-waves --&gt;
 | wp  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mwp|{{H:title|Mw mag. from P-waves|M&lt;sub&gt;wp&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;wp&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.8.3  Mwpd from P-waves --&gt;
 | wpd  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mwpd|{{H:title|Mw mag. from P-wave duration|M&lt;sub&gt;wpd&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;wpd&lt;/sub&gt;
 }}
 
 &lt;!-- §  Mwb from body-waves --&gt;
 | wb  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mwb|{{H:title|Mw mag. from body-waves|M&lt;sub&gt;wb&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;wb&lt;/sub&gt;
 }}
 
 &lt;!-- §  Mwc from centroid moment --&gt;
 | wc  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mwc|{{H:title|Mw mag. from centroid|M&lt;sub&gt;wc&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;wc&lt;/sub&gt;
 }}
 
 &lt;!-- §  Mwr at regional distances --&gt;
 | wr  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mwr|{{H:title|Mw mag. at regional distance|M&lt;sub&gt;wr&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;wr&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.8.6 Mww from W-phase centroid mom.--&gt;
 | ww  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mww|{{H:title|Mw mag. from W-phase|M&lt;sub&gt;ww&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;ww&lt;/sub&gt;
 }}
 
 &lt;!-- Surface wave variants --&gt;
 &lt;!-- §3.2.5.1 §4.4 Surface-wave mag.  --&gt;
 | s  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Ms|{{H:title|Surface-wave mag.|M&lt;sub&gt;s&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;s&lt;/sub&gt;
 }}
 
 &lt;!-- §4.4 Gutenberg-Richter 1954 version of M&lt;s&gt; --&gt;
 | gr  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mgr|{{H:title|1954 Gutenberg-Richter mag.|M&lt;sub&gt;GR&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;GR&lt;/sub&gt;
 }}
 
 &lt;!-- § §4.4 Surface-wave 20 sec. --&gt;
 | s20 = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Ms|{{H:title|Surface-wave mag.|M&lt;sub&gt;s20&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;s20&lt;/sub&gt;
 }}
 
 &lt;!-- § §4.4 Surface-wave mag. --&gt;
 | sbb = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Ms|{{H:title|Surface-wave mag.|M&lt;sub&gt;sBB&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;sBB&lt;/sub&gt;
 }}
 
 &lt;!-- § Surface wave (vertical) --&gt;
 | z  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mz|{{H:title|Surface-wave vertical mag.|M&lt;sub&gt;z&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;z&lt;/sub&gt;
 }}
 
 &lt;!-- § Surface wave, Chinese --&gt;
 | s7  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Ms7|{{H:title|Chinese surface-wave mag.|M&lt;sub&gt;s7&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;s7&lt;/sub&gt;
 }}
 
 &lt;!-- § Surface wave, Nuttli (1983) --&gt;
 | sn  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Msn|{{H:title|Nuttli surface-wave mag.|M&lt;sub&gt;sn&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;sn&lt;/sub&gt;
 }}
 
 &lt;!-- § Vanek --&gt;
 | V  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#MV|{{H:title|Vanek mag.|M&lt;sub&gt;V&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;V&lt;/sub&gt;
 }}
 
 &lt;!-- Averaged M&lt;s&gt; from Rothe 1969. Mentioned in Stover and Coffman 1993. --&gt;
 | r  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#MR|{{H:title|Rothe Ms mag.|M&lt;sub&gt;R&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;R&lt;/sub&gt;
 }}
 
 &lt;!-- - Body-wave variants --&gt;
 | b  = {{#ifeq: {{{1|}}}  &lt;!-- test if 'b' was really 'B' --&gt;
 &lt;!-- §3.2.5.2 §4.3 mB Body-wave broadband mag. --&gt;
   |B
    | {{#if:{{{link|}}}
     |[[நிலநடுக்க அளவீடு#mB|{{H:title|Body-wave mag.|mB|dotted=no}}]]
     |mB
     }}
    &lt;!--  §4.3 mb Body-wave short-period mag. --&gt;
    | {{#if:{{{link|}}}    &lt;!-- otherwise 'b' --&gt;
     |[[நிலநடுக்க அளவீடு#mb|{{H:title|Body-wave mag.|mb|dotted=no}}]]
     |mb
     }}
   }}&lt;!-- endif  --&gt;
 
 &lt;!-- 'bigb' code is an alternate --&gt;
 &lt;!-- §4.3 mB Body-wave broadband mag. --&gt;
 | bigb = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#mB|{{H:title|Body-wave mag.|mB|dotted=no}}]]
  |mB
 }}
 
 &lt;!-- §4.2 mBbb Body-wave broadband mag. --&gt;
 | bbb = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#mB|{{H:title|Body-wave mag.|mB&lt;sub&gt;BB&lt;/sub&gt;|dotted=no}}]]
  |mB&lt;sub&gt;BB&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.8.1 mBc Cumulative body-wave mag. --&gt;
 | bc = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#mBc|{{H:title|Cumulative body-wave mag.|mB&lt;sub&gt;c&lt;/sub&gt;|dotted=no}}]]
  |mB&lt;sub&gt;c&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.4.4 §4.6 mbLg wave mag. --&gt;
 | blg = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#mbLg|{{H:title|Lg-wave mag.|mb&lt;sub&gt;Lg&lt;/sub&gt;|dotted=no}}]]
  |mb&lt;sub&gt;Lg&lt;/sub&gt;
 }}
 
 &lt;!-- §4.6 Nuttli (mbLg wave) mag. --&gt;
 | n  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#mN|{{H:title|Nuttli (mbLg) mag.|m&lt;sub&gt;N&lt;/sub&gt;|dotted=no}}]]
  |m&lt;sub&gt;N&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.4.5 Coda length mag. --&gt;
 | c  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mc|{{H:title|Coda length mag.|M&lt;sub&gt;c&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;c&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.4.5 Duration mag --&gt;
 | d  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Md|{{H:title|Duration mag.|M&lt;sub&gt;d&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;d&lt;/sub&gt;
 }}
 
 &lt;!-- § Scalar seismic moment (zero) --&gt;
 &lt;!-- Italicized because it is a variable assigned a value, not the scale of a value. --&gt;
 | 0  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#M0|{{H:title|Seismic moment|''M''&lt;sub&gt;0&lt;/sub&gt;|dotted=no}}]]
  |''M''&lt;sub&gt;0&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.7.2 Energy mag. --&gt;
 | e  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Me|{{H:title|Energy mag. scale|M&lt;sub&gt;e&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;e&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.4.5 K-class mag. --&gt;
 | k  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#MK|{{H:title|K-class mag. scale|M&lt;sub&gt;(K)&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;(K)&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.6.7 tsunami mag. --&gt;
 | t  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mt|{{H:title|Tsunami mag. scale|M&lt;sub&gt;t&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;t&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.8.5 mantle mag. --&gt;
 | m  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mm|{{H:title|mantle mag. scale|M&lt;sub&gt;m&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;m&lt;/sub&gt;
 }}
 
 &lt;!-- §3.2.6.6 macroseismic mag. --&gt;
 | ms  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mms|{{H:title|Macroseismic est. mag.|M&lt;sub&gt;ms&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;ms&lt;/sub&gt;
 }}
 
 &lt;!-- § 3.2.6.6 felt-area --&gt;
 | fa  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mfa|{{H:title|Felt-area est. mag.|M&lt;sub&gt;fa&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;fa&lt;/sub&gt;
 }}
 
 &lt;!-- Toppozada felt-area for Calif. --&gt;
 | la  = {{#if:{{{link|}}}
  |[[நிலநடுக்க அளவீடு#Mla|{{H:title|Felt-area est. mag.|M&lt;sub&gt;&lt;kbd&gt;la&lt;/kbd&gt;&lt;/sub&gt;|dotted=no}}]]
  |M&lt;sub&gt;&lt;kbd&gt;la&lt;/kbd&gt;&lt;/sub&gt;
 }}
 
 &lt;!-- - I/i: two different cases --&gt;
 | i  = {{#ifeq: {{{1|}}}  &lt;!-- test if 'i' was really 'I' --&gt;
   &lt;!-- &quot;M&lt;I&gt;&quot;: Mag. from Intensity. Per Johnston 1996. --&gt;
   |I
    | {{#if:{{{link|}}}
     |[[நிலநடுக்க அளவீடு#MI|{{H:title|Mw mag. est. from intensity|M&lt;sub&gt;&lt;kbd&gt;I&lt;/kbd&gt;&lt;/sub&gt;|dotted=no}}]]
     |M&lt;sub&gt;&lt;kbd&gt;I&lt;/kbd&gt;&lt;/sub&gt;
     }}
    &lt;!--  Else &quot;M&lt;i&gt;&quot;, apparently a USGS synonym for Mwp  --&gt;
    | {{#if:{{{link|}}}    
     |[[நிலநடுக்க அளவீடு#Mi|{{H:title|Mw mag. from P-waves|M&lt;sub&gt;&lt;kbd&gt;i&lt;/kbd&gt;&lt;/sub&gt;|dotted=no}}]]
     |M&lt;sub&gt;&lt;kbd&gt;i&lt;/kbd&gt;&lt;/sub&gt;
     }}
   }}&lt;!-- endif  --&gt;
 
 
 &lt;!-- test ------------------------------- --&gt;
 | x = {{#if:{{{link|}}} 
  |[[நிலநடுக்க அளவீடு#Magnitude scales|M&lt;sub&gt;x&lt;/sub&gt;]]
  |M&lt;sub&gt;x&lt;/sub&gt;
 }}
 &lt;!-- ------------------------------------ --&gt;
 
 &lt;!-- Not found --&gt;
 | {{red|&amp;#91;[[:Template:M]] used with invalid code '&lt;b&gt;{{{1|}}}&lt;/b&gt;'. See documentation.]}}
 }}&lt;!-- Switch statement of magnitude types ends here.
 
   Now we add the optional arguments.
   Don't permit whitespace from here on until we have added the final
   value/relation, because whitespace will create double spaces and
   thwart the &amp;nbsp;s.
   Use comments like this one to join the if statements instead.
 
   Optional superscript source for catalog:
 --&gt;{{#if:{{{src|}}}|&lt;sup&gt;&amp;nbsp;({{{src}}})&lt;/sup&gt;}}&lt;!--
 
   Optional value or relation:
 --&gt;{{#if:{{{2|}}}|&amp;nbsp;{{replace|{{{2}}}| |&amp;nbsp;}} }}
 }}&lt;!-- endif (!&quot;mag&quot; w/i 'parameter') ** --&gt;
 |&lt;!-- if: No parameter: -- --&gt;
  {{red|&amp;#91;[[:Template:M]] used without a valid code. See documentation.]}}
 }}&lt;!-- endif (parameter) --&gt;
 |
 ||}}&lt;!-- end replace --&gt;&lt;/includeonly&gt;&lt;noinclude&gt;
 {{documentation}}