Jump to content

Template:Current: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Shirik (talk | contribs)
template now switches between "a" and "an" based on template parameter 2. Idea from User:CharlieTheCabbie
Technical 13 (talk | contribs)
fix the horrible switch code.
Line 4: Line 4:
| type = notice
| type = notice
| image = [[File:Ambox currentevent.svg|30px|alt=|link=]]
| image = [[File:Ambox currentevent.svg|30px|alt=|link=]]
| text = '''This {{#if:{{{1|}}}|{{{1}}}|article}} documents {{#switch:{{str left|{{{2|current event}}}|1}}|a=an|e=an|i=an|o=an|u=an|A=an|E=an|I=an|O=an|U=an|a}} [[Portal:Current events|{{#if:{{{2|}}}|{{{2}}}|current event}}]].''' Information may change rapidly as the event progresses, and initial news reports may be [[Wikipedia:Identifying reliable sources#Breaking news|unreliable]].
| text = '''This {{#if:{{{1|}}}|{{{1}}}|article}} documents {{#switch:{{lc:{{str left|{{{2|current event}}}|1}}}}|a|e|i|o|u=an|#default=a}} [[Portal:Current events|{{#if:{{{2|}}}|{{{2}}}|current event}}]].''' Information may change rapidly as the event progresses, and initial news reports may be [[Wikipedia:Identifying reliable sources#Breaking news|unreliable]].
| cat = Current events
| cat = Current events
| date = {{{date|}}}
| date = {{{date|}}}

Revision as of 17:16, 28 December 2014