Template:For: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(→‎Usage: example)
Line 7: Line 7:
===With no identifying targets===
===With no identifying targets===
This option generates a basic disambiguation option to its identical pagename:
This option generates a basic disambiguation option to its identical pagename:
;Code
;''Code example
<code><nowiki>{{For}}</nowiki></code>
<code><nowiki>{{For}}</nowiki></code>
;Output
;''Output
{{For}}
{{For}}


===With additional targeted identifiers===
===With additional targeted identifiers===
This option generates a number of specific and different article pages:
This option generates a number of specific and different article pages:
;Code
;'Code example
<code><nowiki>{{For|the WikiIndex TourBusStop page|TourBusStop}}</nowiki></code>
<code><nowiki>{{For|the WikiIndex TourBusStop page|TourBusStop}}</nowiki></code>
;Output
;''Output
{{For|the WikiIndex TourBusStop page|TourBusStop}}
{{For|the WikiIndex TourBusStop page|TourBusStop}}



Revision as of 07:48, 17 July 2023

For other uses, see: For (disambiguation).

Purpose

This hatnote template creates a hatnote, which is used at the top of article pages or categories (or the top of an appropriate sub-section within an article or category) for simple disambiguations, and to show readers similar alternative articles. This template currently supports twenty (20) additional articles. See also template:For on the English Wikipedia.

Usage

With no identifying targets

This option generates a basic disambiguation option to its identical pagename:

Code example

{{For}}

Output
For other uses, see: For (disambiguation).

With additional targeted identifiers

This option generates a number of specific and different article pages:

'Code example

{{For|the WikiIndex TourBusStop page|TourBusStop}}

Output
For the WikiIndex TourBusStop page, see: TourBusStop.

Don't forget to use the 'Show preview' (Alt+p on your keyboard) when experimenting with differing phrases within the template, before saving (Alt+s) your edit.

See also