模板:For/doc
跳到导航
跳到搜索
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/doc(消歧义)。
- Shortest form, to point to a general disambiguation page.
{{for|different meanings of For}}
关于different meanings of For,参见For/doc(消歧义)。
- 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.