Template:Icon link: Difference between revisions
From Vintage Story Wiki
(Created page with "<includeonly>[[File:{{{1}}}|25px|link={{{2}}}]][[{{{2}}}|{{{3|{{{2}}}}}}]]</includeonly> <noinclude>{{doc}}</noinclude>") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{{1}}}|25px|link={{{2}}}]][[{{{2}}}|{{{3|{{{2}}}}}}]]</includeonly> | <includeonly>[[File:{{{1}}}|25px|link={{{2}}}]][[{{{2}}}|{{{3|{{{2}}}}}}]]</includeonly><noinclude>{{doc}}</noinclude> | ||
<noinclude>{{doc}}</noinclude> |
Latest revision as of 19:43, 7 August 2022
[view | edit | history | purge this page]Documentation
- Description
- This template is used only for editing Template:Navbox, to simplify the lists of icons with links. This is currently a duplicate of Template:Content/Icon in order to remove its connection to the old navbox.
- Syntax
- Use within a table row. The template takes two parameters:
{{Icon link|Filename|Target page|Link text}}
- Filename, required: The file name for the icon, which will always display at 25px.
- Target page, required: The page to which both the icon and the link text will go to when clicked.
- Link text, optional: The text that displays for the link text. Defaults to whatever is written as the target page.
- Sample output
{{Icon link|Rawclay blue.png|Clay}}
gives...- Clay
{{Icon link|Rawclay blue.png|Clay|Custom name}}
gives...- Custom name
[view | edit | history | purge this page]The above documentation is transcluded from Template:Icon link/doc.