User:Becasita/SubPages/Templates/ProcessRarities

From Yugipedia
Jump to: navigation, search

[[[1]|[1]]]

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 to Common.
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 instance 1 or yes), 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]
  1. Cite error: Invalid <ref> tag; no text was provided for refs named Common
  2. a b Cite error: Invalid <ref> tag; no text was provided for refs named C
  3. Cite error: Invalid <ref> tag; no text was provided for refs named r
  4. Cite error: Invalid <ref> tag; no text was provided for refs named sCR
  5. Cite error: Invalid <ref> tag; no text was provided for refs named utr
  6. Cite error: Invalid <ref> tag; no text was provided for refs named UPR
  7. Cite error: Invalid <ref> tag; no text was provided for refs named DNPR
  8. Cite error: Invalid <ref> tag; no text was provided for refs named GScR
  9. a b Cite error: Invalid <ref> tag; no text was provided for refs named SP
  10. a b Cite error: Invalid <ref> tag; no text was provided for refs named Normal Rare
  11. a b Cite error: Invalid <ref> tag; no text was provided for refs named Not a rarity
  12. a b Cite error: Invalid <ref> tag; no text was provided for refs named PlScR
  13. Cite error: Invalid <ref> tag; no text was provided for refs named SSP