Template:ColoredLink: Difference between revisions
Jump to navigation
Jump to search
(documentation (modelled after Template:Whitelink & Template:Blacklink)) |
(Template Data) |
||
Line 21: | Line 21: | ||
|} | |} | ||
[[Category:Templates]] | |||
</noinclude> | {{Navbox|TITLE=Template Data| | ||
<templatedata> | |||
{ | |||
"params": { | |||
"link": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Link", | |||
"description": "Page where the link leads to", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"color": { | |||
"aliases": [ | |||
"2" | |||
], | |||
"label": "Color", | |||
"description": "Color of the link. Use \"canon\" colors or other color codes (e.g. HEX).", | |||
"example": "blue", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"text": { | |||
"aliases": [ | |||
"3" | |||
], | |||
"label": "Text", | |||
"description": "Optional name for the link", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "Creates a colored link.", | |||
"format": "inline" | |||
} | |||
</templatedata>}} | |||
[[Category:Templates]]</noinclude> |
Latest revision as of 22:06, 8 January 2024
Creates a colored link. The following formats are equal:
{{ColoredLink|Article's Original Name|Color|Optional Name for the Link}}
{{ColoredLink|link=Article's Original Name|color=Color|text=Optional Name for the Link}}
Note, uses "canon" colors from Template:TextColor, not HTML color names for those redefined there. Use non-redefined names or other systems (e.g. HEX codes) to override this.
Examples
{{ColoredLink|Ship Histories|gold}}
Ship Histories |
{{ColoredLink|DS17 Non-Playing Character Listing|#B57EDC|DS17 NPCs}}
DS17 NPCs |
{{ColoredLink|link=USS Artemis-A/Science|text=Artemis Science Department|color=blue}}
Artemis Science Department |
Template Data
Creates a colored link.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link | link 1 | Page where the link leads to | Page name | required |
Color | color 2 | Color of the link. Use "canon" colors or other color codes (e.g. HEX).
| Line | suggested |
Text | text 3 | Optional name for the link | String | optional |