Template:head/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
Line 19: Line 19:


  {{tempn|head|rad|noun|g=in|genitive singular|pýj vỉșk|'''head=<nowiki>{{l|rad|pýr}} {{l|rad|vỉș|vỉșe}}</nowiki>'''}}
  {{tempn|head|rad|noun|g=in|genitive singular|pýj vỉșk|'''head=<nowiki>{{l|rad|pýr}} {{l|rad|vỉș|vỉșe}}</nowiki>'''}}
  {{tempn|rad-noun|in|gen=pýj vỉșk|'''head=<nowiki>{{l|rad|pýr}} {{l|rad|vỉș|vỉșe}}</nowiki>'''}}
  '''or''' {{tempn|rad-noun|in|gen=pýj vỉșk|'''head=<nowiki>{{l|rad|pýr}} {{l|rad|vỉș|vỉșe}}</nowiki>'''}}


Generates:
Generates:
Line 28: Line 28:


  {{tempn|head|rad|noun|g=in|genitive singular|pýj vỉșk|'''head=*pýr* *vỉșe:vỉș*'''}}
  {{tempn|head|rad|noun|g=in|genitive singular|pýj vỉșk|'''head=*pýr* *vỉșe:vỉș*'''}}
  {{tempn|rad-noun|in|gen=pýj vỉșk|'''head=*pýr* *vỉșe:vỉș*'''}}
  '''or''' {{tempn|rad-noun|in|gen=pýj vỉșk|'''head=*pýr* *vỉșe:vỉș*'''}}


Generates:
Generates:
: {{head|rad|noun|g=in|genitive singular|pýj vỉșk|head=*pýr* *vỉșe:vỉș*|nocat=1}}
: {{head|rad|noun|g=in|genitive singular|pýj vỉșk|head=*pýr* *vỉșe:vỉș*|nocat=1}}

Revision as of 20:16, 10 March 2024

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

This is a base implementation of the headword part of a dictionary entry.

It is recommended that instead of using this directly, you make a custom template for a language that is better suited to the inflections of the language. For example, whilst this template could very well be used for a Kilitic adjective, there is a specific template {{kil-adj}}.

Usage

For example, on the Radestrian entry alșa:

{{head|rad|noun|genitive singular|alșesk|g=in}}

Generates:

alșa inan (genitive singular alșesk)

Overriding the headword

The parameter |head= will override the headword. This is useful if you want to manually link words in multiword entries which would otherwise be incorrect from the auto-splitter, or if there is a capitalisation mismatch. This also applies in derived templates, such as {{rad-noun}}.

For example, on the Radestrian entry pýr vỉșe:

{{head|rad|noun|genitive singular|pýj vỉșk|head={{l|rad|pýr}} {{l|rad|vỉș|vỉșe}}|g=in}}
or {{rad-noun|in|head={{l|rad|pýr}} {{l|rad|vỉș|vỉșe}}|gen=pýj vỉșk}}

Generates:

pýr vỉșe inan (genitive singular pýj vỉșk)


Instead of typing out links, you can also use *asterisks* around the words to be linked. *word* generates a simple language link, but *word:link* will create a link displaying word and linking to link.

{{head|rad|noun|genitive singular|pýj vỉșk|head=*pýr* *vỉșe:vỉș*|g=in}}
or {{rad-noun|in|head=*pýr* *vỉșe:vỉș*|gen=pýj vỉșk}}

Generates:

pýr vỉșe inan (genitive singular pýj vỉșk)