Thread:User talk:CodeCat/Help with Code 2

I tried editing the noun template to make it include the counted plural forms of masculine nouns, but nothing worked out in the end. I was hoping you could point out to me once again what the problem is this time.

Anyway, I wanted to create a code that would generate automatic counted plurals from masculine nouns by adding "-а" to the head (i.e. page name) as long as the fourth parameter is "1". I also wanted to be able to set the fourth parameter to some other stem, in which case a counted plural would be produced by adding "-a" to this stem rather than to the head. This is what I wanted to write and what it was supposed to be read as:

{{#ifeq:{{{1}}}|m >If the noun is masculine,


 * {{#ifeq:{{{4|}}}| >see if the the fourth parameter is equal to nothing and...

| >if so, do nothing;

|{{#ifeq:{{{4|}}}|1 >if not, see if the fourth parameter is equal to one and...

|countable plural {{l|mk|{{{head|}}}а|tr=-}} >if so, generate an automatic counted plural by adding "-а" to the head (i.e. page name);

|countable plural {{l|mk|{{{4|}}}а|tr=-}}}} >if not, generate a counted plural by adding "-a" to the contents of the fourth parameter.


 * }} >If the noun is not masculine, don't do anything.

By the way, I wrote it like this:

{{#ifeq:{{{1}}}|m|{{#ifeq:{{{4|}}}|||{{#ifeq:{{{4|}}}|1|counted plural {{l|mk|{{{head|}}}а|tr=-}}|counted plural {{l|mk|{{{4|}}}а|tr=-}}}}|}}

I added spaces above to be able to explain better.

Anyway, nothing worked and no forms were generated. Nothing seems to have been messed up, but nothing has been created other. So, how should I do what I intended to do properly? I have no doubt that you have a much simpler solution to the problem than what I wanted to write myself.

P.S. What do  -->  and  <!--  mean?