User talk:NorrYtt
Thanks for the participiating in the project and nice work on Odyssey. When you get to editing Torment, use that link: http://wiki.riteme.site/w/index.php?title=Torment&action=edit. It is currently a rarely-used redirect to Suffering, so put something like This article is about Magic: The Gathering expansion set. For other meanings see Suffering. at the top of the new article. Grue 12:00, 23 Dec 2004 (UTC)
deck template
[edit]Hi - I think the solution to your deck template problem is to use named parameters rather than positional, and the variable number can then be dealt with using m:ParserFunctions. I also suspect you might want to use a table, so the whole thing might be something like the following. I don't know what the entry in the first column is (card number?), so don't know what the parameter name should really be. With this definition, you'd invoke it like this:
{{deck|Deck=deckname|Creator=who|num1=a|card1=whatever|num2=b|card2=anotherone}}
supplying anywhere between one and seven cards. -- Rick Block (talk) 15:38, 7 July 2006 (UTC)
{|
|-
| colspan="2" | '''{{{Deck}}}'''
|-
| colspan="2" | ''{{{Creator}}}''
|-
| {{{num1}}} || [[{{{card1}}}]]
{{#if: {{{card2|}}} |
{{!}}-
{{!}} {{{num2}}} {{!}}{{!}} [[{{{card2}}}]] }}
{{#if: {{{card3|}}} |
{{!}}-
{{!}} {{{num3}}} {{!}}{{!}} [[{{{card3}}}]] }}
{{#if: {{{card4|}}} |
{{!}}-
{{!}} {{{num4}}} {{!}}{{!}} [[{{{card4}}}]] }}
{{#if: {{{card5|}}} |
{{!}}-
{{!}} {{{num5}}} {{!}}{{!}} [[{{{card5}}}]] }}
{{#if: {{{card6|}}} |
{{!}}-
{{!}} {{{num6}}} {{!}}{{!}} [[{{{card6}}}]] }}
{{#if: {{{card7|}}} |
{{!}}-
{{!}} {{{num7}}} {{!}}{{!}} [[{{{card7}}}]] }}
|}
- Didn't notice the link issue. You can do the links using the urlencode function, for example
- but it's not completely obvious to me that it's appropriate to be linking to this site. It seems perilously close to Wikipedia:Spam. -- Rick Block (talk) 15:59, 7 July 2006 (UTC)
- Thanks, this should fix all my problems. There are over 10,000 Magic cards and most decks only contain 60 of them. A quality decklist of Magic cards must link to card images (there is a ton of information in just one Magic card), and every decklist that appears online does this. Gatherer at Wizards of the Coast is the designed solution to this 'problem' of mass card links. Otherwise, all articles would have to spell out relevant card text (as they do in offline references) which is a waste of time and space when an image link solves all these problems.
- Here are 3 examples of what I might end up with (these are increasingly grandiose):
- I wanted to make the template gorgeous in code but named parameters let me finesse while being uglier to type in. On an unrelated note, in grad school I wrote a Monty Hall Simulator in C++. You could do X doors, Y picks, and Z cars and other nonsense that dumped everything to Excel. It convinced everyone in class they were wrong. :D
- Again, thanks. NorrYtt 16:29, 7 July 2006 (UTC)
- If you really want, you could use positional parameters (I'm pretty sure the #if syntax works for them as well). You can't do a loop of any sort, so the template code will end up pretty much the same whether you do positional or named. If you're talking about up to 60 different parameters (times two?) I can see how positional might be more attractive. You can also mix named and positional, for example specifying the deck name and owner with named params but using positional for the cards (and number of each card). -- Rick Block (talk) 17:06, 7 July 2006 (UTC)
It works great now!
{{User:NorrYtt/deck|Red Deck Wins|Shuhei Nakamura|Japanese Nationals|4|Grim Lavamancer|4|Jackal Pup|4|Mogg Fanatic|4|Blistering Firecat|4|Firebolt|4|Seal of Fire|4|Magma Jet|4|Pillage|4|Cursed Scroll|4|Wasteland|4|Rishadan Port|4|Bloodstained Mire|4|Wooded Foothills|8|Mountain}}
Red Deck Wins
Shuhei Nakamura
Japanese Nationals
4 | Grim Lavamancer |
4 | Jackal Pup |
4 | Mogg Fanatic |
4 | Blistering Firecat |
4 | Firebolt |
4 | Seal of Fire |
4 | Magma Jet |
4 | Pillage |
4 | Cursed Scroll |
4 | Wasteland |
4 | Rishadan Port |
4 | Bloodstained Mire |
4 | Wooded Foothills |
8 | Mountain |
Now that I know about m:ParserFunctions I can go nuts with this template! NorrYtt 18:06, 7 July 2006 (UTC)
- One other suggestion - you might want to have the source invocation more similar to the ultimate layout, e.g. something like
{{User:NorrYtt/deck|Red Deck Wins|Shuhei Nakamura|Japanese Nationals
|4|Grim Lavamancer
|4|Jackal Pup
|4|Mogg Fanatic
|4|Blistering Firecat
|4|Firebolt
|4|Seal of Fire
|4|Magma Jet
|4|Pillage
|4|Cursed Scroll
|4|Wasteland
|4|Rishadan Port
|4|Bloodstained Mire
|4|Wooded Foothills
|8|Mountain}}
- I can't seem to trim the trailing carriage return from a long decklist like above using #substr and #len - 1. The closest I can get is to just urlencode the card name but that has the side effect of replacing spaces with pluses. I am exploring this at User_talk:NorrYtt/deck. NorrYtt 15:59, 10 July 2006 (UTC)
- I assume you don't mind if I play with this a bit. Let me know if you do. -- Rick Block (talk) 00:39, 11 July 2006 (UTC)
- OK. From m:Help:Template, you can "suppress" the line feeds by having them be assigned to dummy parameters. For example, see the last sample on User talk:NorrYtt/deck (which assigns all the line feeds to a dummy, but nameless, parameter). I've never run into line feeds being an issue before, which sort of surprises me. I suppose the reason is I've generally used named parameters and a line feed before
paramname = value
has no particular effect, although I'm sure I've seen infobox-style templates with the parameter values given like this:
- OK. From m:Help:Template, you can "suppress" the line feeds by having them be assigned to dummy parameters. For example, see the last sample on User talk:NorrYtt/deck (which assigns all the line feeds to a dummy, but nameless, parameter). I've never run into line feeds being an issue before, which sort of surprises me. I suppose the reason is I've generally used named parameters and a line feed before
{{templatename
|p1 = value1
|p2 = value2
|p3 = value3
}}
- Very odd. In any event, I suspect you have what you need for now. -- Rick Block (talk) 01:21, 11 July 2006 (UTC)
"User Hate"
[edit]May I ask what this is in reference to? Andrew Levine 21:34, 31 August 2006 (UTC)
Hi,
You appear to be eligible to vote in the current Arbitration Committee election. The Arbitration Committee is the panel of editors responsible for conducting the Wikipedia arbitration process. It has the authority to enact binding solutions for disputes between editors, primarily related to serious behavioural issues that the community has been unable to resolve. This includes the ability to impose site bans, topic bans, editing restrictions, and other measures needed to maintain our editing environment. The arbitration policy describes the Committee's roles and responsibilities in greater detail. If you wish to participate, you are welcome to review the candidates' statements and submit your choices on the voting page. For the Election committee, MediaWiki message delivery (talk) 12:55, 23 November 2015 (UTC)
![Notice](http://upload.wikimedia.org/wikipedia/en/thumb/7/74/Ambox_warning_yellow.svg/48px-Ambox_warning_yellow.svg.png)
The file File:MetagameClock.JPG has been proposed for deletion because of the following concern:
Unused, low-res, no obvious use.
While all constructive contributions to Wikipedia are appreciated, pages may be deleted for any of several reasons.
You may prevent the proposed deletion by removing the {{proposed deletion/dated files}}
notice, but please explain why in your edit summary or on the file's talk page.
Please consider addressing the issues raised. Removing {{proposed deletion/dated files}}
will stop the proposed deletion process, but other deletion processes exist. In particular, the speedy deletion process can result in deletion without discussion, and files for discussion allows discussion to reach consensus for deletion. --Minorax«¦talk¦» 08:38, 15 January 2023 (UTC)