Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:User time zone"

From Paragon Wiki Archive
Jump to: navigation, search
m
(expanding complete. Can now use optional 2nd and 3rd parameters to properly link to time zones)
Line 1: Line 1:
 
<div style="float: left; border: solid #4169E1 1px; margin: 1px;">
 
<div style="float: left; border: solid #4169E1 1px; margin: 1px;">
 
{| cellspacing="0" style="width: 238px; color: #000000; background: #D3D3D3;"
 
{| cellspacing="0" style="width: 238px; color: #000000; background: #D3D3D3;"
| style="width: 45px; height: 45px; background: white; text-align: center;" |'''{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}'''
+
| style="width: 45px; height: 45px; background: white; text-align: center;" |{{#if:{{{3|}}}|{{{3}}}|'''{{{1}}}'''}}
 
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | This user's time zone is '''[[Wikipedia:{{#if:{{{2|}}}|{{{2}}}|{{{1}}} }}|{{{1}}}]]'''.
 
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | This user's time zone is '''[[Wikipedia:{{#if:{{{2|}}}|{{{2}}}|{{{1}}} }}|{{{1}}}]]'''.
 
|}</div><noinclude>{{clr}}
 
|}</div><noinclude>{{clr}}
  
==Notes==
+
=Notes=
Takes 1, 2, 3 parameters.
+
Takes 1, 2, or 3 parameters.
===one===
+
==one==
 
If only one parameter is used, then this is the output.
 
If only one parameter is used, then this is the output.
 
{|
 
{|
Line 15: Line 15:
 
|-
 
|-
 
| <pre>{{User time zone|UTC}}</pre>
 
| <pre>{{User time zone|UTC}}</pre>
| '''{{#if: {{{3|}}}|{{{3}}}|{{{1}}}}}''' This user's time zone is '''[[Wikipedia:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}|{{{1}}}]]'''.
+
| <nowiki>'''UTC''' This user's time zone is '''[[Wikipedia:UTC|UTC]]'''.</nowiki>
 
| {{User time zone|UTC}}
 
| {{User time zone|UTC}}
 
|}
 
|}
===two===
+
==two==
 
If two parameters are used, the the link text is modified, useful when MDT and EST don't redirect immediately to the wikipedia articles.
 
If two parameters are used, the the link text is modified, useful when MDT and EST don't redirect immediately to the wikipedia articles.
 
{|
 
{|
Line 25: Line 25:
 
! output
 
! output
 
|-
 
|-
| <pre>{{User time zone|MDT|Mountain Standard Time}}</pre>
+
| <pre>{{User time zone|MDT|Mountain Time Zone}}</pre>
|  
+
| <nowiki>'''MDT''' This user's time zone is '''[[Wikipedia:Mountain Time Zone|MDT]]'''.</nowiki>
| {{User time zone|MDT|Mountain Standard Time}}
+
| {{User time zone|MDT|Mountain Time Zone}}
 
|}
 
|}
===Samples===
+
==three==
 +
The third parameter is entirely optional, will replace the large bold text to the left. (bold caused by wikimarkup's apostrophes, using third parameter removes them)
 
{|
 
{|
!Template output
+
! wikicode
!Stand alone code
+
! resulting code
 +
! output
 
|-
 
|-
|{{User time zone|UTC}}
+
| <pre>{{User time zone|MDT|Mountain Time Zone|[[Image:IO Accuracy.png]]}}</pre>
|<pre>{{User time zone|UTC}}</pre>
+
| <nowiki>'''[[Image:IO Accuracy.png]]''' This user's time zone is '''[[Wikipedia:Mountain Time Zone|MDT]]'''.</nowiki>
|-
+
| {{User time zone|MDT|Mountain Time Zone|[[Image:IO Accuracy.png]]}}
|{{User time zone|GMT}}
+
|}
|<pre>{{User time zone|GMT}}</pre>
+
|-
+
|{{User time zone|EST}}
+
|<pre>{{User time zone|EST}}</pre>
+
 
|}[[Category:Userbox Templates|{{PAGENAME}}]]</noinclude>
 
|}[[Category:Userbox Templates|{{PAGENAME}}]]</noinclude>

Revision as of 16:02, 18 April 2007

{{{1}}} This user's time zone is [[Wikipedia:{{{1}}}|{{{1}}}]].

Notes

Takes 1, 2, or 3 parameters.

one

If only one parameter is used, then this is the output.

wikicode resulting code output
{{User time zone|UTC}}
'''UTC''' This user's time zone is '''[[Wikipedia:UTC|UTC]]'''.
UTC This user's time zone is UTC.

two

If two parameters are used, the the link text is modified, useful when MDT and EST don't redirect immediately to the wikipedia articles.

wikicode resulting code output
{{User time zone|MDT|Mountain Time Zone}}
'''MDT''' This user's time zone is '''[[Wikipedia:Mountain Time Zone|MDT]]'''.
MDT This user's time zone is MDT.

three

The third parameter is entirely optional, will replace the large bold text to the left. (bold caused by wikimarkup's apostrophes, using third parameter removes them)

wikicode resulting code output
{{User time zone|MDT|Mountain Time Zone|[[Image:IO Accuracy.png]]}}
'''[[Image:IO Accuracy.png]]''' This user's time zone is '''[[Wikipedia:Mountain Time Zone|MDT]]'''.
IO Accuracy.png This user's time zone is MDT.

|}