Difference between revisions of "Template:Currentlybox"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(add float option)
imported>Ahecht
({{trim brackets}} won't remove internal brackets in a string. In this case, {{delink}} is better.)
Line 9: Line 9:
 
| nocat        = {{{nocat|}}}
 
| nocat        = {{{nocat|}}}
 
| usercategory  = <includeonly>{{#switch:1
 
| usercategory  = <includeonly>{{#switch:1
  | {{#ifexist:Category:{{trim brackets|{{{1}}}}} members|1}} = {{trim brackets|{{{1}}}}} members
+
  | {{#ifexist:Category:{{delink|{{{1}}}}} members|1}} = {{delink|{{{1}}}}} members
  | {{#ifexist:Category:{{trim brackets|{{{1}}}}} participants|1}} = {{trim brackets|{{{1}}}}} participants
+
  | {{#ifexist:Category:{{delink|{{{1}}}}} participants|1}} = {{delink|{{{1}}}}} participants
  | {{#ifexist:Category:Participants in {{trim brackets|{{{1}}}}}|1}} = Participants in {{trim brackets|{{{1}}}}}
+
  | {{#ifexist:Category:Participants in {{delink|{{{1}}}}}|1}} = Participants in {{delink|{{{1}}}}}
 
  }}</includeonly>
 
  }}</includeonly>
 
}}<noinclude>
 
}}<noinclude>

Revision as of 17:53, 24 September 2018

Finland road sign 142 (1995–2020).svgThis 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).svgThis user is currently working on
WikiProject Cue sports.

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

Finland road sign 142 (1995–2020).svgThis 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).svgThis 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.