Editing
Template:Str left/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Examples of limitations=== All the limitations of use for this template and shown below are caused by the current implementation of the <nowiki>{{padleft:}}</nowiki> parser function used in this template, which does not filter its third parameter containing the characters used for padding a string to the specified length (it currently counts incorrectly the characters to extract from the padding string, and incorrectly measures its effective length; in addition this parameter is limited to 500 bytes). The following examples are demonstrating that this template does not interpret character entity references as the character they represent. It treats them as multiple characters and can leave them truncated. * <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a&nbsp;c | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a c | 3 }} *: The output "a c" may have been intended, but the named character entity was truncated, leaving no length available for the final "c". * <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a&#66;c | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | aBc | 3 }} *: This should display "abc", but the named character entity was truncated, leaving no length available for the final "c". * <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a c | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a c | 3 }} *: The result is correct, as expected. * <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a&#32;c | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a c | 3 }} *: This last example should be equivalent to the previous one, but it is not. This template will erase nowiki tags without counting their length: * <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a<nowiki/>bcd | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a<nowiki/>bcd | 3 }} *: Returns three characters as expected * <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a<nowiki>E</nowiki>bcd | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a<nowiki>E</nowiki>bcd | 3 }} *: Returns three characters, but not aEb as might have been expected. * <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a<nowiki/>bc | 10 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a<nowiki/>bc | 10 }} *: Returns 10 characters as expected. HTML comments, and the "noinclude", "includeonly" and "onlyinclude" wiki markup tags are also ignored, because they are preprocessed in template parameters, before including it and substituting parameters: :* <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a<noinclude/>bc | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a<noinclude/>bc | 3 }} :* <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | a<!-- comment -->bc | 3 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | a<!-- comment -->bc | 3 }} Note also that the specified length will cause the input string to be padded by repeating it, if this length is larger than the input string length: :* <code><nowiki>{{</nowiki> {{BASEPAGENAME}} | Abc. | 10 <nowiki>}}</nowiki></code> → {{ {{BASEPAGENAME}} | Abc. | 10 }}
Summary:
Please note that all contributions to Mirrorplay: Fae are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
MPFae:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information