Template:Advanced link
Jump to navigation
Jump to search
This template creates a link with additional features. Primarily created as a basis for other link templates: game templates, program templates and external link templates.
| Parameters | Description |
|---|---|
| | <Option> | 1 = <Option> |
Template display format:
|
| | icon = <image.png> | The icon that will be displayed next to the link. |
| | size = <{w}x{h}> | Icon size. Don't include "px". Default value is x16.
|
| | external = <Empty> | If this parameter is specified, the value of the {{{link}}} parameter will be treated as an external link. Do not enter anything into this parameter, it must be left blank, otherwise it will break the template. |
| | link = <Any link> | Internal Link. If the {{{external}}} parameter is specified, this link will be treated as external link. |
| | text = <Link text> | The text that will be displayed for the link. |
These examples are written directly using this template, since the {{Portal 2}}, {{Idtech3}} and {{Cs2d}} do not currently use this template as their base.
| Code | Preview | Description |
|---|---|---|
| {{Portal 2}} | This is |
Link with icon. |
| {{Portal 2|icon}} | This is |
Clickable Icon. |
| {{Portal 2|link}} | This is Portal 2! | Link without icon. |
| {{Portal 2|text}} | This is Portal 2! | Plain text. |
| {{Idtech3}} | This is |
Link to Wikipedia article. |
| {{Cs2d}} | This is |
External link. |
| {{Cow|Half-Life|Example}} | This is |
External link. Unlike the previous examples, it uses a different parameter format. |