Difference between revisions of "Template:Currentlybox/sandbox"
imported>Primefac (unnecessary trimming) |
imported>Primefac |
||
| Line 3: | Line 3: | ||
| id = {{#ifeq:{{{nopic}}}|yes||[[Image:Finland_road_sign_142.svg|45px]]}} | | id = {{#ifeq:{{{nopic}}}|yes||[[Image:Finland_road_sign_142.svg|45px]]}} | ||
| id-c = #E7D9A9 | | id-c = #E7D9A9 | ||
| − | | info = 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 />'''{{#ifeq:{{{wplink}}}|yes|[[WP:{{{trim|{{{1}}}|{{trim|{{{1}}}}}]]|{{Trim|{{{1}}}}}}}'''. |
| info-c = #F8EABA | | info-c = #F8EABA | ||
| info-fc = black | | info-fc = black | ||
| + | | nocat = {{{nocat|}}} | ||
| usercategory = <includeonly>{{#switch:1 | | usercategory = <includeonly>{{#switch:1 | ||
| {{#ifexist:Category:{{trim brackets|{{{1}}}}} members|1}} = {{trim brackets|{{{1}}}}} members | | {{#ifexist:Category:{{trim brackets|{{{1}}}}} members|1}} = {{trim brackets|{{{1}}}}} members | ||
Revision as of 16:16, 25 June 2017
{{userbox
| border-c = #000
| id = 45px
| id-c = #E7D9A9
| info = This user is currently working on
{{#ifeq:{{{wplink}}}|yes|[[WP:{{{{1}}}.
| info-c = #F8EABA
| info-fc = black
| nocat =
| usercategory =
}}
| 50px | This is the template sandbox page for Template:Currentlybox (diff). See also the companion subpage for test cases. |
Parameter options
|nopic=yeswill suppress the image (which displays by default)|nocat=yeswill disable categories (which only display if the category exists)|wplink=yeswill 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
| 45px | This user is currently working on WikiProject Cue sports. |
while {{currentlybox|WikiProject Cue sports}} does not:
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
| 45px | This user is currently working on WikiProject Cue sports. |
See also
Template:T, which is the right-floating variant of this template.
| The above documentation is transcluded from Template:Currentlybox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |