模板:For
跳至導覽
跳至搜尋
Purpose
This template imitates the Wikipedia disambiguation link template: Wikipedia:Template:For.
Usage
- Syntax
{{For|OTHER TOPIC|PAGE1|PAGE2|link1=|display=|display2=}}
- Output
關於OTHER TOPIC,參見PAGE1和PAGE2。
- Parameters
- If only two parameters are given (OTHER TOPIC and PAGE1), the " and PAGE2" part is left out.
- If only one parameter is given (OTHER TOPIC), the current page, with " (disambiguation)" added, is used as a default for PAGE1.
- If no parameters are given, "other uses" is printed for OTHER TOPIC, and the current page, with " (disambiguation)" added, is used as a default for PAGE1.
- The link1 parameter can be used to let the first link point to a different page than PAGE1 (or its default).
- Display= changes the appearance of the first link to PAGE1, and display2= changes the appearance of PAGE2, overriding the § symbol replacements
- Or= changes the 「and」 to 「or」 in the template when using PAGE2.
Examples
{{for}}
關於其他用法,參見For(消歧義)。
- Shortest form, to point to a general disambiguation page.
{{for|different meanings of For}}
關於different meanings of For,參見For(消歧義)。
- Only the OTHER TOPIC parameter is used.
{{for|see=Balloons}}
關於其他用法,參見Balloons。
- Only the PAGE1 parameter is used.
{{for|the admins' notice board|Admin noticeboard}}
關於the admins' notice board,參見Admin noticeboard。
- Often used form with only OTHER TOPIC and PAGE1.
{{for|version history|Version history|Console Version history}}
關於version history,參見Version history和Console Version history。
- Using PAGE2 for a second link.
{{for|the different types of hammers|Other Kinds of Hammers|link1=Hammer}}
關於the different types of hammers,參見Other Kinds of Hammers。
- Use of the link1 parameter to change the link.
{{for|powerful weapons|Meowmere|Last Prism|or=y}}
關於powerful weapons,參見Meowmere或Last Prism。
- Use of the or= parameter to change the text.
分類:
- I18n-ready templates
- Redirection and link templates