Template:BBTIcon: Difference between revisions
Jump to navigation
Jump to search
(start) |
(linkfix) |
||
Line 3: | Line 3: | ||
This template only serves to create a 48 pixel big icon for a BBT, complete with a clickable link under the icon to the BBT itself, and the BBT's name as alt text. The template is used by other templates like [[Template:BuildingBlockIconFromWorkingArea|BuildingBlockIconFromWorkingArea]]. To use it, call the template with a single parameter, being a Building Block Type page. For example: | This template only serves to create a 48 pixel big icon for a BBT, complete with a clickable link under the icon to the BBT itself, and the BBT's name as alt text. The template is used by other templates like [[Template:BuildingBlockIconFromWorkingArea|BuildingBlockIconFromWorkingArea]]. To use it, call the template with a single parameter, being a Building Block Type page. For example: | ||
<nowiki>{{BBTIcon|BT.CR.Workspace Engine}}</nowiki> | <nowiki>{{BBTIcon|BT.CR.Workspace Engine}}</nowiki> | ||
To prevent nasty display errors when no page is given, the default points to an existing BBT, namely [[BT | To prevent nasty display errors when no page is given, the default points to an existing BBT, namely [[BT.Workspace Engine]]. When called, the template looks like this: | ||
---- | ---- | ||
</noinclude> | </noinclude> | ||
{{#vardefine:icon|{{#show:{{{1|BT | {{#vardefine:icon|{{#show:{{{1|BT.Workspace Engine}}}|?Function icon}}}}{{#vardefine:description|{{#show:{{{1|BT.Workspace Engine}}}|?Brief description}}}}[[File:{{#var:icon}}|48x48px|border|{{#var:description}}|link={{{1|BT.Workspace Engine}}}]]<br style="clear: both" />[[{{{1|BT.Workspace Engine}}}|{{#show:{{{1|BT.Workspace Engine}}}|?Brief description}}]]<br><br> |
Latest revision as of 21:48, 12 January 2013
This template only serves to create a 48 pixel big icon for a BBT, complete with a clickable link under the icon to the BBT itself, and the BBT's name as alt text. The template is used by other templates like BuildingBlockIconFromWorkingArea. To use it, call the template with a single parameter, being a Building Block Type page. For example:
{{BBTIcon|BT.CR.Workspace Engine}}
To prevent nasty display errors when no page is given, the default points to an existing BBT, namely BT.Workspace Engine. When called, the template looks like this: