Template talk:Pl: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Kim van der Linde
(→‎Red link icon?: new section)
imported>Joe Quick
Line 60: Line 60:


What about having an icon for nonexisting pages?
What about having an icon for nonexisting pages?
That would be easy to do but I wonder if it is really necessary since those articles still show up as red links anyway. [[User:Joe Quick|--Joe Quick]]  ([[User talk:Joe Quick|Talk]]) 09:54, 28 September 2007 (CDT)

Revision as of 08:54, 28 September 2007

{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|0
    |{{#if: {{{2|}}} | [[{{{1|}}}
         |<font color="#006400">{{{2|}}}</font>]] 
         |[[{{{1|}}}|<font color="#006400">{{{1|}}}</font>]]}}
    |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|1
              |{{#if: {{{2|}}} | [[{{{1|}}}
                   |<font color="#B8860B">{{{2|}}}</font>]] 
                   |[[{{{1|}}}|<font color="#B8860B">{{{1|}}}</font>]]}}
              |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|2
                        |{{#if: {{{2|}}} | [[{{{1|}}}
                             |<font color="#ff8c00">{{{2|}}}</font>]] 
                             |[[{{{1|}}}|<font color="#ff8c00">{{{1|}}}</font>]]}}
                        |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|3
                                  |{{#if: {{{2|}}} | [[{{{1|}}}
                                       |<font color="#ff4500">{{{2|}}}</font>]] 
                                       |[[{{{1|}}}|<font color="#ff4500">{{{1|}}}</font>]]}}
                                  |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|4
                                       |{{#if: {{{2|}}} | [[{{{1|}}}
                                            |<font color="#DC143C">{{{2|}}}</font>]] 
                                            |[[{{{1|}}}|<font color="#DC143C">{{{1|}}}</font>]]}}
                                       |{{#if: {{{2|}}} | [[{{{1|}}}
                                            |{{{2|}}}]] 
                                            |[[{{{1|}}}]]}}  }} }} }} }} }}

Joe, what is the plan for the 2 parameter, I note you have not used it on the priority list. Could it not be shortened to the following?

{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|0
         |[[{{{1|}}}|<font color="#006400">{{{1|}}}</font>]]
         |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|1
              |[[{{{1|}}}|<font color="#B8860B">{{{1|}}}</font>]]
              |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|2
                   |[[{{{1|}}}|<font color="#ff8c00">{{{1|}}}</font>]]
                   |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|3
                        |[[{{{1|}}}|<font color="#ff4500">{{{1|}}}</font>]]
                        |{{#ifeq: {{Template:{{{1|}}}/Metadata|info=status}}|4
                             |[[{{{1|}}}|<font color="#DC143C">{{{1|}}}</font>]]
                             |[[{{{1|}}}]]}}  }} }} }} }}

Chris Day (talk) 05:35, 17 September 2007 (CDT)

Parameter 2 is used a couple of times. It replicates normal links that are piped. So [[Maya peoples|Maya]] becomes {{pl|Maya peoples|Maya}} --Joe Quick (Talk) 14:32, 17 September 2007 (CDT)

Now I get it. I misread the code. But do we need to pipe links in a priority list? Or is that you thinking ahead to article space? Chris Day (talk) 16:08, 17 September 2007 (CDT)

We probably don't really need to pipe links in a priority list. It just looks kind of silly to have the word "language" so many times in such a short list:

There are a few other similar situations, and it allows me to write things like "Approved Article This is an example of an approved article" but it wouldn't be a big deal to drop the piping. --Joe Quick (Talk) 17:07, 17 September 2007 (CDT)

Don't get me wrong, i think it could be useful, i just was not sure where you were taking it. Chris Day (talk) 21:41, 17 September 2007 (CDT)

Red link icon?

What about having an icon for nonexisting pages?

That would be easy to do but I wonder if it is really necessary since those articles still show up as red links anyway. --Joe Quick (Talk) 09:54, 28 September 2007 (CDT)