Please remember that WiKirby contains spoilers, which you read at your own risk! See our general disclaimer for details.

Template:My: Difference between revisions

From WiKirby, your independent source of Kirby knowledge.
Jump to navigationJump to search
m (added {{{cap}}})
m (not the prettiest but it works and doesn't use variables now)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch:{{{cap}}}|1={{gender:{{CURRENTUSER}}|His|Her|{{#ifexist:User_talk:{{CURRENTUSER}}|The|The player's}}}}|{{gender:{{CURRENTUSER}}|his|her|{{#ifexist:User_talk:{{CURRENTUSER}}|the|the player's}}}}}}<noinclude>
{{#ifeq:{{{cap}}}|1|{{ucfirst:
 
{{gender:{{CURRENTUSER}}
|His
|Her
|{{#if:{{CURRENTLOGGEDUSER}}
  |Their
  |The player's
  }}
}}
}}|{{gender:{{CURRENTUSER}}
|his
|her
|{{#if:{{CURRENTLOGGEDUSER}}
  |their
  |the player's
  }}
}}
}}<noinclude>
{{doc}}
{{doc}}
[[Category:Meta-templates]]</noinclude>
[[Category:Meta-templates]]</noinclude>

Latest revision as of 19:09, 8 March 2023

the player's

Usage[edit]

This template can be used to display a gender-specific possessive adjective (his, her) in an article. If viewed while logged out, or if the user has not set the player's gender in Special:Preferences, the template will display "the player's" instead. Adding the optional cap=1 parameter will capitalise the first letter of the adjective.