Module:Annotated link/doc: Difference between revisions

Content deleted Content added
added |abbr_title= and details of |abbr= <abbr> tagging + ce
desc_first_letter_case: adjusted since making uppercase the default
Line 67:
 
=== desc_first_letter_case ===
Since Module:GetShortDescription could return a description from wikidata, which are formatted with a lowercase first letter, whereas [[WP:SDFORMAT|short descriptions]] on en Wikipedia are formatted with an uppercase first letter, and simply to give control over that display to the editor; this module will automatically transform the first character of wikidata descriptions to uppercase. If desired; stating either {{para|desc_first_letter_case|upper}} or {{para|desc_first_letter_case|lower}} will set the first character accordingly:
 
Explicitly requesting the wikidata description for an entity (to be explained in [[#Module:GetShortDescription parameters]] (below)) willwould append an inappropriately formatted description, but this is fixed:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=The Partisan |quote=yes |only=wikidata }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=The Partisan|quote=yes|only=wikidata}}
ByIf appropriate; stating {{para|desc_first_letter_case|upperlower}} the module resolvesoverrides that issuedefault:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=The Partisan |quote=yes |only=wikidata |desc_first_letter_case=upperlower }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=The Partisan|quote=yes|only=wikidata|desc_first_letter_case=upperlower}}
 
=== Module:GetShortDescription parameters ===