HTYP:W3TPL/lib/places: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
pagetown -> page.town (see if it breaks anything) |
decided "is in" makes more sense than "location"; not sure what "location" is good for. |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
* function ''' | * function '''pagetown'''(country, state, town) | ||
<func page.town country state town> | <func name="page.town" country state town> | ||
<let name=cs copy=country /> | <let name=cs copy=country /> | ||
<let name=cs append>/</let> | <let name=cs append>/</let> | ||
| Line 16: | Line 16: | ||
<let name=out append>}}</let> | <let name=out append>}}</let> | ||
<let name=out append>{{#set: | <let name=out append>{{#set:is in=</let> | ||
<let name=out append copy=cs /> | <let name=out append copy=cs /> | ||
<let name=out append>}}</let> | <let name=out append>}}</let> | ||
Latest revision as of 14:39, 25 July 2011
- function pagetown(country, state, town)
<func name="page.town" country state town>
<let name=cs copy=country /> <let name=cs append>/</let> <let name=cs copy=state append />
<let name=smw>{{#show:</let>
<let name=smw append copy=cs />
<let name=smw append>|?name}}</let>
<let name=statelong copy=smw />
<let name=out></let>
<let name=out append>{{#set:is in=</let>
<let name=out append copy=cs />
<let name=out append>}}</let>
<let name=out append>[[name::</let> <let name=out append copy=town /> <let name=out append>]]</let> <let name=out append>[[category:</let> <let name=out append copy=cs /> <let name=out append>]]</let>
<let name=out append>
{{#set:page type=directory}} {{#set:thing type=town}}
</let> <get name=out />
</func>
