Template:Advanced link: Difference between revisions
Jump to navigation
Jump to search
m (Max34 moved page Template:Software inline to Template:Advanced link: Now the template is meant as an advanced link rather than a link to some program) |
mNo edit summary |
||
Line 14: | Line 14: | ||
{{tr| | {{tr| | ||
{{td| {{Code|<nowiki>{{Portal 2}}</nowiki>}} }} | {{td| {{Code|<nowiki>{{Portal 2}}</nowiki>}} }} | ||
{{td| This is {{ | {{td| This is {{Advanced link|color=#23B1E5|icon=Portal2 icon.png|link=Portal 2|name=Portal 2}}! }} | ||
{{td| Link with icon. }} | {{td| Link with icon. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td| {{Code|<nowiki>{{Portal 2|styled}}</nowiki>}} }} | {{td| {{Code|<nowiki>{{Portal 2|styled}}</nowiki>}} }} | ||
{{td| This is {{ | {{td| This is {{Advanced link|styled|color=#23B1E5|icon=Portal2 icon.png|link=Portal 2|name=Portal 2}}! }} | ||
{{td| Colored link. }} | {{td| Colored link. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td| {{Code|<nowiki>{{Portal 2|icon}}</nowiki>}} }} | {{td| {{Code|<nowiki>{{Portal 2|icon}}</nowiki>}} }} | ||
{{td| This is {{ | {{td| This is {{Advanced link|icon|color=#23B1E5|icon=Portal2 icon.png|link=Portal 2|name=Portal 2}}! }} | ||
{{td| Clickable Icon. }} | {{td| Clickable Icon. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td| {{Code|<nowiki>{{Portal 2|link}}</nowiki>}} }} | {{td| {{Code|<nowiki>{{Portal 2|link}}</nowiki>}} }} | ||
{{td| This is {{ | {{td| This is {{Advanced link|link|color=#23B1E5|icon=Portal2 icon.png|link=Portal 2|name=Portal 2}}! }} | ||
{{td| Link without icon. }} | {{td| Link without icon. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td| {{Code|<nowiki>{{Portal 2|text}}</nowiki>}} }} | {{td| {{Code|<nowiki>{{Portal 2|text}}</nowiki>}} }} | ||
{{td| This is {{ | {{td| This is {{Advanced link|text|color=#23B1E5|icon=Portal2 icon.png|link=Portal 2|name=Portal 2}}! }} | ||
{{td| Plain text. }} | {{td| Plain text. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td| {{Code|<nowiki>{{Idtech3}}</nowiki>}} }} | {{td| {{Code|<nowiki>{{Idtech3}}</nowiki>}} }} | ||
{{td| This is {{ | {{td| This is {{Advanced link|color=#D00000|icon=Quake3-16px.png|link=w:Id Tech 3|name=Id Tech 3}}! }} | ||
{{td| Link to Wikipedia article. }} | {{td| Link to Wikipedia article. }} | ||
}} | }} | ||
{{tr| | {{tr| | ||
{{td| {{Code|<nowiki>{{Cs2d}}</nowiki>}} }} | {{td| {{Code|<nowiki>{{Cs2d}}</nowiki>}} }} | ||
{{td| This is {{ | {{td| This is {{Advanced link|color=#FFD700|icon=CS2D icon.png|external=|link=https://store.steampowered.com/app/666220/CS2D|name=CS2D}}! }} | ||
{{td| External link. }} | {{td| External link. }} | ||
}} | }} | ||
Line 84: | Line 84: | ||
== Example == | == Example == | ||
{{CodeBlock|src=Template:Portal 2 ''(not the actual one)''|lines=7|<nowiki>{{ | {{CodeBlock|src=Template:Portal 2 ''(not the actual one)''|lines=7|<nowiki>{{Advanced link | ||
| {{{1|}}} | | {{{1|{{{show|}}}}}} | ||
| color = #23B1E5 | | color = #23B1E5 | ||
| icon = Portal2 icon.png | | icon = Portal2 icon.png |
Revision as of 10:38, 8 October 2025
Todo: Come up with a better name for this template.
This template is an improved and simplified version of template {{Software}}.
Child Templates Usage
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 | Result | Description |
---|---|---|
{{Portal 2}} | This is ![]() |
Link with icon. |
{{Portal 2|styled}} | This is ![]() |
Colored link. |
{{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. |
Description
Parameter | Description |
---|---|
| {{{show|}}} | The first parameter specifies the template display format:
When used in child templates, you must specify it as {{{show|}}} (or {{{1|{{{show|}}}}}} if the child template does not use unnamed parameters for anything else) so that you can change the modes when using them. |
| color = <color> | Used to colorize a link in styled mode. Default value is #3C78D2rgb(60,120,210). |
| icon = Example.png | The icon that will be displayed next to the link. You only need to specify the file name and format, do not enter File: at the beginning. |
| icon size = 32 | Icon size. Don't include px at the end when specifying a parameter. Default value is x16px. |
| external = | 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 = Half-Life 2 | Link. If the {{{external}}} parameter is specified, this link will be treated as external link. |
| name = Portal 2 | The text that will be displayed for the link. |