Template:US-State: Difference between revisions

From electowiki
Content added Content deleted
(Linking explicitly to {{{region}}} and adding example)
(Adding categories, and turning example into subst so that I don't clutter categories (after I fix the example))
 
Line 3: Line 3:


== Advocacy ==
== Advocacy ==
:''main article: [[Advocacy/United States/{{{region}}}#{{{name}}}]]''</includeonly><noinclude>
:''main article: [[Advocacy/United States/{{{region}}}#{{{name}}}]]''

[[Category:{{{name}}}|*]]
[[Category:{{{region}}} United States]]
</includeonly><noinclude>
'''Template:US-State''' is a "subst only" template for US states. Go look on Wikipedia to understand what subst only templates are....
'''Template:US-State''' is a "subst only" template for US states. Go look on Wikipedia to understand what subst only templates are....


Line 42: Line 46:
=== Result ===
=== Result ===


<blockquote>{{US-State|name=Idaho|region=Mountain}}</blockquote>
<blockquote>{{wikipedia|Idaho}}
'''Idaho''' is a state in the [[Mountain United States|Mountain region]] of the [[United States]].

== Advocacy ==
:''main article: [[Advocacy/United States/Mountain#Idaho]]''</blockquote>
</noinclude>
</noinclude>

Latest revision as of 17:22, 23 June 2020

Template:US-State is a "subst only" template for US states. Go look on Wikipedia to understand what subst only templates are....

VisualEditor

This template can be added via VisualEditor. Here's what shows up when adding fields:

'''Template:US-State''' is a "subst only" template for US states. Go look on Wikipedia to understand what subst only templates are....

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
State/Territoryname state territory

The name of the state or territory, with the name that is most likely to show up on [[English Wikipedia]]

Unknownrequired
Region/Timezoneregion timezone

The region of the [[United States]] this is in. Typically Eastern, Central, Mountain or Pacific

Unknownrequired

Examples

Example 1

{{US-State|state=Idaho|region=Mountain}}

Result

Wikipedia has an article on:

Idaho is a state in the Mountain region of the United States.

Advocacy

main article: Advocacy/United States/Mountain#Idaho