Difference between revisions of "User talk:HubrisBliss"

From UFOpaedia
Jump to navigation Jump to search
Line 3: Line 3:
 
==Re: The Info Popup==
 
==Re: The Info Popup==
  
"I just need to learn how to page break properly in the b-info pop-up window. This is my first wiki edit ever, so I learned a bunch watching your updates."
+
10-4. I put the current mediocre rank icons up this morning, I think.  Certainly looking forward to them being upgraded.  I'm so glad you made the [[Template:Ability (LW2)]]. The old one was atrocious to add to. I just need to learn how to page break properly in the <code>b-info</code> pop-up window.<br/>
 +
This is my first wiki edit ever, so I learned a bunch watching your updates. I never would've thought about putting the extra info on a mouse-over, or how to do it.  BTW, if you think your question mark is poor, [[:File:Questionmark_yellow_(LW2).png|check out what I uploaded, lol]].<br/>
 +
I'll be filling out more text info for now, and working on the Psi Operative Tree.<br/>
 +
Oh, and I just learned about <nowiki>'~~~~'</nowiki>. <Phew>. --[[User:HubrisBliss|HubrisBliss]] ([[User talk:HubrisBliss|talk]]) 23:30, 27 January 2017 (UTC)
 +
:Glad I could teach by doing. :) (Though regexes and Pywikibot helped a lot in sorting those ability templates.) As for the info pop-up, I've never been able to get title text to respect breaks on a wiki. I think it's still possible, but would require tweaking the CSS used by the wiki to add a new class for these images specifically. --Tvol (talk) 23:59, 27 January 2017 (UTC)
 +
:Oh, and I forgot to mention, that this line-break issue is part of the reason I moved the info bits to their own sub-pages. (Or will be moving them.) That way it's easy to transclude those lists elsewhere, in-case there's need of a stop-gap of some sort. --Tvol (talk) 00:12, 28 January 2017 (UTC)
 +
::Specifically, where are you moving the info bits?  Not the individual perk templates? i.e. [[Template:Alpha Mike Foxtrot (LW2)]], after <code>| s_info =</code>.  If somewhere else, please point me there. --[[User:HubrisBliss|HubrisBliss]] ([[User talk:HubrisBliss|talk]]) 00:37, 28 January 2017 (UTC)
  
Glad I could teach by doing. :) (Though regexes and Pywikibot helped a lot in sorting those ability templates.) As for the info pop-up, I've never been able to get title text to respect breaks on a wiki. I think it's still possible, but would require tweaking the CSS used by the wiki to add a new class for these images specifically. --[[User:Tvol|Tvol]] ([[User talk:Tvol|talk]]) 23:59, 27 January 2017 (UTC)
+
::: Ah, okay. Here goes my explanation. I'm moving the lists of extra/extended info to sub-pages of their respective templates. This means that for [[Template:Alpha Mike Foxtrot (LW2)]], the info text (and ''just'' the info text) would be on the page [[Template:Alpha Mike Foxtrot (LW2)/Info]]. Note the <code>/Info</code> part. Then to the template itself should be edited so that it reads <code>{{ User talk:HubrisBliss/Info }}</code> and saved. When it is saved, the <code>subst:</code> part will convert the FULLPAGENAME magic word into raw text, and the result will be, in this example, <code>{{ Template:Alpha Mike Foxtrot (LW2)/Info }}</code>. This will make sure that it references its own Info sub-page correctly no matter where it is used on the wiki. You can see an example at [[Template:Heavy_Weapons_(LW2)]] and [[Template:Heavy_Weapons_(LW2)/Info]], as well as more info about [https://www.mediawiki.org/wiki/Transclusion transclusion here.]
  
Oh, and I forgot to mention, that this line-break issue is part of the reason I moved the info bits to their own sub-pages. (Or will be moving them.) That way it's easy to transclude those lists elsewhere, in-case there's need of a stop-gap of some sort. --[[User:Tvol|Tvol]] ([[User talk:Tvol|talk]]) 00:12, 28 January 2017 (UTC)
+
::: The payoff here is that should anyone want to reference the perk's extra info text somewhere else, they don't need to duplicate it, just use transclusion to refer to it, keeping things DRY (a software engineering principle, "Don't Repeat Yourself", but it applies equally well to wikis). This could be used, for example, to display all the info text underneath the ability icon, or next to it, or in a different cell in a table, etc. It's a just-in-case thing but could save headache later. --[[User:Tvol|Tvol]] ([[User talk:Tvol|talk]]) 01:01, 28 January 2017 (UTC)

Revision as of 01:01, 28 January 2017

Heya. I like where you're going with Template:Class Tree (LW2). Just so you know I have a pile of images including rank, class, and ability icons all pulled from the game's files (they're even PNGs so have transparency :D ) ready to upload. I'll be doing that as a batch job later today (just in case you were thinking of doing it manually, which would suck...a lot). The darker scheme for the class tree will certainly look good with the icons I've pulled. --Tvol (talk) 22:40, 27 January 2017 (UTC)

Re: The Info Popup

10-4. I put the current mediocre rank icons up this morning, I think. Certainly looking forward to them being upgraded. I'm so glad you made the Template:Ability (LW2). The old one was atrocious to add to. I just need to learn how to page break properly in the b-info pop-up window.
This is my first wiki edit ever, so I learned a bunch watching your updates. I never would've thought about putting the extra info on a mouse-over, or how to do it. BTW, if you think your question mark is poor, check out what I uploaded, lol.
I'll be filling out more text info for now, and working on the Psi Operative Tree.
Oh, and I just learned about '~~~~'. <Phew>. --HubrisBliss (talk) 23:30, 27 January 2017 (UTC)

Glad I could teach by doing. :) (Though regexes and Pywikibot helped a lot in sorting those ability templates.) As for the info pop-up, I've never been able to get title text to respect breaks on a wiki. I think it's still possible, but would require tweaking the CSS used by the wiki to add a new class for these images specifically. --Tvol (talk) 23:59, 27 January 2017 (UTC)
Oh, and I forgot to mention, that this line-break issue is part of the reason I moved the info bits to their own sub-pages. (Or will be moving them.) That way it's easy to transclude those lists elsewhere, in-case there's need of a stop-gap of some sort. --Tvol (talk) 00:12, 28 January 2017 (UTC)
Specifically, where are you moving the info bits? Not the individual perk templates? i.e. Template:Alpha Mike Foxtrot (LW2), after | s_info =. If somewhere else, please point me there. --HubrisBliss (talk) 00:37, 28 January 2017 (UTC)
Ah, okay. Here goes my explanation. I'm moving the lists of extra/extended info to sub-pages of their respective templates. This means that for Template:Alpha Mike Foxtrot (LW2), the info text (and just the info text) would be on the page Template:Alpha Mike Foxtrot (LW2)/Info. Note the /Info part. Then to the template itself should be edited so that it reads User talk:HubrisBliss/Info and saved. When it is saved, the subst: part will convert the FULLPAGENAME magic word into raw text, and the result will be, in this example,
The payoff here is that should anyone want to reference the perk's extra info text somewhere else, they don't need to duplicate it, just use transclusion to refer to it, keeping things DRY (a software engineering principle, "Don't Repeat Yourself", but it applies equally well to wikis). This could be used, for example, to display all the info text underneath the ability icon, or next to it, or in a different cell in a table, etc. It's a just-in-case thing but could save headache later. --Tvol (talk) 01:01, 28 January 2017 (UTC)