Difference between revisions of "Template:Currentlybox"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(another cat, plus a tweak for the "working on" bit)
imported>Primefac
(Reverted to revision 667690357 by Izkala (talk): Sandboxing. Going to take more tweaks than I anticipated. (TW))
Line 1: Line 1:
{{userbox
+
<div style="float:left; border:1px solid black; margin:1px;">
| border-c = #000
+
{| cellspacing="0" style="width:238px; background:#F8EABA;"
| id      = {{#ifeq:{{{nopic}}}|yes||[[Image:Finland_road_sign_142.svg|45px]]}}
+
{{#ifeq:{{{nopic}}}|yes||{{!}} style="width:45px; height:45px; background:#E7D9A9; text-align:center;" {{!}} [[Image:Finland_road_sign_142.svg|45px]]}}
| id-c    = #E7D9A9
+
| style="padding:4pt; {{#ifeq:{{{nopic}}}|yes|text-align:center;|font-size:8pt; line-height:1.25em;}}" | This user is [[:Category:Wikipedians by Wikipedia collaboration|currently]] working on<br />'''{{Trim|{{{1}}}}}'''.
| info    = This user is [[:Category:Wikipedians by Wikipedia collaboration|currently]] working on<br />'''[[{{Trim brackets|{{{1}}}}}]]'''.
+
|}</div><noinclude>
| info-c  = #F8EABA
 
| info-fc  = black
 
| usercategory  = <includeonly>{{#ifexist:Category:{{trim brackets|{{{1}}}}} members|{{trim brackets|{{{1}}}}} members}}{{#ifexist:Category:{{trim brackets|{{{1}}}}} participants|{{trim brackets|{{{1}}}}} participants}}{{#ifexist:Category:Participants in {{trim brackets|{{{1}}}}}|Participants in {{trim brackets|{{{1}}}}}}}</includeonly>
 
}}<noinclude>
 
 
{{clear}}
 
{{clear}}
  

Revision as of 15:27, 25 June 2017

Finland road sign 142 (1995–2020).svg This user is currently working on
{{{1}}}.
Template documentation[view] [edit] [history] [purge]

Parameter options

  • |nopic=yes will suppress the image (which displays by default)
  • |nocat=yes will disable categories (which only display if the category exists)
  • |wplink=yes will link the text to the Wikipedia: space (see below)

Linking to the WP: space

Participants in a WikiProject may wish to link to the project they're involved with, but also add their name to the membership category, using this template.

{{currentlybox|WikiProject Cue sports|wplink=yes}} gives an output of

Finland road sign 142 (1995–2020).svg This user is currently working on
WikiProject Cue sports.

while {{currentlybox|WikiProject Cue sports}} does not:

Finland road sign 142 (1995–2020).svg This user is currently working on
WikiProject Cue sports.

However, both uses will place the page into Category:WikiProject Cue sports participants

Note that {{currentlybox|[[WP:WikiProject Cue sports|WikiProject Cue sports]]}} displays as

Finland road sign 142 (1995–2020).svg This user is currently working on
WikiProject Cue sports.
but will not place the user in Category:WikiProject Cue sports participants.

See also

Template:T, which is the right-floating variant of this template.