While discussing about the CodeBox template in this thread , I found an error in SourceCode template. The problem in SourceCode template is that when you put {{#tag:source|{{{2}}}|lang={{{1|html4strict}}}}} code, it just takes the lang part, but the 2nd parameter is not taken. Because when we are using <source lang=“php”>Code is going here, which is 2nd parameter, so the 2nd parameter is just taken as other codes(php here). If we are using nowiki tag as suggested in that template page, then it displays an error. See this <a href=“ http://www.wikihow.com/User:IamSH/Codeground2 ”>here</a>.

If anyone have knowledge on template coding, then I want your help to solve the above issue in SourceCode template, by which we’ll get a new CodeBox template with no numbering issue and easier implementation on article by editors. Our aim: To make it like {{SourceCode|php|<!–?php echo “Hello world”;?–>}} . </source>

You may see my post in the other thread; I think we should scrap the SourceCode template and just update the CodeBox template to support this format.

As of the current CodeBox, a user would have to add a<source lang="">tag to the wiki-template. Although this serves as a good guide for the language to interpret, it does make the typing a bit long(especially when it gets closed up(additionally) at the end.

Oh, and then theres the FORCEADVthat a person must add to push it over to the advanced. if a person feels more comfortable writing an article(or editing for that matter) an article in Guided or Visual(Visual only avail for Firefox), it would make it that much more comfortable, if we wouldn’t have to force these articles to be edited in only the one type of editor. Fix this in the source code. It is possible to type an article up with the CodeBox without forcing it to open as an edited version in ADV.</source>

@Byankno1 that new CodeBox template which is {{User:IamSH/Codeground}} does not need that __FORCEADV__ and html tag. You can write codes even using guided editor and it’ll not mess anything in your article.