Difference between revisions of "Template:NIWA Nav/doc"
From Nookipedia, the Animal Crossing wiki
Dorsal Axe (talk | contribs) (Create documentation) |
Dorsal Axe (talk | contribs) (Updating documentation) |
||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
− | This template is used for the NIWA section of the main page to display a link for each member's website. The <code>Name</code> parameter defines the displayed name, while <code>Link</code> is used for a link to the website. <code>Icon</code> | + | This template is used for the NIWA section of the main page to display a link for each member's website. The <code>Name</code> parameter defines the displayed name, while <code>Link</code> is used for a link to the website. <code>Icon</code> is used to link to the favicon that represents the website. The <code>SubName</code>, <code>SubLink</code>, and <code>SubIcon</code> parameters allow for a secondary website to be shown alongside the primary one. |
===Example=== | ===Example=== | ||
Line 19: | Line 19: | ||
{{NIWA Nav | {{NIWA Nav | ||
| Name = Super Mario Wiki | | Name = Super Mario Wiki | ||
− | | Link = mariowiki | + | | Link = https://www.mariowiki.com/ |
+ | | Icon = Mario.png | ||
}} | }} | ||
</pre> | </pre> | ||
+ | <div style="display: grid; grid-template-columns: repeat(auto-fill, {{{NavWidth|minmax(160px, 1fr)}}}); grid-row-gap: {{{NavRowGap|0px}}}; grid-column-gap: {{{NavColGap|0px}}}"> | ||
{{NIWA Nav | {{NIWA Nav | ||
| Name = Super Mario Wiki | | Name = Super Mario Wiki | ||
− | | Link = mariowiki | + | | Link = https://www.mariowiki.com/ |
+ | | Icon = Mario.png | ||
}} | }} | ||
+ | </div> | ||
<pre> | <pre> | ||
{{NIWA Nav | {{NIWA Nav | ||
| Name = Pikipedia | | Name = Pikipedia | ||
− | | Link = | + | | Link = https://www.pikminwiki.com/ |
+ | | Icon = Pikmin.png | ||
| SubName = Fanon | | SubName = Fanon | ||
− | | SubLink = pikminfanon | + | | SubLink = https://www.pikminfanon.com/wiki/Main_Page |
+ | | SubIcon = Pikmin Fanon.png | ||
}} | }} | ||
</pre> | </pre> | ||
+ | <div style="display: grid; grid-template-columns: repeat(auto-fill, {{{NavWidth|minmax(160px, 1fr)}}}); grid-row-gap: {{{NavRowGap|0px}}}; grid-column-gap: {{{NavColGap|0px}}}"> | ||
{{NIWA Nav | {{NIWA Nav | ||
| Name = Pikipedia | | Name = Pikipedia | ||
− | | Link = | + | | Link = https://www.pikminwiki.com/ |
+ | | Icon = Pikmin.png | ||
| SubName = Fanon | | SubName = Fanon | ||
− | | SubLink = pikminfanon | + | | SubLink = https://www.pikminfanon.com/wiki/Main_Page |
+ | | SubIcon = Pikmin Fanon.png | ||
}} | }} | ||
+ | </div> |
Revision as of 08:11, March 14, 2021
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
Usage
{{NIWA Nav |Name = |Link = |Icon = |SubName |SubLink |SubIcon= }}
This template is used for the NIWA section of the main page to display a link for each member's website. The Name
parameter defines the displayed name, while Link
is used for a link to the website. Icon
is used to link to the favicon that represents the website. The SubName
, SubLink
, and SubIcon
parameters allow for a secondary website to be shown alongside the primary one.
Example
{{NIWA Nav | Name = Super Mario Wiki | Link = https://www.mariowiki.com/ | Icon = Mario.png }}
{{NIWA Nav | Name = Pikipedia | Link = https://www.pikminwiki.com/ | Icon = Pikmin.png | SubName = Fanon | SubLink = https://www.pikminfanon.com/wiki/Main_Page | SubIcon = Pikmin Fanon.png }}