Help talk:Templates: Difference between revisions
Line 8: | Line 8: | ||
The main caveat to using the syntaxhighlight tag is the koss of the filename at the top of the codeblock. That could be addresses by recommending putting it at the top of the codeblock in a comment, or ideally somehow adding a MediaWiki extension to allow the file name to be added to the top in mich the same way as the template (which afaik is possible, but I've never written MediaWiki extensions so not entirely sure what it involves yet). [[User:Fidgetingbits|Fidgetingbits]] ([[User talk:Fidgetingbits|talk]]) 13:23, 26 October 2024 (UTC) | The main caveat to using the syntaxhighlight tag is the koss of the filename at the top of the codeblock. That could be addresses by recommending putting it at the top of the codeblock in a comment, or ideally somehow adding a MediaWiki extension to allow the file name to be added to the top in mich the same way as the template (which afaik is possible, but I've never written MediaWiki extensions so not entirely sure what it involves yet). [[User:Fidgetingbits|Fidgetingbits]] ([[User talk:Fidgetingbits|talk]]) 13:23, 26 October 2024 (UTC) | ||
:I disagree, but only in nuance. Using {{template link|file}} gives us a "semantic handle" to lift and shift to whatever implementation we want in the future. In this direction, I added {{template link|code}}, which {{template link|file}} could easily use. However, I would propose we delete {{template link|bc}}, {{template link|ic}} and {{template link|commands}}, as they have no syntax highlighting, being functionally obsolete now. | |||
:But in general, I think we should avoid using raw tags if possible inside articles.[[User:DoggoBit|DoggoBit]] ([[User talk:DoggoBit|talk]]) 21:04, 5 June 2025 (UTC) | |||
== Merge proposal between [[Template:Security Warning]] and [[Template:Warning]] == | == Merge proposal between [[Template:Security Warning]] and [[Template:Warning]] == | ||
This is a notice to notify anyone interested in the topic of templates that I have proposed merging the two templates. Further information can be found at {{talk page link|talk=Template talk:Security Warning|its discussion page}} [[User:DoggoBit|DoggoBit]] ([[User talk:DoggoBit|talk]]) 19:03, 5 June 2025 (UTC) | This is a notice to notify anyone interested in the topic of templates that I have proposed merging the two templates. Further information can be found at {{talk page link|talk=Template talk:Security Warning|its discussion page}} [[User:DoggoBit|DoggoBit]] ([[User talk:DoggoBit|talk]]) 19:03, 5 June 2025 (UTC) |