Template:add etymology/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "{{documentation subpage}} {{uses lua|Module:add etymology}} This template reformats entry pages ready for the addition of another etymology. == Usage == Start editing the '''language-specific section''', and replace '''all of the present text''' with the following: <nowiki>{{subst:add etymology|</nowiki>''language code''}} This will reformat the page with the correct etymology headings. It will also reshuffle sections if adding another etymology to an originally sing...")
 
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
* has etymology headings without {{temp|Etymology}}, the heading template will replace them.
* has etymology headings without {{temp|Etymology}}, the heading template will replace them.


If you do not edit the target language section and use this on the whole page instead, '''you risk deleting all other language entries and whole-page templates''' if you simply replace all the present text with the template.
<big>Note: if you do not edit the target language section and use this on the whole page instead, '''you risk deleting all other language entries and whole-page templates''' if you simply replace all the present text with the template.</big>


== Examples ==
== Examples ==
Line 122: Line 122:
|ryn=aiŗad
|ryn=aiŗad
}}.
}}.
==== Verb ====
==== Verb ====
{{rad-verb
{{rad-verb
Line 186: Line 187:
</pre>
</pre>


You will note that some of the sections in the original etymology have been rearranged in order to add the nested etymology heading.
You will note that some of the sections in the original etymology (namely '''Pronunciation''') have been rearranged in order to add the nested etymology heading.
</div></div>
</div></div>
<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="padding:0.2em 0.6em 0.2em 0.6em; border-right:1px solid #BEBEBE; border-bottom:1px dotted black; background:#EDEDED">'''Entry with multiple etymology headings'''
<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="padding:0.2em 0.6em 0.2em 0.6em; border-right:1px solid #BEBEBE; border-bottom:1px dotted black; background:#EDEDED">'''Entry with multiple etymology headings'''

Latest revision as of 20:16, 12 August 2024

Edit-copy green.svg Documentation for Template:add etymology. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template reformats entry pages ready for the addition of another etymology.

Usage

Start editing the language-specific section, and replace all of the present text with the following:

{{subst:add etymology|language code}}

This will reformat the page with the correct etymology headings. It will also reshuffle sections if adding another etymology to an originally single-etymology entry. The template will also add the heading for new etymology section, so etymology information should be entered directly below the template, rather than typing out another etymology heading.

If the original page:

  • already has multiple etymologies, the template will simply add another heading (automatically counted).
  • has no etymology heading, one will be added.
  • has etymology headings without {{Etymology}}, the heading template will replace them.

Note: if you do not edit the target language section and use this on the whole page instead, you risk deleting all other language entries and whole-page templates if you simply replace all the present text with the template.

Examples

Entry with one etymology heading
Entry with multiple etymology headings
Entry with no etymology heading