12,268
edits
No edit summary |
TheNightAvl (talk | contribs) Tag: Manual revert |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{uses lua|Module:head|Module:head/templates| | {{documentation subpage}} | ||
{{uses lua|Module:head|Module:head/templates}} | |||
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 {{temp|kil-adj}}. | |||
==Usage== | |||
For example, on the Radestrian entry {{m|rad|alșa}}: | |||
{{tempn|head|rad|noun|g=in|genitive singular|alșesk|label=count and uncount}} | |||
Generates: | |||
: {{head|rad|noun|g=in|genitive singular|alșesk|head=alșa|nocat=1|label=count and uncount}} | |||
=== Overriding the headword === | |||
The parameter {{para|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 {{temp|rad-noun}}. | |||
For example, on the Radestrian entry {{m|rad|pýr vỉșe}}: | |||
{{tempn|head|rad|noun|g=in|genitive singular|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: | |||
: {{head|rad|noun|g=in|genitive singular|pýj vỉșk|head={{l|rad|pýr}} {{l|rad|vỉș|vỉșe}}|nocat=1}} | |||
==== <code>*word:link*</code> functionality ==== | |||
Instead of typing out links, you can also use <code>*asterisks*</code> around the words to be linked. <code>*word*</code> generates a simple language link, but <code>*word:link*</code> will create a link displaying <code>word</code> and linking to <code>link</code>. | |||
{{tempn|head|rad|noun|g=in|genitive singular|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 the same as above. | |||
==== <code>*word[s]*</code> functionality ==== | |||
If you find yourself repeating stems when typing <code>*words:word*</code>, you can instead type <code>*word[s]*</code>, which will be treated as if it were <code>*words:word*</code>. | |||
{{tempn|head|rad|noun|g=in|genitive singular|pýj vỉșk|'''head=*pýr* *vỉș[e]*'''}} | |||
'''or''' {{tempn|rad-noun|in|gen=pýj vỉșk|'''head=*pýr* *vỉș[e]*'''}} | |||
Generates the same as above. |