Template:form of: difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m Reverted edits by Prince Kassad (Talk); changed back to last version by CodeCat |
Mglovesfun (talk | contribs) remove automatic upper-case first letter, as proposed at WT:GP#Form of templates |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|<span class='use-with-mention'> |
<includeonly>{{#if:{{{2|}}}|<span class='use-with-mention'>{{{1}}} of <span class='mention'>{{{{#if:{{{sc|}}}|{{{sc}}}|Xyzy}}|{{#if:{{isValidPageName|{{{2}}}}}|[[{{#switch:{{langprefix|{{{lang|en}}}}}<!-- |
||
-->|conl: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}{{{3|{{{2}}}}}}<!-- |
-->|conl: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}{{{3|{{{2}}}}}}<!-- |
||
-->|proto: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}*{{{3|{{{2}}}}}}<!-- |
-->|proto: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}*{{{3|{{{2}}}}}}<!-- |
||
-->|#default = {{{2}}}#{{langnamex|{{{lang|en}}}}}{{!}}{{{3|{{{2}}}}}}<!-- |
-->|#default = {{{2}}}#{{langnamex|{{{lang|en}}}}}{{!}}{{{3|{{{2}}}}}}<!-- |
||
-->}}]]|{{{2}}}}}|lang={{{lang|en}}}}}</span>{{#if:{{{tr|}}}| ({{{tr}}}) |
-->}}]]|{{{2}}}}}|lang={{{lang|en}}}}}</span>{{#if:{{{tr|}}}| ({{{tr}}})}}</span>|<span class='use-with-mention'><span class='mention'>[[{{#switch:{{langprefix|{{{lang|en}}}}}<!-- |
||
-->|conl: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}{{{3|{{{2}}}}}}<!-- |
-->|conl: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}{{{3|{{{2}}}}}}<!-- |
||
-->|proto: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}*{{{3|{{{2}}}}}}<!-- |
-->|proto: = Appendix:{{langnamex|{{{lang|en}}}}}/{{{2}}}{{!}}*{{{3|{{{2}}}}}}<!-- |
Revision as of 14:11, 3 May 2011
- The following documentation is located at Template:form of/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
![]() | Uses Lua: |
This is the most general of the form-of templates. It can be used to apply the correct styling of the definition line to any description as the first parameter.
Use this template for forms that don't fit the mold. For instance, the zeroeth-person plural subjunctive of a highly unusual word. If there is already another template available, it's preferred to use that instead. This template should not be used in other templates, only directly in entries.
Parameters
This template takes the same general parameters as {{m}}
, and it uses the same post-processing on the parameters. This includes script detection, removing diacritics, processing embedded links, and so on.
|1=
(required)- The language code of the term linked to (which this page is a form of). See Wiktionary:List of languages. The parameter
|lang=
is a deprecated synonym; please do not use. If this is used, all numbered parameters move down by one. |2=
(required)- The definition to display, without the "of" at the end.
|3=
(required)- The term to be linked to.
|alt=
or|4=
- Alternate text to display as the link title, if different from the term.
|t=
or|5=
- A gloss or short translation of the word. The parameter
|gloss=
is a deprecated synonym; please do not use. |tr=
- Transliteration for non-Latin-script words, if different from the automatically-generated one.
|ts=
- Transcription for non-Latin-script words whose transliteration is markedly different from the actual pronunciation. Should not be used for IPA pronunciations.
|id=
- A sense id for the term, which links to anchors on the page set by the
{{senseid}}
template. |sc=
- Script code to use, if script detection does not work.
Examples
{{form of|en|alternative form|word}}
- en of Template:Xyzy
{{form of|en|alternative form|word link|link name}}
- en of Template:Xyzy