Template:WOTD: Difference between revisions

From The Languages of David J. Peterson
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div id='mf-wotd' title='word of the day'>
<div id='mf-fwotd' title='foreign word of the day'>
<noinclude>
{{(!}}<!--
{{Word of the day}}
--> style="border:3px solid #AABBDD; background:#E9F3FF; width:100%; padding:10px; margin-top:33px;"
</noinclude><includeonly><span style="position:relative;left:-10px;top:-10px;">[[File:Writing star.svg|62px|link={{{1|word}}}#English]]</span>
<!-- -->{{!}}-
{| style="border-spacing:0; border:3px solid #AABBDD; background:#E9F3FF; width:100%; padding:10px; margin-top:-47px;"
<!-- -->{{!}} colspan="2" {{!}}<!--
|-
| colspan="2" | {{WOTD/navigation|page_name = Project:Word of the day/{{#ifeq:{{ROOTPAGENAME}}|Word of the day
    | {{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|2}}|Archive
        | {{#titleparts:{{FULLPAGENAME}}|1|3}}
        | {{#if:{{num|{{#titleparts:{{FULLPAGENAME}}|1|2}}}}<!--Does page name have year?-->
            | {{#titleparts:{{FULLPAGENAME}}|1|2}}
            | {{CURRENTYEAR}}
          }}
      }}/
    | {{#ifexist:Project:Word of the day/{{CURRENTYEAR}}/{{{4|{{CURRENTMONTHNAME}}}}} {{{5|{{CURRENTDAY}}}}}|{{CURRENTYEAR}}/}}
  }}{{{4|{{CURRENTMONTHNAME}}}}} {{{5|{{CURRENTDAY}}}}} }}<div style="font-size:150%; border-bottom:1px solid #AAAAAA; padding-left:40px; line-height:22px">Word of the day<span style="font-size:small;"><br />for <span id="WOTD-rss-date">{{{4|{{CURRENTMONTHNAME}}}}} {{{5|{{CURRENTDAY}}}}}</span></span></div>
|-
|'''[[{{{1|word}}}#{{#if:{{{link|}}}|{{ucfirst:{{{link}}}}}|English}}|<span id="WOTD-rss-title">{{{1}}}</span>]]''' ''{{{2}}}''{{#if:{{{term-label|}}}{{{tl|}}}|&#32;{{term-label|en|{{{term-label|{{{tl|}}}}}}|{{{term-label2|{{{tl2|}}}}}}|{{{term-label3|{{{tl3|}}}}}}|{{{term-label4|{{{tl4|}}}}}}|{{{term-label5|{{{tl5|}}}}}}|{{{term-label6|{{{tl6|}}}}}}}}}}
|-


| colspan="2" style="vertical-align:top;" | {{#ifeq:{{{audio|}}}|no
HEADER
    |<!--Do nothing-->
--><div style="position:relative;"><!--
    | {{#if:{{{audio|}}}
--><span style="position:absolute; top:-33px; left:-21px;"><!--
        |<div style="float:right">[[File:{{{audio}}}|noicon]]</div>
-->[[File:Wikinews commentary.svg|55px|link={{{2|word}}}]]<!--
        | {{#invoke:WOTD|check_pages|File:En-au-{{{1}}}.oga|File:En-au-{{{1}}}.ogg|File:En-uk-{{{1}}}.flac|File:En-uk-{{{1}}}.mp3|File:En-uk-{{{1}}}.oga|File:En-uk-{{{1}}}.ogg|File:En-uk-{{{1}}}.wav|File:En-us-{{{1}}}.flac|File:En-us-{{{1}}}.mp3|File:En-us-{{{1}}}.oga|File:En-us-{{{1}}}.ogg|File:En-us-{{{1}}}.wav|format=<div style="float:right">[[%s|noicon]]</div>}}
--></span><!--
      }}
 
  }}<div id="WOTD-rss-description">
--><div style="font-size:150%; border-bottom:1px solid #AAAAAA; padding-left:40px;"><!--
# {{{3}}}
-->Foreign word of the day<!--
{{#if:{{{comment|}}}{{{6|}}}|[[File:PointingHand.svg|20px]]&#32;<span style="font-size:80%;">{{{comment|{{{6}}}}}}</span>}}
--><span style="font-size:0.875rem;"> <!--
-->&nbsp;in <!--
--><span id="WOTD-rss-language"><!--
-->[[{{#invoke:languages/templates|getByCode|{{{1|und}}}|getCanonicalName}}]]<!--
--></span><!--
--></span><!--
--></div><!--
--></div><!--
 
HEADWORD LINE
-->
{{!}}-
{{!}} style="vertical-align:top;" {{!}} <!--
-->{{head|{{{1|und}}}|{{{pos|}}}|sc={{{sc|}}}|head={{#if:{{{3|}}}|[[{{{2|example}}}|{{{3}}}]]|[[{{{2|example}}}]]}}|tr={{{4|}}}}}<!-- If you change this, also change the feedback link below!
 
-->{{#if:{{{head2|}}}<!--
-->|<!--
  --><nowiki/> ''or'' <!--
  -->{{head|{{{1|und}}}|{{{pos|}}}|sc={{{sc|}}}|head={{#if:{{{head2alt|}}}|[[{{{head2}}}|{{{head2alt}}}]]|[[{{{head2}}}]]}}|tr={{{tr2|}}}}}<!--
-->}}<!--
 
--> ''{{#switch:{{{pos|}}}|=(part of speech)|n.=noun|#default={{{pos|}}}}}''<!--
 
DEFINITION
-->
<div id="WOTD-rss-description" style="font-size:100%;">
# {{{5|this is an example}}}{{#if: {{{6|}}} |
# {{{6}}} }}{{#if: {{{7|}}} |
# {{{7}}} }}{{#if: {{{8|}}} |
# {{{8}}} }}{{#if: {{{9|}}} |
# {{{9}}} }}<!--
 
IMAGE / AUDIO
-->
</div>
</div>
|-
{{!}} colspan="2" style="vertical-align:top;" {{!}} <!--
| colspan="2" style="font-size:80%; text-align:center; vertical-align:top;" | [[Project:Word of the day/{{WOTD/previous or next day|arithmetical_operation=-|month={{{4|}}}|day={{{5|}}}}}|← yesterday]] &#124; [[Project:Word of the day|About Word of the Day]] • [[Project:Word of the day/Nominations|Nominate a word]] • <span class="plainlinks" title="Project:Feedback">[https://en.wiktionary.org/w/index.php?title=Project:Feedback&action=edit&section=new&preload=Project:Feedback%2Fpreload&editintro=Project:Feedback%2Fintro&preloadtitle={{urlencode:Word of the day: [[{{{1}}}]]|PATH}} Leave feedback]</span> &#124; [[Project:Word of the day/{{WOTD/previous or next day|arithmetical_operation=+|month={{{4|}}}|day={{{5|}}}}}|tomorrow&nbsp;→]]
--><div style="float:right;"><!--
 
-->{{#if: {{{image|}}} | <!--
-->[[File:{{{image}}}|x{{{overrideimageheight|30}}}px]]<!--
-->{{#if: {{{audio|}}} | <br/> | }}<!--
-->}}<!--
 
-->{{#if: {{{audio|}}} | <!--
-->{{#if: {{{audiodesc|}}} | {{{audiodesc}}}: | }}<!--
-->[[File:{{{audio}}}|noicon]]<!--
-->}}<!--
 
-->{{#if: {{{audio2|}}} | <!--
--><br/>{{#if: {{{audiodesc2|}}} | {{{audiodesc2}}}: | }}<!--
-->[[File:{{{audio2}}}|noicon]]<!--
-->}}<!--
 
-->{{#if: {{{audio3|}}} | <!--
--><br/>{{#if: {{{audiodesc3|}}} | {{{audiodesc3}}}: | }}<!--
-->[[File:{{{audio3}}}|noicon]]<!--
-->}}<!--


|}</includeonly></div><noinclude>{{documentation}}</noinclude>
--></div><!--
 
-->{{#if:{{{comment|}}}|[[File:PointingHand.svg|20px]]&#32;<span style="font-size:80%;">{{{comment|}}}</span>}}<!--
 
LINKS
-->
{{!}}-
{{!}} colspan="2" style="vertical-align:top; font-size:80%; text-align:center;" {{!}}<!--
--> [[Wiktionary:Foreign Word of the Day|About Foreign Word of the Day]]<!--
--> • [[Wiktionary:Foreign Word of the Day#Archive|Archive]]<!--
--> • [[Wiktionary:Foreign Word of the Day/Nominations|Nominate a word]]<!--
--> • <span class="plainlinks" title="Wiktionary:Feedback"><!--
-->[https://en.wiktionary.org/w/index.php?title=Wiktionary:Feedback&action=edit&section=new&preload=Wiktionary:Feedback%2Fpreload&editintro=Wiktionary:Feedback%2Fintro&preloadtitle={{urlencode:Foreign word of the day: [[{{{2|example}}}]]|PATH}} Leave feedback]<!--
--></span><!--
--><div style="float:right; margin-left:15px;">{{{focus|}}}</div><!--
-->
{{!)}}<!--
 
--><noinclude>{{documentation}}</noinclude>
</div>

Revision as of 11:02, 27 April 2023

File:Wikinews commentary.svg
Foreign word of the day  in Undetermined
example (part of speech)
  1. this is an example
About Foreign Word of the DayArchiveNominate a wordLeave feedback

Parameters

  • 1= Language code.
  • sc= Script code (optional, defaults to the language's default)
  • 2= Entry name
  • 3= Display form of the word (if different from entry name)
  • head2= Second entry name (used for words with multiple equivalent forms)
  • head2alt= Display form of second word
  • sc2= Script to use for second word
  • 4= Transliteration
  • pos= Part of speech
  • 5= Definition
  • 6= Definition (optional)
  • 7= Definition (optional)
  • 8= Definition (optional).
  • image= image of the word (for those scripts which are likely to show up as boxes)
  • audio=, audio2=, audio3= audio file(s);
  • audiodesc=, audiodesc2=, audiodesc3= description of the audio files (dialect, for example);
  • focus= description of the focus week;
  • overrideimageheight= define a height in pixels for the image (default is 20 pixels);
  • overridebold=1 prevents the headline from being bold.

Examples

{{WOTD|ine-pro|*suHnús|||son|pos=noun|focus=Reconstructed languages week}}
*suHnús noun
  1. son
About Foreign Word of the DayArchiveNominate a wordLeave feedback
Reconstructed languages week

{{WOTD|got|𐌰𐌿𐌺||auk|for, because|but also|sc=Goth|image=Text-got-auk.png|pos=conjunction|focus=Dead languages week}}
File:Wikinews commentary.svg
Foreign word of the day  in Gothic
Lua error in Module:Languages/doSubstitutions at line 75: Substitution data 'Goth-translit' does not match an existing module.. conjunction
  1. for, because
  2. but also
About Foreign Word of the DayArchiveNominate a wordLeave feedback
Dead languages week

{{WOTD|la|ignis|||fire|audio=La-cls-ignis.ogg|audiodesc=Classical|audio2=La-ecc-ignis.ogg|audiodesc2=Ecclesiastical|pos=noun|focus=Latin week}}
File:Wikinews commentary.svg
Foreign word of the day  in Latin
ignis noun
  1. fire
Classical:noicon
Ecclesiastical:noicon
About Foreign Word of the DayArchiveNominate a wordLeave feedback
Latin week