Template:Path: Difference between revisions
Jump to navigation
Jump to search
Bug:Characters "<" and ">" can break the template partially. Use <nowiki> as a workaround.
m (Properly switch images with {{{2}}} parameter now.) |
m (trimming code) |
||
Line 1: | Line 1: | ||
{{Bug|Characters "<" and ">" can break the template partially. Use {{code|<nowiki><nowiki></nowiki>}} as a workaround.{{todo|Remove unnecessary (redundant) tooltip span that does this.}}}}{{Doc}}<includeonly><onlyinclude><!-- | {{Bug|Characters "<" and ">" can break the template partially. Use {{code|<nowiki><nowiki></nowiki>}} as a workaround.{{todo|Remove unnecessary (redundant) tooltip span that does this.}}}}{{Doc}}<includeonly><onlyinclude><!-- | ||
--><span title="{{#switch:{{{icon}}} | --><span title="{{#switch:{{{icon}}} | ||
|#default={{Path/strings|Path}} {{{1|} | |#default={{Path/strings|Path}} {{{1|}}} | ||
|exe|executable={{Path/strings|exe}} - {{{1|} | |exe|executable={{Path/strings|exe}} - {{{1|}}} | ||
|reg|regedit|registry={{Path/strings|reg}} - {{{1|} | |reg|regedit|registry={{Path/strings|reg}} - {{{1|}}} | ||
|regvalue|regv={{Path/strings|regv}} - {{{1|} | |regvalue|regv={{Path/strings|regv}} - {{{1|}}} | ||
|custom={{Path/strings|File}} - {{{1|} | |custom={{Path/strings|File}} - {{{1|}}}<!-- Currently generic for now --> | ||
|audio|sound|music={{Path/strings|Audio}} - {{{1|} | |audio|sound|music={{Path/strings|Audio}} - {{{1|}}}<!-- TODO: Automatically change the icon based of file format--> | ||
|video|movie={{Path/strings|Video}} - {{{1|} | |video|movie={{Path/strings|Video}} - {{{1|}}} | ||
|image|picture={{Path/strings|Image}} - {{{1|} | |image|picture={{Path/strings|Image}} - {{{1|}}} | ||
|texture={{Path/strings|Textures}} - {{{1|} | |texture={{Path/strings|Textures}} - {{{1|}}} | ||
|generic|file={{Path/strings|File}} - {{{1|}}}{{#if:{{{2|}}}|.{{{2}}}| | |generic|file={{Path/strings|File}} - {{{1|}}} | ||
}}{{#if:{{{2|}}}|.{{{2}}}|}}" style="display:inline-flex; align-items:center; line-height:1.35em"><!-- | |||
--><span style="background-color:{{#if:{{{2|}}}|#984EDDCC|#536FFFCC}}; border-radius:4px 0 0 4px; padding:0 3px 0 4px; user-select:none; pointer-events:none"><!-- | --><span style="background-color:{{#if:{{{2|}}}|#984EDDCC|#536FFFCC}}; border-radius:4px 0 0 4px; padding:0 3px 0 4px; user-select:none; pointer-events:none"><!-- | ||
--><span style="position:relative; top:1px">[[File:{{#if:{{{icon|}}}|{{#switch:{{{icon}}} | --><span style="position:relative; top:1px">[[File:{{#if:{{{icon|}}}|{{#switch:{{{icon}}} |
Revision as of 20:59, 26 July 2023

Todo: Remove unnecessary (redundant) tooltip span that does this.
[todo tested in ?]The above documentation is transcluded from Template:Path/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.