Difference between revisions of "Template:User Pronouns"

From Team Fortress Wiki
Jump to: navigation, search
(worth the wait)
 
(Changed "Examples" section to specify that the first example produces something different based on your own preferences. I believe both "Preferences" links are necessary)
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
   |info-s  = 10
 
   |info-s  = 10
 
   |info-fc  = 000
 
   |info-fc  = 000
   |id      = {{#if: {{{1|}}}|{{{1}}}|/}}
+
   |id      = {{{1|{{GENDER:{{BASEPAGENAME}}|he/him|she/her|they/them}}}}}
   |info    = {{#if: {{{2|}}}|This user uses {{{2}}} pronouns.|This user doesn't use pronouns.}}
+
   |info    = This user uses {{{2|{{GENDER:{{BASEPAGENAME}}|he/him|she/her|they/them}}}}} pronouns.
}}<noinclude>
+
}}
 +
<noinclude>
  
 
{{clr}}
 
{{clr}}
Line 18: Line 19:
  
 
== Usage ==
 
== Usage ==
The template takes two parameters: the first one shows the shorthand representation in the smaller icon section, while the second one inserts them in the descriptive sentence. The parameters aren't processed in any way to make it as flexible as possible, so including {{code|<nowiki><br></nowiki>}} in the first parameter to display it as two or three fancy lines is useful. When left blank, it defaults to the user not using pronouns.
+
The template takes two parameters: the first one shows the shorthand representation in the smaller icon section, while the second one inserts them in the descriptive sentence. The parameters aren't processed in any way to make it as flexible as possible, so including {{code|<nowiki><br></nowiki>}} in the first parameter to display it as two or three fancy lines is useful. When left blank, it defaults to the user's pronouns as set in the [[Special:Preferences|Preferences]] settings.
  
 
== Examples ==
 
== Examples ==
<pre>
 
{|
 
| {{User Pronouns}}
 
|-
 
| {{User Pronouns|they/<br>them|they/them}}
 
|-
 
| {{User Pronouns|any|any}}
 
|-
 
| {{User Pronouns|him/<br>they|he/him and they/them}}
 
|}
 
</pre>
 
* The above code will generate the following:
 
 
{{{!}}
 
{{{!}}
{{!}} {{User Pronouns}}
+
{{!}} <code><nowiki>{{User Pronouns}}</nowiki></code> produces (differs based on your [[Special:Preferences|Preferences]]):<br>{{User Pronouns}}
 
{{!}}-
 
{{!}}-
{{!}} {{User Pronouns|they/<br>them|they/them}}
+
{{!}} <code><nowiki>{{User Pronouns|they/<br>them|they/them}}</nowiki></code> produces:<br>{{User Pronouns|they/<br>them|they/them}}
 
{{!}}-
 
{{!}}-
{{!}} {{User Pronouns|any|any}}
+
{{!}} <code><nowiki>{User Pronouns|any|any}}</nowiki></code> produces:<br>{{User Pronouns|any|any}}
 
{{!}}-
 
{{!}}-
{{!}} {{User Pronouns|him/<br>they|he/him and they/them}}
+
{{!}} <code><nowiki>{User Pronouns|him/<br>they|he/him and they/them}}</nowiki></code> produces:<br>{{User Pronouns|him/<br>they|he/him and they/them}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
 
[[Category:Userbox templates|Pronouns]]</noinclude>
 
[[Category:Userbox templates|Pronouns]]</noinclude>

Latest revision as of 12:38, 7 April 2024

they/them This user uses they/them pronouns.


Template documentation

This userbox template can show the pronoun preferences of a user.

Usage

The template takes two parameters: the first one shows the shorthand representation in the smaller icon section, while the second one inserts them in the descriptive sentence. The parameters aren't processed in any way to make it as flexible as possible, so including <br> in the first parameter to display it as two or three fancy lines is useful. When left blank, it defaults to the user's pronouns as set in the Preferences settings.

Examples

{{User Pronouns}} produces (differs based on your Preferences):
they/them This user uses they/them pronouns.


{{User Pronouns|they/<br>them|they/them}} produces:
they/
them
This user uses they/them pronouns.


{User Pronouns|any|any}} produces:
any This user uses any pronouns.


{User Pronouns|him/<br>they|he/him and they/them}} produces:
him/
they
This user uses he/him and they/them pronouns.