User:Derik/Sandbox4: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
No edit summary
Derik (talk | contribs)
No edit summary
Line 1: Line 1:
==GoTo Template==
Abstract:
Abstract:


Line 15: Line 16:
* Decepticons (cast pages)
* Decepticons (cast pages)


''Can'' a meta-template help this work?  Or is messy handwritten SWITCH calls our only option?  What about subst: for setup?<div id="wikia-credits"><br /><br /><small>From [http://transformers.wikia.com Teletraan I: The Transformers Wiki], a [http://www.wikia.com Wikia] wiki.</small></div>
''Can'' a meta-template help this work?  Or is messy handwritten SWITCH calls our only option?  What about subst: for setup?
:What if is ''translated'' the piped request-term into a standardized term?  i.e. "cartoon" -> 'animatedseries'?
:OOH- and you could send it like---
<pre>{{translator
|{{{1}}} <-- The Requested Variable
|Anime=pagename/title?
|comic =
|manga=
...
}}</pre>
 
...so each page actually ''sends'' the Translator-template the whole kit-and-kaboodle of their possible 'dests' alogn with what was requested of them this time.  Then the Translator template says "well, this one here matches the term in question best."
{{note|Look into parsing on commas as terms for ease of setup}}
<pre>|Anime_name=Name
|Anime_page=Page
|Anime_possible=cartoon,tv,anime</pre><div id="wikia-credits"><br /><br /><small>From [http://transformers.wikia.com Teletraan I: The Transformers Wiki], a [http://www.wikia.com Wikia] wiki.</small></div>

Revision as of 14:38, 7 March 2008

GoTo Template

Abstract:

Mega-template to sit in Franchise/goto space.

{{Headmasters/goto|comic}}

suffixes include:

  • comic
  • cartoon
  • Anime (Syn)
  • Franchise
  • Toyline
  • Tech (about non-franchise Headmasters stuff)
  • Autobots
  • Decepticons (cast pages)

Can a meta-template help this work? Or is messy handwritten SWITCH calls our only option? What about subst: for setup?

What if is translated the piped request-term into a standardized term? i.e. "cartoon" -> 'animatedseries'?
OOH- and you could send it like---
{{translator
|{{{1}}} <-- The Requested Variable
|Anime=pagename/title?
|comic =
|manga=
...
}}

...so each page actually sends the Translator-template the whole kit-and-kaboodle of their possible 'dests' alogn with what was requested of them this time. Then the Translator template says "well, this one here matches the term in question best."

Look into parsing on commas as terms for ease of setup
|Anime_name=Name
|Anime_page=Page
|Anime_possible=cartoon,tv,anime