FlightGear wiki:Village pump: Difference between revisions

Jump to navigation Jump to search
(→‎Conversion of direct forum links and URLs to templates: That was a huge amount of work. Special:LinkSearch might be useful for hunting down more links.)
Line 99: Line 99:
:: There is a special page for looking for external links, [[Special:LinkSearch]], that might be useful.  Unfortunately it only looks for the domain, so you will have to sift though the results for the relevant hits.  ([http://wiki.flightgear.org/index.php?target=*.flightgear.org&namespace=&title=Special%3ALinkSearch External link search for "*.flightgear.org"].)
:: There is a special page for looking for external links, [[Special:LinkSearch]], that might be useful.  Unfortunately it only looks for the domain, so you will have to sift though the results for the relevant hits.  ([http://wiki.flightgear.org/index.php?target=*.flightgear.org&namespace=&title=Special%3ALinkSearch External link search for "*.flightgear.org"].)
:: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 10:19, 7 June 2019 (EDT)
:: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 10:19, 7 June 2019 (EDT)
::: Those articles with big diffs were usually the poor-quality articles pumped full of {{tl|cite web}} text.  I used vim macros to quickly convert them, but had to manually check every change to be sure as there were some issues.
::: I'd completely forgotten about [[Special:LinkSearch]].  I had used that previously to convert all repository links to convert the entire wiki to use the [[:Category:Repository link templates]] template family.  I now see that the forum link conversion is a much, much, much bigger job!  I currently see:
:::* <code><nowiki>http://forum.flightgear.org</nowiki></code>: [http://wiki.flightgear.org/index.php?title=Special:LinkSearch&limit=3000&offset=0&target=http%3A%2F%2Fforum.flightgear.org 2,386 hits].
:::* <code><nowiki>https://forum.flightgear.org</nowiki></code>: [http://wiki.flightgear.org/index.php?title=Special:LinkSearch&limit=3000&offset=0&target=https%3A%2F%2Fforum.flightgear.org 2,029 hits].
:::* <code><nowiki>http://flightgear.org/forums</nowiki></code>: [http://wiki.flightgear.org/index.php?title=Special:LinkSearch&limit=500&offset=0&target=http%3A%2F%2Fflightgear.org%2Fforums 295 hits]
:::* <code><nowiki>https://flightgear.org/forums</nowiki></code>: [http://wiki.flightgear.org/index.php?title=Special:LinkSearch&limit=500&offset=0&target=https%3A%2F%2Fflightgear.org%2Fforums 0 hits]
::: Unfortunately in converting all the direct links I found via the normal search, I know that we won't be able to automate/script this.  There are far too many different ways these forum links are presented.  For example a link ending with the anchor <code>#p1234</code> or simply having <code>p=1234</code> in the URL can have all other elements (''t'', ''f'', ''sid'', etc.) removed and drop to simply <code>{{obr}}forum link{{!}}p=1234{{cbr}}</code>, with either the {{param|text}} or {{param|title}} parameters specified as needed.  Some forum links are unnecessarily long.  A link to a post only needs {{param|p}}, a link to a topic only {{param|t}} and a link to a subforum only {{param|f}}.  The exception being ''hilit''.  However ''hilit'' is often present in the URL without any keywords.  Then there is also a mix of using <code>=</code> and <code><nowiki>{{=}}</nowiki></code> in the URLs.  And it is not always completely obvious if {{tl|forum url}} or {{tl|forum link}} should be used.  The only regularity is in the {{tl|cite web}} usage, but that also appears to have 3 or 4 forms that have evolved over time.
::: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 11:28, 7 June 2019 (EDT)


== Language flags on the main page ==
== Language flags on the main page ==

Navigation menu