Forum:How to make template with customizable fields?

From Uncyclopedia, the content-free encyclopedia

Jump to: navigation, search
Forums: Index > Help > How to make template with customizable fields?
Note: This topic has been unedited for 3549 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

Having said loudly that I hate haet hat templates I now want to make one...ain't that just the way it goes? Anyway, I want an "travel advertisement" that can be stuck on some of the many "I hate my hometown it's so dull and boring" articles. It needs to have customizable fields: the name of the hometown or region, two notable features, and an image. Here's teh codez so far:

{| style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding: 2px; background: #FFFFC0; margin 1px 1px; width: 400px; height: 100px; line-height:1.25em;" | style="white-space: wrap; text-align: left; font-size=10pt;" | '''Come visit beautiful {{{place_name}}} today.'''<br>Here we have the {{{notable_thing1}}} in the world. And also {{{notable_thing2}}}! So book a tour today, and don't forget your Uncyc VISA. | style="padding-left: 1px" | {{{image_link}}} | |}

The rough draft currently looks like:

Come visit beautiful {{{place_name}}} today.
Here we have the {{{notable_thing1}}} in the world. And also {{{notable_thing2}}}! So book a tour today, and don't forget your Uncyc VISA.
{{{image_link}}}

(It will probably change to become more prettier.)

But at least in my userspace (http://uncyclopedia.org/wiki/User:One-eyed_Jack/TravelTemplate) the customizable fields don't work. How does I makes them work? Please remember that I am a stupid stupid fellow, and this is only my second attempt at a template. ----OEJ 03:37, 2 January 2007 (UTC)


Because you've named your fields, you have to refer to them that way when you declare the template. For example: {{User:One-eyed_Jack/TravelTemplate|place_name=Bulgaria|notable_thing1=tallest dwarfs|notablething2=shortest giants|image_link=[[Image:rainbow.jpg]]}}

If you don't want to have to do this, use numbered values instead ({{{1}}}, {{{2}}}, etc). --Algorithm 05:38, 2 January 2007 (UTC)

Thanks -- I'll work on it a bit when I have some time. ----OEJ 02:28, 4 January 2007 (UTC)
Personal tools
projects
http://uncyclopedia.wikia.com/wiki/Forum:How_to_make_template_with_customizable_fields%3F
uncyclopedia.wikia.com
crawl=CC-MAIN-2016-40
39033
application/http; msgtype=response
sha1:WAU7OMV635LXVB4VJL4AESOQ6VYBBV3O
<urn:uuid:49f4dc9f-d36a-481d-b62c-a055ac834132>
2016-09-27T12:11:52Z
104.156.81.194
sha1:TQIP7OC5TRTQNV4PNRIS7CCFIDH5SL64
<urn:uuid:b8c23be1-763e-4289-bf49-fa3c7aff910c>
http://uncyclopedia.wikia.com/wiki/Forum:How_to_make_template_with_customizable_fields%3F
response
<urn:uuid:15658478-0646-49a1-acb7-5e39517b86e1>
robots: classic
hostname: ip-10-143-35-109.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-40
operator: CommonCrawl Admin
description: Wide crawl of the web for September 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf