Template:First character/doc
< Template:First character
Jump to navigation
Jump to search
Revision as of 07:29, 30 August 2019 by Jdenm8 (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> ==Usage== * {{Tlx...")
This is a documentation subpage for Template:First character. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{First character|string}}
-> s{{First character|!string}}
-> !{{First character|$string}}
-> ${{First character|[string}}
-> [{{First character|]string}}
-> ]{{First character|-string}}
-> -{{First character|_string}}
-> _{{First character|{string}}
-> {{{First character|}string}}
-> }
Issues
Does not cope well with =, #, :, * or ;
{{First character|=string}}
->{{First character|#string}}
->
{{First character|:string}}
->
{{First character|;string}}
->
{{First character|*string}}
->
"=" can be worked around:
{{First character|1=string}}
-> =
"#", ":", "*" and ";" do actually get computed and can be used in comparison tests.
The display problem seems to hinge on Template:Phab by which bug Mediawiki treats these as if they are commencing a new-line (possibly inserting a newline for that purpose) so that:
{{First character|#string}}
Item 1
gives:
- Item 1