v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User talk:Mason11987"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (→‎Why and how: new section)
(→‎Search Namespaces: new section)
Line 77: Line 77:
  
 
Hope that helps. [[User:VengefulDonut|VengefulDonut]] 22:36, 24 April 2010 (UTC)
 
Hope that helps. [[User:VengefulDonut|VengefulDonut]] 22:36, 24 April 2010 (UTC)
 +
 +
== Search Namespaces ==
 +
 +
Apparently, it's quite a bit of a hack to do so.  I know the current 1 namespace at a time thing isn't exactly optimal, but it's the best we can do at the moment unless I hack at the codebase (the function responsible for processing recent changes params doesn't accept more than one namespace input) --[[User:Briess|Briess]] 00:04, 25 April 2010 (UTC)

Revision as of 00:04, 25 April 2010

Hi, if you'd like to leave me a message click here. I'll respond here. If I leave a message on your talk page, please respond there. Thanks!

What about {{version}}?

Did you have something like this in mind? category:version template:version (: VengefulDonut 21:32, 28 February 2010 (UTC)

Dwarf Fortress Wiki talk:Versions VengefulDonut 22:18, 28 February 2010 (UTC)

I set it up intending for it to be more of a staging namespace for us. --Briess 00:42, 8 March 2010 (UTC)

Your message to me

ie, here

Thanks for the link.

Is the intent to mark every article with a version number? Garrie 10:00, 1 March 2010 (UTC)

The intent is to mark every relevant article with the version it is up to date as of. So effectively yes. In order to let users know the page is up to date, and editors to know that it needs to be updated. If you have more questions about my suggestion you could use the talk page for that link I gave you so everyone else can participate. Thanks. Mason (T-C) 11:46, 1 March 2010 (UTC)

DF2010

So I realize you're proud of the meme you're starting, but please stop spreading it. Here is why:

  • There is going to be more than one version of DF in 2010. If the terminology sticks, it will only throw people off.
  • The wiki is going to have specific labels for versions, even if they have nicknames elsewhere. The only issue is who will edit them in. If you entice many people into using "DF2010" in wiki articles, there will be more for me to clean up.
    PSo even though it feels good to spread it, please understand you are doing harm. VengefulDonut 16:22, 15 March 2010 (UTC)

It seems I misunderstood your goal here. Although it would be a problem if you were trying to make the term permanent, apparently you're not. So I take back what I said about causing harm. VengefulDonut 19:48, 15 March 2010 (UTC)

P.S: If you don't want to be misunderstood, there are ways to fight that. I still plan to take what you say seriously, although I guess I can stop if that's something you want.

I'm a bit confused here. Why are you attacking me? VengefulDonut 13:11, 16 March 2010 (UTC)

Uncategorized Pages

It doesn't appear I can actually do that without seriously hacking the software. I'm still looking, but the code to find uncategorized pages is such a clusterfuck of stupid that we may be out of luck. --Briess 02:56, 20 March 2010 (UTC)

Premature Arenalation

Hey. It seems that back the end of January you edited the Arena page, removing the redirect to cage#Arena and replacing it with a statement that "Arenas are now in the game!" - which is awkward, considering they aren't, and that there are links to "arena" in a variety of articles, and that it's not an uncommon search word. Already confused at least one user. I hid that text for now. Once 2010 is up and running, that page will continue as a redirect for 40d, and a new current-version "Arena" article will be needed with the new info. --Albedo 16:40, 20 March 2010 (UTC)

Hey - yeah, from the date I figured as much. I guess (without saying so) I wanted to suggest that if you thought there were any others sim, try to track them down. All good, didn't mean anything else. Readya later.--Albedo 04:38, 21 March 2010 (UTC)

File Uploads

Let me check the logs to troubleshoot. --Briess 13:16, 1 April 2010 (UTC)

Re: Custom JS

It is indeed enabled. See useful scripts. Emi [T] 01:38, 9 April 2010 (UTC)

Briess already knew! Emi [T] 01:58, 9 April 2010 (UTC)
Indeed. I know everything. --Briess 02:03, 9 April 2010 (UTC)

Moving pages

Mason,

How do you move pages on a wiki such as this? I'd like to move my page and my talk page to an "old" 40d page and start a new one.

Thanks. --Kwieland 05:00, 14 April 2010 (UTC)

Why and how

I can answer both of these questions for you, Mason. Since a rational person (eg: you) would want the answers to these questions before deciding if it's "madness", I'm putting the answer on your talk page rather than the important-sounding "Central Discussion" page. I'll start with the why and then go into the how.

Why: Having small summaries for a large number of in-game items is convenient. A person can just type the name of the thing into the search bar and get information directly related to that thing and some useful links that lead to more. However, this leads to a few problems; we want each of these to have accurate information and we want them to be formatted consistently. Also, we want to not have to comb through a large number of articles every time something changes. How can we accomplish this? Well, it turns out all of the information describing these things is contained in the raw files for DF, and people have been creating articles by hand translating it into the wiki for a long time. This is a huge waste of effort. So right now I'm working on some templates to automatically pull information from the raw data files.

How: There are a few templates that use regular expressions to search the raw data files that have been placed on the wiki. I'll list here what they do.

  • The first is Template:raw. This template looks for the raw entry of a thing inside the file you specify. It then returns the raw entry.
  • The next important one is Template:tag. Given a chunk of raw data, it can tell you whether or not it contains a particular token, like SEDIMENTARY. However, this is just a true or false value. It doesn't actually pull information from inside something like "[ENVIRONMENT:SEDIMENTARY:VEIN:100]". For that you need
  • Template:tagentry. Given a chunk of raw data, a token to look for, and an offset, it will return the corresponding information. So if I wanted to pull out the SEDIMENTARY part of that ENVIRONMENT tag, I could do it like so: {{tagentry|[ENVIRONMENT:SEDIMENTARY:VEIN:100]|ENVIRONMENT|1}}. There's a limitation to this one too, though. It only takes information from the first one it encounters. To handle things with more than one ENVIRONMENT token, we need to use
  • Template:Foreachtag. This one is a little complicated. In addition to the parameters of the previous ones, it also has capture1, capture2, .. capture5, string1, .. string6. This template replaces each instance of the token you specify with string1capture1string2...capture5string6, where the "capture" parameters specify parts of the token and the "string" parts are literal strings you want to intersperse between them.

Given these tools, we have template:stonelookup, which finds the raw data of any mineral, pulls out some information, formats it to look pretty, and passes it on to template:mineral. If the name of the mineral you want to do this for is specified by the page name, you can use template:stonelookup/0 instead. Oh, and if you specify uses= and properties= for this and similar templates, it should just pass them on to template:mineral.

Hope that helps. VengefulDonut 22:36, 24 April 2010 (UTC)

Search Namespaces

Apparently, it's quite a bit of a hack to do so. I know the current 1 namespace at a time thing isn't exactly optimal, but it's the best we can do at the moment unless I hack at the codebase (the function responsible for processing recent changes params doesn't accept more than one namespace input) --Briess 00:04, 25 April 2010 (UTC)