Difference between revisions of "Template:Address"
Jump to navigation
Jump to search
(→Code) |
(→Code) |
||
Line 57: | Line 57: | ||
Edit this section to modify production code. | Edit this section to modify production code. | ||
− | </noinclude><includeonly>{{#if: {{{city|}}}| {{#if:{{{address|}}}|, [[{{{city}}}|[[{{{city}}}}}{{#if: {{{state|}}}|1|0}}|0}}{{#if: {{{state|}}}|1|0}}{{#if: {{{zip|}}}|1|0}}</includeonly> | + | </noinclude><includeonly>{{#if: {{{city|}}}|{{#if:{{{address|}}}|, [[{{{city}}}|[[{{{city}}}}}{{#if: {{{state|}}}|1|0}}|0}}{{#if: {{{state|}}}|1|0}}{{#if: {{{zip|}}}|1|0}}</includeonly> |
Revision as of 15:59, 10 August 2016
Use like:
{{Address | address=304 N. Market St. | city=Wooster | state=Ohio | zip=44691 }}
And you get:
{{#if: Wooster|{{#if:304 N. Market St.|, [[Wooster|[[Wooster}}1|0}}11
Development codeblock
{{#if: {{{address|}}} | [[{{{address}}} {{#if: {{{unit|}}} |, {{{unit}}} }} {{#if: {{{city|}}} |, {{{city}}} }} {{#if: {{{state|}}} |, {{{state}}} }} {{!}}{{{address}}} {{#if: {{{unit|}}} |, {{{unit}}} }} ]] }} {{#if: {{{city|}}} | {{#if: {{{address|}}} |, }} [[{{{city}}} {{#if: {{{state|}}} | , | ]] }} | {{#if: {{{state|}}} | [[ }} }} {{#if: {{{state|}}} | {{{state}}}]] }} {{{zip|}}}
Code
Edit this section to modify production code.