Module:Annotated link/doc: Difference between revisions

Content deleted Content added
desc_first_letter_case: adjusted since making uppercase the default
desc_first_letter_case: removed examples and fixed prose since realising I had things back to font (nice Freudian slip)
Line 67:
 
=== desc_first_letter_case ===
SinceShort Module:GetShortDescriptiondescriptions couldon returnen a description from wikidata, which are formatted with a lowercase first letter, whereasWikipedia [[WP:SDFORMAT|shortshould be descriptionsformatted]] on en Wikipedia are formatted with an uppercase first letter, andbut simplythe totypical giveapplication controlof overthis thatmodule displaywill torequire the editorfirst character to be lowercase. By default; this module will automaticallyensure transformall the firstshort characterdescriptions ofretrieved wikidataby descriptionsModule:GetShortDescription are transformed to uppercase.start Ifwith desired;a statinglowercase eitherfirst letter, but this may be overridden if required using {{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)) would 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}}
If appropriate; stating {{para|desc_first_letter_case|lower}} the module overrides that default:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=The Partisan |quote=yes |only=wikidata |desc_first_letter_case=lower }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=The Partisan|quote=yes|only=wikidata|desc_first_letter_case=lower}}
 
=== Module:GetShortDescription parameters ===