Template:BBL-UBX: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
<noinclude>==How to use this template:==
<noinclude>
==How to use this template==
*Use the attribute {{{lang}}} to specify your language. You only need to put in the code, e.g. "en". The rest will be filled in automatically. The list of codes can be found at [[MarioWiki:Babel]]. When adding a new language code, please make to conform to [http://www.iana.org/assignments/language-subtag-registry this document].
*Use the attribute {{{lang}}} to specify your language. You only need to put in the code, e.g. "en". The rest will be filled in automatically. The list of codes can be found at [[MarioWiki:Babel]]. When adding a new language code, please make to conform to [http://www.iana.org/assignments/language-subtag-registry this document].
*Next, fill in your level of proficiency using the attribute {{{lvl}}}
*Next, fill in your level of proficiency using the attribute {{{lvl}}}
Line 5: Line 6:
*If you'd prefer not to have a userbox, you can instead set the attribute {{{mode}}} to "none." This will categorize you automatically, but without displaying a userbox.
*If you'd prefer not to have a userbox, you can instead set the attribute {{{mode}}} to "none." This will categorize you automatically, but without displaying a userbox.
*If you'd prefer a "table-less" setup (i.e. using {{tem|Userboxp}}) set {{{mode}}} to "p".
*If you'd prefer a "table-less" setup (i.e. using {{tem|Userboxp}}) set {{{mode}}} to "p".
==Example:==
 
==Example==
<pre>{{BBL-UBX|lang=en|lvl=2|border=#6ef7a7|mainbkgd=#c5fcdc|codebkgd=#6ef7a7}}</pre>
<pre>{{BBL-UBX|lang=en|lvl=2|border=#6ef7a7|mainbkgd=#c5fcdc|codebkgd=#6ef7a7}}</pre>
produces:
produces:
{{userboxtop}}
{{userboxtop}}
{{Userbox|code=[[:Category:user en|en]]-2|border=#6ef7a7|mainbkgd=#c5fcdc|codebkgd=#6ef7a7|codecolor=#000|msg=This user is able to contribute with an intermediate level of English.}}
{{Userbox|code=[[:Category:user en|en]]-2|border=#6ef7a7|mainbkgd=#c5fcdc|codebkgd=#6ef7a7|codecolor=#000|msg=This user is able to contribute with an intermediate level of English.}}
{{userboxbottom}}
{{userboxbottom}}
[[Category:Userbox templates]]</noinclude><includeonly>[[Category:User {{{lang}}}|{{{lvl}}}{{PAGENAME}}]]
[[Category:Userbox templates]]</noinclude><includeonly>[[Category:User {{{lang}}}|{{{lvl}}}{{PAGENAME}}]]
{{#ifeq:{{{mode}}}|none||{{{{#ifeq:{{{mode}}}|p|Userboxp|Userbox}}|code=[[:Category:user {{{lang}}}|{{{lang}}}]]-{{{lvl}}}|border={{{border|{{BBL-CLR|border|{{{lang}}}}}}}}|mainbkgd={{{mainbkgd|{{BBL-CLR|mainbkgd|{{{lang}}}}}}}}|codebkgd={{{codebkgd|{{BBL-CLR|codebkgd|{{{lang}}}}}}}}|codecolor={{{codecolor|{{BBL-CLR|codecolor|{{{lang}}}}}}}}|msg={{#switch:{{{lang}}}-{{{lvl}}}
{{#ifeq:{{{mode}}}|none||{{{{#ifeq:{{{mode}}}|p|Userboxp|Userbox}}|code=[[:Category:user {{{lang}}}|{{{lang}}}]]-{{{lvl}}}|border={{{border|{{BBL-CLR|border|{{{lang}}}}}}}}|mainbkgd={{{mainbkgd|{{BBL-CLR|mainbkgd|{{{lang}}}}}}}}|codebkgd={{{codebkgd|{{BBL-CLR|codebkgd|{{{lang}}}}}}}}|codecolor={{{codecolor|{{BBL-CLR|codecolor|{{{lang}}}}}}}}|msg={{#switch:{{{lang}}}-{{{lvl}}}
|#default=It looks like we don't have support for this language yet. Why not head over to {{Tem|BBL-UBX}} and set up support? If you need help, contact a [[Special:Listusers/sysop|Sysop]].
|#default=It looks like we don't have support for this language yet. Why not head over to {{tem|BBL-UBX}} and set it up? If you need help, contact an [[Special:ListUsers/sysop|admin]].
|en-1=This user is able to contribute with a basic level of English.
|en-1=This user is able to contribute with a basic level of English.
|en-2=This user is able to contribute with an intermediate level of English.
|en-2=This user is able to contribute with an intermediate level of English.
Line 194: Line 199:
|hu-4=Ez a szerkesztő anyanyelvi szinten beszél magyarul.
|hu-4=Ez a szerkesztő anyanyelvi szinten beszél magyarul.
|hu-n=Ennek a szerkesztőnek magyar az anyanyelve.
|hu-n=Ennek a szerkesztőnek magyar az anyanyelve.
}}}}}} </includeonly>
}}}}}}</includeonly>

Latest revision as of 08:47, January 22, 2025

How to use this template

  • Use the attribute {{{lang}}} to specify your language. You only need to put in the code, e.g. "en". The rest will be filled in automatically. The list of codes can be found at MarioWiki:Babel. When adding a new language code, please make to conform to this document.
  • Next, fill in your level of proficiency using the attribute {{{lvl}}}
  • If you'd like, you may override the default color scheme using the attributes {{{border}}}, {{{mainbkgd}}}, {{{codebkgd}}}, and {{{codecolor}}}.
  • If you'd prefer not to have a userbox, you can instead set the attribute {{{mode}}} to "none." This will categorize you automatically, but without displaying a userbox.
  • If you'd prefer a "table-less" setup (i.e. using {{Userboxp}}) set {{{mode}}} to "p".

Example

{{BBL-UBX|lang=en|lvl=2|border=#6ef7a7|mainbkgd=#c5fcdc|codebkgd=#6ef7a7}}

produces:

BBL-UBX's Userbox Tower
en-2