Editing Forum:Spacing when there are multiple transaction types

From Fallen London Wiki

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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 7: Line 7:
 
<!--END-->- [[User:Stelio|Stelio]] ([[User talk:Stelio|talk]]) 13:02, 12 January 2024 (UTC)
 
<!--END-->- [[User:Stelio|Stelio]] ([[User talk:Stelio|talk]]) 13:02, 12 January 2024 (UTC)
 
: Thanks for pointing it out. FYI, the reason for this is slightly more arcane.<br><br>If you can buy something for items, the first thing [[Template:Transaction]] does is setting a category for the loss of said item (in this case, [[:Category:Rat-Shilling Loss]]). Categories, however, gobble up all the whitespace around them (which makes sense if they are at the end of an article, but not so much if they are inserted between "normal" text). So no matter how much space you put around the Transaction calls, it all gets collapsed into an empty string (and not into one space as HTML would do).<br><br>You can see this by going to [[Special:ExpandTemplates]] and putting <nowiki>{{:Well-Placed Pawn}}</nowiki> in the input. <br><br>I am not sure how to fix this; I know I researched the issue at some point, but I don't think I ever came up with a solution. [[User:RagCall|RagCall]] ([[User talk:RagCall|talk]]) 14:59, 17 January 2024 (UTC)
 
: Thanks for pointing it out. FYI, the reason for this is slightly more arcane.<br><br>If you can buy something for items, the first thing [[Template:Transaction]] does is setting a category for the loss of said item (in this case, [[:Category:Rat-Shilling Loss]]). Categories, however, gobble up all the whitespace around them (which makes sense if they are at the end of an article, but not so much if they are inserted between "normal" text). So no matter how much space you put around the Transaction calls, it all gets collapsed into an empty string (and not into one space as HTML would do).<br><br>You can see this by going to [[Special:ExpandTemplates]] and putting <nowiki>{{:Well-Placed Pawn}}</nowiki> in the input. <br><br>I am not sure how to fix this; I know I researched the issue at some point, but I don't think I ever came up with a solution. [[User:RagCall|RagCall]] ([[User talk:RagCall|talk]]) 14:59, 17 January 2024 (UTC)
: Oh, yeah! That's interesting.<br><br>A little playing around shows that if you have a line break between the category and the text following it, the collapsed text resolves to a space as required. Possible solution? You're better placed to work out whether that will break anything else. [[User:Stelio|Stelio]] ([[User talk:Stelio|talk]]) 14:08, 23 January 2024 (UTC)
 

Please note that all contributions to Fallen London Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Fallen London Wiki: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!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: