Template:First character: Difference between revisions
Jump to navigation
Jump to search
m (Changed protection level for "Template:First character": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
Richardpruen (talk | contribs) m (1 revision imported) |
(No difference)
|
Latest revision as of 15:34, 1 September 2021
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 T14974 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