1[%- linkname = linkname || 'Send Location Information' -%]
2[%- IF agent.is_docomo # DoCoMo -%]
3[%- USE u = URL( back_url, query_params ) -%]
4[%- IF agent.gps_compliant # GPS -%]<a href="[% u %]" lcs>[% linkname %]</a>[%- ELSE # location -%]<a href="http://w1m.docomo.ne.jp/cp/iarea?ecode=OPENAREACODE&msn=OPENAREAKEY&posinfo=1&nl=[% u %]">[% linkname %]</a>[% END -%]
5[%- ELSIF agent.is_ezweb # EZweb -%]
6[%- new_url = '/path/to/program/param1/' _ query_params.param1 _ '/param2/' _ query_params.param2;
7    back_url = back_url.replace( '/search/location', new_url );
8    USE u = URL( back_url ) -%]
9[%- IF agent.gps_compliant # GPS -%]<a href="device:gpsone?url=[% u %]&ver=1&datum=0&unit=0&acry=0&number=0">[% linkname %]</a>[%- ELSE # location -%]<a href="device:location?url=[% u %]">[% linkname %]</a>[%- END -%]
10[%- ELSIF agent.is_softbank # SoftBank -%]
11[%- IF agent.gps_compliant # GPS -%]
12[%- new_url = '/path/to/program/param1/' _ query_params.param1 _ '/param2/' _ query_params.param2;
13    back_url = back_url.replace( '/search/location', new_url );
14    USE u = URL( back_url ) -%]
15<a href="location:auto?url=[% u %]">[% linkname %]</a>
16[%- ELSE # location -%]
17[%- USE u = URL( back_url, query_params ) -%]
18<a href="[% u %]" z>[% linkname %]</a>
19[%- END -%]
20[%- ELSIF agent.is_airh_phone # Willcom -%]
21[%- USE u = URL( back_url, query_params ) -%]
22[%- new_url = '/path/to/program/param1/' _ query_params.param1 _ '/param2/' _ query_params.param2;
23    back_url = back_url.replace( '/search/location', new_url );
24    USE u = URL( back_url ) -%]
25<a href="http://location.request/dummy.cgi?my=[% u %]&pos=$location">[% linkname %]</a>
26[%- END -%]
27