Difference between revisions of "Template:SmartImageLink"
(idea) |
( ) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|description=It is used by [[Template:ArrayMapPropertyListLink]]. It takes one argument, the text to make a link out of. It calculates the anchortext by using [[Template:SmartLink/Anchor]] and the linktext by using [[Template:SmartLink/Link]]. See also [[Template:SmartNonLink]]. | |description=It is used by [[Template:ArrayMapPropertyListLink]]. It takes one argument, the text to make a link out of. It calculates the anchortext by using [[Template:SmartLink/Anchor]] and the linktext by using [[Template:SmartLink/Link]]. See also [[Template:SmartNonLink]]. | ||
}} | }} | ||
− | </noinclude><includeonly>{{#if: {{{1|}}} | {{Image of|pagename={{{1}}}|size=40px}}[[{{SmartLink/Link|{{{1}}}}}|{{SmartLink/Anchor|{{{1}}}}}]]}}</includeonly> | + | </noinclude><includeonly>{{#if: {{{1|}}}|{{Image of|pagename={{{1}}}|size=40px}} [[{{SmartLink/Link|{{{1}}}}}|{{SmartLink/Anchor|{{{1}}}}}]]}}</includeonly> |
Latest revision as of 13:11, 20 September 2024
This template makes a link, but cleans up the linkname first
It is used by Template:ArrayMapPropertyListLink. It takes one argument, the text to make a link out of. It calculates the anchortext by using Template:SmartLink/Anchor and the linktext by using Template:SmartLink/Link. See also Template:SmartNonLink.
Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameterswere formerly available, but have been upgraded. Some may still work, but do not use these.