Module:Annotated link/doc: Difference between revisions

Content deleted Content added
added details for |template_link
juggled explanation of template_link
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 ===
Line 60 ⟶ 48:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=Confédération Mondiale des Activités Subaquatiques |display=World Underwater Federation |abbr=CMAS |abbr_title=Confédération Mondiale des Activités Subaquatiques }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=Confédération Mondiale des Activités Subaquatiques|display=World Underwater Federation|abbr=CMAS|abbr_title=Confédération Mondiale des Activités Subaquatiques}}
 
=== 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}}
The followingpreviously described parameters will be ignored if the link is in the Template namespace: {{para|display}}, {{para|quote}}, {{para|abbr}} and {{para|abbr_title}} – and all foreign language link options under {{para|link_lang}}; (see [[#Foreign language text]] (below)) will be ignored if the link is in the Template namespace.
 
Stating {{para|template_link|no}} will disable this affectationspecial link formatting and the ignorance of the above-mentioned parameters:
:'''Markup:''' <code><nowiki>{{#invoke:AnnotatedLink|main |name=Template:Annotated link |template_link=no |display=Annotated link }}</nowiki></code>
:'''Result:''' {{#invoke:AnnotatedLink|main|name=Template:Annotated link|template_link=no|display=Annotated link}}
 
=== aka ===