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