The wiki has recently been updated. Please contact me by talk page or email if you encounter any issues.

Help:Template:Voweltable: Difference between revisions

From FrathWiki
Jump to navigationJump to search
m (Less confusing)
(Describing usage)
Line 1: Line 1:
<includeonly>{{Templatehelpnote}}</includeonly>
<includeonly>{{Templatehelpnote}}</includeonly>
== What is it for? ==
This template helps you make a table showing the vowels of your language.
In order the template uses [http://meta.wikimedia.org/wiki/Help:Template#Parameters named parameters]; this means more typing, but with 38 parameters which all should be optional it is the only way to make the template manageable &mdash; and easier than coding the whole table yourself each time.
== How does it work? ==
In order to get this:
{{Voweltable| caption = Swedish dialect vowel spellings | i = i | y = y | I = î ''or'' ê | e = e | 2 = ö | 8\ =  &mdash; u | u\ = (u) | 8 = û | E = ä | & = (â) | a = â | &\ = (ô) | 3\ = ô | u = o | o = å | Q = a | A = (a) | @ = (e)}}
you enter this:
<nowiki>{{Voweltable| caption = Swedish dialect vowel spellings | i = i | y = y | I = î ''or'' ê | e = e | 2 = ö | 8\ =  &mdash; u | u\ = (u) | 8 = û | E = ä | & = (â) | a = â | &\ = (ô) | 3\ = ô | u = o | o = å | Q = a | A = (a) | @ = (e)}}</nowiki>
Where each <code>|</code> marks the beginning of a parameter definition of the form <code>''parameter name'' = ''parameter value''</code>.
In order to make the template call clearer you can format for example it like this:
<nowiki>{{Voweltable| caption = Swedish dialect vowel spellings |=
| i = i | y = y  | I = î ''or'' ê | e = e |=
| 2 = ö | 8\ =  &mdash; u | u\ = (u) | 8 = û |=
| E = ä | & = (â) | a = â | &\ = (ô) | 3\ = ô |=
| u = o |  o = å  | Q = a | A = (a)  | @ = (e)}}</nowiki>
Everything from a <code>|=</code> up to the next <code>|</code> is 'invisible' to the wiki engine{{ref|invisible}}, so you can put newlines, comments etc. there.
You may also put any amount of optional whitespace on either side of a <code>|</code> or <code>=</code>.
A parameter value may not contain any <code>|</code> (use {{code|&amp;#124;}} in the value instead! {{-)}}){{ref|equalsign}}
All parameters are optional <!-- in the sense that -->


{{Voweltable|=
{{Voweltable|=
Line 9: Line 44:
  | i    = <tt>i</tt>    &#61; {{BIGIPA|i}}  |=
  | i    = <tt>i</tt>    &#61; {{BIGIPA|i}}  |=
  | y    = <tt>y</tt>    &#61; {{BIGIPA|y}}  |=
  | y    = <tt>y</tt>    &#61; {{BIGIPA|y}}  |=
  | i\  = <tt>i\</tt>  &#61; {{BIGIPA|ɨ}}  |=
  | i\  = <tt>i\</tt>  &#61; {{BIGIPA|?}}  |=
  | u\  = <tt>u\</tt>  &#61; {{BIGIPA|ʉ}}  |=
  | u\  = <tt>u\</tt>  &#61; {{BIGIPA|?}}  |=
  | M    = <tt>M</tt>    &#61; {{BIGIPA|ɯ}}  |=
  | M    = <tt>M</tt>    &#61; {{BIGIPA|?}}  |=
  | u    = <tt>u</tt>    &#61; {{BIGIPA|u}}  |=
  | u    = <tt>u</tt>    &#61; {{BIGIPA|u}}  |=
  | I    = <tt>I</tt>    &#61; {{BIGIPA|ɪ}}  |=
  | I    = <tt>I</tt>    &#61; {{BIGIPA|?}}  |=
  | Y    = <tt>Y</tt>    &#61; {{BIGIPA|ʏ}}  |=
  | Y    = <tt>Y</tt>    &#61; {{BIGIPA|?}}  |=
  | I\  = <tt>I\</tt>  &#61; {{BIGIPA|ɪ̵}} |=
  | I\  = <tt>I\</tt>  &#61; {{BIGIPA|??}} |=
  | U\  = <tt>U\</tt>  &#61; {{BIGIPA|ʊ̶}} |=
  | U\  = <tt>U\</tt>  &#61; {{BIGIPA|??}} |=
  | M_o  = <tt>M_o</tt>  &#61; {{BIGIPA|ɯ̞}} |=
  | M_o  = <tt>M_o</tt>  &#61; {{BIGIPA|??}} |=
  | U    = <tt>U</tt>    &#61; {{BIGIPA|ʊ}}  |=
  | U    = <tt>U</tt>    &#61; {{BIGIPA|?}}  |=
  | e    = <tt>e</tt>    &#61; {{BIGIPA|e}}  |=
  | e    = <tt>e</tt>    &#61; {{BIGIPA|e}}  |=
  | 2    = <tt>2</tt>    &#61; {{BIGIPA|ø}}  |=
  | 2    = <tt>2</tt>    &#61; {{BIGIPA|ø}}  |=
  | 8\  = &nbsp; <tt>8\</tt> &#61; {{BIGIPA|ɵ̟ʷ}}|=
  | 8\  = &nbsp; <tt>8\</tt> &#61; {{BIGIPA|???}}|=
  | @\  = <tt>@\</tt>  &#61; {{BIGIPA|ɘ}}  |=
  | @\  = <tt>@\</tt>  &#61; {{BIGIPA|?}}  |=
  | @    = <tt>@</tt>    &#61; {{BIGIPA|ə}}  |=
  | @    = <tt>@</tt>    &#61; {{BIGIPA|?}}  |=
  | 8    = <tt>8</tt>    &#61; {{BIGIPA|ɵ}}  |=
  | 8    = <tt>8</tt>    &#61; {{BIGIPA|?}}  |=
  | 7    = <tt>7</tt>    &#61; {{BIGIPA|ɤ}}  |=
  | 7    = <tt>7</tt>    &#61; {{BIGIPA|?}}  |=
  | o    = <tt>o</tt>    &#61; {{BIGIPA|o}}  |=
  | o    = <tt>o</tt>    &#61; {{BIGIPA|o}}  |=
  | E    = <tt>E</tt>    &#61; {{BIGIPA|ɛ}}  |=
  | E    = <tt>E</tt>    &#61; {{BIGIPA|?}}  |=
  | 9    = <tt>9</tt>    &#61; {{BIGIPA|œ}}  |=
  | 9    = <tt>9</tt>    &#61; {{BIGIPA|œ}}  |=
  | 3    = <tt>3</tt>    &#61; {{BIGIPA|ɜ}}  |=
  | 3    = <tt>3</tt>    &#61; {{BIGIPA|?}}  |=
  | 3\  = <tt>3\</tt>  &#61; {{BIGIPA|ɞ}}  |=
  | 3\  = <tt>3\</tt>  &#61; {{BIGIPA|?}}  |=
  | V    = <tt>V</tt>    &#61; {{BIGIPA|ʌ}}  |=
  | V    = <tt>V</tt>    &#61; {{BIGIPA|?}}  |=
  | O    = <tt>O</tt>    &#61; {{BIGIPA|ɔ}}  |=
  | O    = <tt>O</tt>    &#61; {{BIGIPA|?}}  |=
  | &    = <tt>&</tt>    &#61; {{BIGIPA|æ}}  |=
  | &    = <tt>&</tt>    &#61; {{BIGIPA|æ}}  |=
  | &\  = <tt>&\</tt>  &#61; {{BIGIPA|ɶ}}  |=
  | &\  = <tt>&\</tt>  &#61; {{BIGIPA|?}}  |=
  | 6    = <tt>6</tt>    &#61; {{BIGIPA|ɐ}}  |=
  | 6    = <tt>6</tt>    &#61; {{BIGIPA|?}}  |=
  | 3\_o = <tt>3\_o</tt> &#61; {{BIGIPA|ɞ̞}} |=
  | 3\_o = <tt>3\_o</tt> &#61; {{BIGIPA|??}} |=
  | V_o  = <tt>V_o</tt>  &#61; {{BIGIPA|ʌ̞}} |=
  | V_o  = <tt>V_o</tt>  &#61; {{BIGIPA|??}} |=
  | O_o  = <tt>O_o</tt>  &#61; {{BIGIPA|ɔ̞}} |=
  | O_o  = <tt>O_o</tt>  &#61; {{BIGIPA|??}} |=
  | a    = <tt>a</tt>    &#61; {{BIGIPA|a}}  |=
  | a    = <tt>a</tt>    &#61; {{BIGIPA|a}}  |=
  | &\_o = <tt>&\_o</tt> &#61; {{BIGIPA|ɶ̞}} |=
  | &\_o = <tt>&\_o</tt> &#61; {{BIGIPA|??}} |=
  | a_x  = <tt>a_x</tt>  &#61; {{BIGIPA|}} |=
  | a_x  = <tt>a_x</tt>  &#61; {{BIGIPA|a?}} |=
  | Q_x  = <tt>Q_x</tt>  &#61; {{BIGIPA|ɒ̽}} |=
  | Q_x  = <tt>Q_x</tt>  &#61; {{BIGIPA|??}} |=
  | A    = <tt>A</tt>    &#61; {{BIGIPA|ɑ}}  |=
  | A    = <tt>A</tt>    &#61; {{BIGIPA|?}}  |=
  | Q    = <tt>Q</tt>    &#61; {{BIGIPA|ɒ}}  |=
  | Q    = <tt>Q</tt>    &#61; {{BIGIPA|?}}  |=
}}
}}
== Notes ==
# {{Note|invisible}} Actually a definition a 'nameless named variable' which doesn't get used in the template.
# {{Note|equalsign}} And a parameter name may not contain any <code>=</code>. Not a problem to us as long as we use a [[CXS]] syllabic consonant  transcription as a parameter name! {{-)}}

Revision as of 13:28, 15 November 2006


What is it for?

This template helps you make a table showing the vowels of your language.

In order the template uses named parameters; this means more typing, but with 38 parameters which all should be optional it is the only way to make the template manageable — and easier than coding the whole table yourself each time.

How does it work?

In order to get this:

  1. REDIRECT Template:Full voweltable

you enter this:

{{Voweltable| caption = Swedish dialect vowel spellings | i = i | y = y | I = î ''or'' ê | e = e | 2 = ö | 8\ =  — u | u\ = (u) | 8 = û | E = ä | & = (â) | a = â | &\ = (ô) | 3\ = ô | u = o | o = å | Q = a | A = (a) | @ = (e)}}

Where each | marks the beginning of a parameter definition of the form parameter name = parameter value.

In order to make the template call clearer you can format for example it like this:

{{Voweltable| caption = Swedish dialect vowel spellings |= 
 | i = i | y = y   | I = î ''or'' ê | e = e |= 
 | 2 = ö | 8\ =  — u | u\ = (u) | 8 = û |= 
 | E = ä | & = (â) | a = â | &\ = (ô) | 3\ = ô |=
 | u = o |  o = å  | Q = a | A = (a)  | @ = (e)}}

Everything from a |= up to the next | is 'invisible' to the wiki engine[1], so you can put newlines, comments etc. there.

You may also put any amount of optional whitespace on either side of a | or =.

A parameter value may not contain any | (use &#124;

in the value instead! )[2]

All parameters are optional


  1. REDIRECT Template:Full voweltable


Notes

  1. ^  Actually a definition a 'nameless named variable' which doesn't get used in the template.
  2. ^  And a parameter name may not contain any =. Not a problem to us as long as we use a CXS syllabic consonant transcription as a parameter name!