User:Becasita/SubPages/Templates/ProcessRarities
< User:Becasita | SubPages | Templates
Usage[edit]
{{User:Becasita/SubPages/Templates/ProcessRarities|<Rarities>|<Separator>|abbr|space|link}}
Receives a list of rarities. By default, it will print them with their full terminology, linked, one in each line.
- Receives two unnamed parameter
- 1: A list of rarities separated by a comma (
,
). Not case sensitive (see {{R}} for more info). Defaults toCommon
. - 2: A separator. In case there are two or more rarities, they will be outputted separated by the argument given to this parameter. Optional parameter.
- Receives three named parameters
- abbr: By default, the rarities are outputted with their full terminology (e.g.,
Super Rare
); If this parameter is filled (with, for instance1
oryes
), the rarities will be outputted abbreviated (e.g.,SR
). Optional parameter. - space: By default, there will be no spaces around the delimiter; This optional parameter serves to add said space. There are three possible keywords for this parameter:
left
, which will add a space at the left of the delimiter;right
, which will add a space at the right of the delimiter;both
, which will add a space at both the left and the right of the delimiter.
- link: If set to
no
/none
/off
/false
/0
, the rarities will not be linked when outputted. Optional.
Examples[edit]
Input | {{:User:Becasita/SubPages/Templates/ProcessRarities|C, r, sCR, utr}} |
---|---|
Output | [[[2]|[2]]] [[[3]|[3]]] [[[4]|[4]]] [[[5]|[5]]] |
Input | {{:User:Becasita/SubPages/Templates/ProcessRarities| UPR, DNPR | / | space=both }} |
---|---|
Output | [[[6]|[6]]] / [[[7]|[7]]] |
Input | {{:User:Becasita/SubPages/Templates/ProcessRarities| GScR, SP | , | space=right }} |
---|---|
Output | [[[8]|[8]]], [[[9]|[9]]] |
Input | {{:User:Becasita/SubPages/Templates/ProcessRarities| Normal Rare, Not a rarity, PlScR | ;<br /> | abbr=yes }} |
---|---|
Output | [[[10]|[10]]]; [[[11]|[11]]]; [[[12]|[12]]] |
Input | {{:User:Becasita/SubPages/Templates/ProcessRarities| C, SP, SSP | or | space=both | link = none }} |
---|---|
Output | [2] or [9] or [13] |
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedCommon
- ↑ a b Cite error: Invalid
<ref>
tag; no text was provided for refs namedC
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedr
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedsCR
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedutr
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedUPR
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedDNPR
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedGScR
- ↑ a b Cite error: Invalid
<ref>
tag; no text was provided for refs namedSP
- ↑ a b Cite error: Invalid
<ref>
tag; no text was provided for refs namedNormal Rare
- ↑ a b Cite error: Invalid
<ref>
tag; no text was provided for refs namedNot a rarity
- ↑ a b Cite error: Invalid
<ref>
tag; no text was provided for refs namedPlScR
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedSSP