Difference between revisions of "Template talk:E"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
(→‎icons: We started it here... I may flip the comic icon.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== New method ==
First of all:  I have commented the previous stuff out, because it would keep the server a-crashing, so let's try and avoid that.  Eh?
Anyway, I was browsing the [[startrek:|Star Trek wiki, Memory Alpha]], and noticed they also had an '''e''' template.  So I thought to myself; ah, maybe it is because of their superior firepower of a server that it runs so much better.
Oh, you should have seen how wrong I was!  It is fairly simple.  It just uses a simple check if exists, and then show a template with this content.
Let me show you how it work in our case:
<pre>{{elink|{{#ifexist:Template:E/codes/{{{1}}}|{{e/codes/{{{1}}}}}|???<sup>{{e/codes/{{{1}}}}}}}</sup>}}|{{#ifexist:Template:E/titles/{{{1}}}|{{e/titles/{{{1}}}}}|???<sup>{{e/titles/{{{1}}}}}</sup>}}}}</pre>
An example of say the input 1 ("[[Space Pilot 3000]]"):
<pre>{{elink|{{e/codes/1}}|{{e/titles/1}}}}</pre>
In case a link was provided to something that did not exist (either because it hadn't been created or it really do not), its output would look like this (in this example: 1ACV00):
{{elink|???<sup>{{e/codes/1ACV00}}</sup>|???<sup>{{e/titles/1ACV00}}</sup>}}
The "link" will appear to indicate that it ought to be created.  At Memory Alpha, though, they only allowed titles as input.  The purpose here is largely to avoid any computation, and just go with easy checks.  This will mean a lot of small templates, but so be it.  In addition, it can also allow for common spelling mistakes of episode titles, etc. --'''[[User:Svip|Svip]]'''<sup>[[User talk:Svip|Talk]]</sup> 20:35, 18 March 2009 (UTC)
<!--
== icons ==
== icons ==


Line 14: Line 36:
----
----
:I was thinking more like this:
:I was thinking more like this:
*{{e|1}} [[Image:Videoicon.png]]
*{{e|1}}
*{{c|1}} [[Image:Comicicon.png]]
*{{c|1}}
*[[Futurama (video game)|The game]] [[Image:Gameicon.png]]
*[[Futurama (video game)|The game]] [[Image:Gameicon.png]]
--'''[[User:Svip|Svip]]'''<sup>[[User talk:Svip|Talk]]</sup> 08:15, 17 January 2008 (PST)
--'''[[User:Svip|Svip]]'''<sup>[[User talk:Svip|Talk]]</sup> 08:15, 17 January 2008 (PST)
Line 21: Line 43:
I have no idea what this conversation is about! But I like the red ones. They're simple and plain and easy to understand. Maybe some shading or anti-aliasing would be good. But I like the direction the red ones are going. But the comic one seems upside-down. --[[User:Buddy13|Buddy]] 12:06, 17 January 2008 (PST)
I have no idea what this conversation is about! But I like the red ones. They're simple and plain and easy to understand. Maybe some shading or anti-aliasing would be good. But I like the direction the red ones are going. But the comic one seems upside-down. --[[User:Buddy13|Buddy]] 12:06, 17 January 2008 (PST)
:I mentioned the need for icons here: [[Template talk:Comic infobox]]. --'''[[User:Svip|Svip]]'''<sup>[[User talk:Svip|Talk]]</sup> 12:16, 17 January 2008 (PST)
:I mentioned the need for icons here: [[Template talk:Comic infobox]]. --'''[[User:Svip|Svip]]'''<sup>[[User talk:Svip|Talk]]</sup> 12:16, 17 January 2008 (PST)
::Haroo. They're good. - [[User:Quolnok|Quolnok]] 20:41, 17 January 2008 (PST)-->

Latest revision as of 21:35, 18 March 2009

New method

First of all: I have commented the previous stuff out, because it would keep the server a-crashing, so let's try and avoid that. Eh?

Anyway, I was browsing the Star Trek wiki, Memory Alpha, and noticed they also had an e template. So I thought to myself; ah, maybe it is because of their superior firepower of a server that it runs so much better.

Oh, you should have seen how wrong I was! It is fairly simple. It just uses a simple check if exists, and then show a template with this content.

Let me show you how it work in our case:

{{elink|{{#ifexist:Template:E/codes/{{{1}}}|{{e/codes/{{{1}}}}}|???<sup>{{e/codes/{{{1}}}}}}}</sup>}}|{{#ifexist:Template:E/titles/{{{1}}}|{{e/titles/{{{1}}}}}|???<sup>{{e/titles/{{{1}}}}}</sup>}}}}

An example of say the input 1 ("Space Pilot 3000"):

{{elink|{{e/codes/1}}|{{e/titles/1}}}}

In case a link was provided to something that did not exist (either because it hadn't been created or it really do not), its output would look like this (in this example: 1ACV00):

[[:???Template:E/titles/1ACV00|"???Template:E/titles/1ACV00" (???Template:E/codes/1ACV00)]]

Episode

The "link" will appear to indicate that it ought to be created. At Memory Alpha, though, they only allowed titles as input. The purpose here is largely to avoid any computation, and just go with easy checks. This will mean a lot of small templates, but so be it. In addition, it can also allow for common spelling mistakes of episode titles, etc. --SvipTalk 20:35, 18 March 2009 (UTC)