Module:Annotated link/doc: Difference between revisions

Content deleted Content added
removing instant health check for now
added details for |template_link
Line 5:
<pre><nowiki>{{#invoke:AnnotatedLink|main
 
|name= |template_link= |display= |quote= |abbr= |abbr_title= |aka= |wedge= |dash= |desc_first_letter_case=
 
|link_lang= |link_lang_italic= |link_lang_nocat= |link_lang_size= |link_lang_cat= |link_lang_rtl=
Line 28:
:'''Result:''' {{#invoke:AnnotatedLink|main|name=The Partisan}}
This and the following example song titles should be double quoted per [[MOS:POPMUSIC]]; that will be handled by [[#quote]] (below), and you will see the parameters in use where appropriate from here on.
 
=== template_link ===
If the linked page is in the [[WP:TEMPLATE|Template]] namespace; the link will be formatted in the manner expected by {{tlx|template link}}:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=Template:Annotated link }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=Template:Annotated link}}
Stating {{para|template_link|code}} will display the link formatted with {{tag|code}}:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=Template:Annotated link |template_link=code }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=Template:Annotated link|template_link=code}}
Stating {{para|template_link|no}} will disable this affectation:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=Template:Annotated link |template_link=no }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=Template:Annotated link|template_link=no}}
The following parameters will be ignored if the link is in the Template namespace: {{para|display}}, {{para|quote}}, {{para|abbr}} and all foreign language link options under {{para|link_lang}}; see [[#Foreign language text]] (below).
 
=== display ===