Difference between revisions of "Template:Address"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
| zip=44691 | | zip=44691 | ||
}} | }} | ||
+ | |||
+ | ==Development codeblock== | ||
+ | <pre> | ||
+ | {{#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|}}} | ||
+ | </pre> | ||
+ | |||
</noinclude><includeonly> | </noinclude><includeonly> |
Revision as of 13:52, 10 August 2016
Use like:
{{Address | address=304 N. Market St. | city=Wooster | state=Ohio | zip=44691 }}
And you get:
[[304 N. Market St.
, Wooster , Ohio |304 N. Market St. ]]
{{#if: Wooster
| , [[Wooster , | {{#if: Ohio | [[ }}
}} 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}}} {{#if: {{{state|}}} | , | ]] }} | {{#if: {{{state|}}} | [[ }} }} {{#if: {{{state|}}} | {{{state}}}]] }} {{{zip|}}}