Forum:URL GET extension and shorter SMW query links
URL GET extension and shorter SMW query links[edit]
Extension:UrlGetParameters has been added to the wiki allowing access to the URL's query string with the #urlget
parser function. This allows for many exciting opportunities!
The first use of this has been the shortening of certain overly long SMW query links (such as a quality's use list). While functionally fine, these links were rather nightmarish when shared. The queries have been copied to their own pages (subpages of the new Ask) and require only the quality's name in the URL to generate the same list. {{Property category}} and {{Property listing}} templates have been modified with the optional ShortURL
parameter which will switch to this shorter form (but only if the relevant query page exist under Ask). The used name can be overridden with PropertyOverride
in case the names differ. Quality and Item templates now use this feature.
Example, gains:
Old: https://fallenlondon.wiki/w/index.php?title=Special:Ask&x=-5B-5BGains%3A%3ANight-2DWhisper-5D-5D-20-5B-5B%3A%2B-5D-5D%2F-3F%3DObject%2F-3FFrom-20message%3DFrom%2F-3FHas-20restrictions%3DRestrictions%2F-3FFrom-20Card-2FStorylet.Has-20restrictions%3DFrom-20Restrictions&mainlabel=&offset=0&format=%20category&link=none&intro=%20%5B%5BFile%3AScaryeye.png%7Cright%5D%5D%20Actions%20which%20give%20out%20%5B%5BNight-Whisper%5D%5D.%0A%5B%5BFile%3ADecorative%20text%20divider%203.svg%7C800px%7Ccenter%7Cclass%3Dinvert-in-dark%7Clink%3D%5D%5D&searchlabel=%20a%20list%20of%20how%20to%20obtain%20this%20item&default=%20There%20are%20no%20how%20to%20obtain%20this%20item.&columns=%200&delim=%40&template=Property%20category%2FItem&named%20args=yes
New: https://fallenlondon.wiki/wiki/Ask/Gains?q=Night-Whisper
- CarrONoir (talk) 20:04, 23 April 2024 (UTC)