User:Snugglebuns/templates
Notice to other editors: Templates on this page are in progress, in testing, or in use, please don't move this page or sub-pages. If I want to move one of my templates to the template space, I will do so myself.
Work in progress
[edit]Nothing right now...
Moved to template space
[edit]{{User:Snugglebuns/templates/Randomtasksbuttons}}
Usage
[edit]Place this template on your userpage or any subpage:
{{User:Snugglebuns/templates/quicklinksnavbox}}
By default, all sections are visible and the quicklink slot at the top is blank.
All parameters:
{{User:Snugglebuns/templates/quicklinksnavbox
| hidewikiprojects = <!--all hide params accept 'yes' or 'no'-->
| hidemagicwords =
| hidetables =
| hideinterwikilinks =
| quicklink = <!--page name without brackets-->
| quicklinkname = <!--what you would like to have displayed if not the page name-->
}}
Parameters
[edit]Quicklink parameters
[edit]| Parameter | Description | Default |
|---|---|---|
quicklink |
The page to link to. Example: User:Snugglebuns/sandbox |
(blank) |
quicklinkname |
The display name for the quicklink. If omitted, the page name is used automatically. | (page name) |
Examples
{{User:Snugglebuns/templates/quicklinksnavbox
| quicklink = User:Snugglebuns/sandbox
}}
â Displays: âSandboxâ (linked to your sandbox)
{{User:Snugglebuns/templates/quicklinksnavbox
| quicklink = User:Snugglebuns/sandbox
| quicklinkname = Sandbox workspace
}}
â Displays: âSandbox workspaceâ
Section visibility parameters
[edit]Each section can be hidden or shown using yes or no (default: no).
| Parameter | Affects section | Description | Default |
|---|---|---|---|
hidewikiprojects |
WikiProjects | Hides the WikiProject group (GOCE templates and tools). | no |
hidemagicwords |
Magic Words | Hides the reference list of MediaWiki magic words. | no |
hidetables |
Tables | Hides the example table code section. | no |
hideinterwikilinks |
Interwiki links | Hides the list of shortcuts for linking to other Wikimedia projects. | no |
Examples
Hide WikiProjects and Tables:
{{User:Snugglebuns/templates/quicklinksnavbox
| hidewikiprojects = yes
| hidetables = yes
}}
Other parameters
[edit]| Parameter | Description | Default |
|---|---|---|
state |
Sets whether the navbox is initially collapsed or uncollapsed. Values: collapsed, uncollapsed. |
uncollapsed |
selected |
Highlights a selected subpage (for multi-page navigation, if used). | (none) |
Sections
[edit]The navbox includes four collapsible groups:
- WikiProjects â tools for copy editing and cleanup templates from WP:GOCE.
- Magic Words â common Wikitext magic words and date keywords.
- Tables â sample table markup, borderless/wikitable/collapsible examples.
- Interwiki links â shortcuts for linking across Wikimedia projects.
Technical details
[edit]- Built with {{Navbox with collapsible groups}}.
- Conditional sections use
#ifeq:parser functions to evaluate âyesâ / ânoâ. - The quicklink display name uses a nested
#if:to default to the page name.
See also
[edit]Usage
[edit]Default
[edit]
{{User:Snugglebuns/templates/commonspotd
|size = <!--input size e.g., '100px'-->
|thumb = <!--default 'yes', accepts 'no' for frameless/borderless-->
|float = <!--default 'right', accepts 'left' and 'center'-->
|caption = <!--default 'yes', shows the caption from the picture of the day using {{User:JJMC89 bot/Commons picture of the day|caption}}-->
}}
Clean template
[edit]{{User:Snugglebuns/templates/commonspotd
|size =
|thumb =
|float =
|caption =
}}
example:
Usage
[edit]User must enter a date for the userbox to return a counter.
{{User:Snugglebuns/templates/sober
|year = <!--YYYY-->
|month = <!--MM-->
|day = <!--DD-->
}}




