Template talk:Code: Difference between revisions
>Quenty No edit summary |
>Trappingnoobs →I like the idea personally: new section |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
Yay! I just created a template which will allow us to highlight code with a specified tab size in Lua, but also JavaScript and lots of other languages which we never use on the wiki anyways. But it's still cool, as, basically, it's like the code tag, but better, as we can also change tab size. And this template will also make switching to the other highlighting extension easier! :D <div style="border-top:1px dashed;padding-bottom:.5em;height:1em"><div style="font-size:75%;float:left">[[User:JulienDethurens|JulienDethurens]]</div><div style="font-size:75%;float:right">29 February 2012</div></div> | Yay! I just created a template which will allow us to highlight code with a specified tab size in Lua, but also JavaScript and lots of other languages which we never use on the wiki anyways. But it's still cool, as, basically, it's like the code tag, but better, as we can also change tab size. And this template will also make switching to the other highlighting extension easier! :D <div style="border-top:1px dashed;padding-bottom:.5em;height:1em"><div style="font-size:75%;float:left">[[User:JulienDethurens|JulienDethurens]]</div><div style="font-size:75%;float:right">29 February 2012</div></div> | ||
:Umm... we don't program in Java here though... D: {{User:Quenty/sig|date=February 29}} | :Umm... we don't program in Java here though... D: {{User:Quenty/sig|date=February 29}} | ||
::True, true, but it's still cool. And, it allows us to customize the tab size. Even though we could still easily do it with the style attribute, it's still useful to make it all handled by a template, as that allows us to change it on the whole wiki easily. <div style="border-top:1px dashed;padding-bottom:.5em;height:1em"><div style="font-size:75%;float:left">[[User:JulienDethurens|JulienDethurens]]</div><div style="font-size:75%;float:right">29 February 2012</div></div> | |||
== Why do we need this? == | |||
We already have {{tl|lua}}. Why do we need this page? I can't think of anywhere on the wiki it'll be used. It'll just be confused with the lua template. {{User:NXTBoy/sig|date=07:55, 29 February 2012 (UTC)}} | |||
:It's the same thing, but it supports every language supported by the code tag and lets us change the tab size. And it isn't more complicated to use. <div style="border-top:1px dashed;padding-bottom:.5em;height:1em"><div style="font-size:75%;float:left">[[User:JulienDethurens|JulienDethurens]]</div><div style="font-size:75%;float:right">29 February 2012</div></div> | |||
::It's not more complicated. It's just redundant - where will it be used? {{User:NXTBoy/sig|date=21:58, 29 February 2012 (UTC)}} | |||
:::Well, I believe it could be used instead of the lua template, since it offers more options. Or perhaps the lua template could use it, since the opposite isn't possible. <div style="border-top:1px dashed;padding-bottom:.5em;height:1em"><div style="font-size:75%;float:left">[[User:JulienDethurens|JulienDethurens]]</div><div style="font-size:75%;float:right">29 February 2012</div></div> | |||
::::We don't want more options - we want consistency! Letting each wiki editor choose their favourite tab width is not a good way to be consistent. {{User:NXTBoy/sig|date=22:45, 29 February 2012 (UTC)}} | |||
== I like the idea personally == | |||
Title. | |||
Yeah I think when people are putting user pages with other languages on, it'd be pretty usefull. | |||
Also we should start doing tutorials for specific things like transitioning from language X to Lua. It could be used then<div style="border-top: 1px solid #AAA; color:#000000; font-size:10px">Trappingnoobs <span style="color:skyblue">(Writer)</span><span style="color:red"> Have I done something bad? Good? Tell me on my [[User_talk:Trappingnoobs|talk page]]</span><span style="color:grey;float:right"> 22:33, 1 March 2012 (UTC)</span></div> |
Latest revision as of 22:33, 1 March 2012
Yay!
Yay! I just created a template which will allow us to highlight code with a specified tab size in Lua, but also JavaScript and lots of other languages which we never use on the wiki anyways. But it's still cool, as, basically, it's like the code tag, but better, as we can also change tab size. And this template will also make switching to the other highlighting extension easier! :D
- Umm... we don't program in Java here though... D: - Quenty (talk • February 29)
- True, true, but it's still cool. And, it allows us to customize the tab size. Even though we could still easily do it with the style attribute, it's still useful to make it all handled by a template, as that allows us to change it on the whole wiki easily. 29 February 2012
- True, true, but it's still cool. And, it allows us to customize the tab size. Even though we could still easily do it with the style attribute, it's still useful to make it all handled by a template, as that allows us to change it on the whole wiki easily.
Why do we need this?
We already have {{lua}}. Why do we need this page? I can't think of anywhere on the wiki it'll be used. It'll just be confused with the lua template.
- It's the same thing, but it supports every language supported by the code tag and lets us change the tab size. And it isn't more complicated to use. 29 February 2012
- It's not more complicated. It's just redundant - where will it be used?
- Well, I believe it could be used instead of the lua template, since it offers more options. Or perhaps the lua template could use it, since the opposite isn't possible. 29 February 2012
- We don't want more options - we want consistency! Letting each wiki editor choose their favourite tab width is not a good way to be consistent.
- Well, I believe it could be used instead of the lua template, since it offers more options. Or perhaps the lua template could use it, since the opposite isn't possible.
- It's not more complicated. It's just redundant - where will it be used?
I like the idea personally
Title.
Yeah I think when people are putting user pages with other languages on, it'd be pretty usefull.
Also we should start doing tutorials for specific things like transitioning from language X to Lua. It could be used then