User:Tompw/sandbox8a

From Wikipedia, the free encyclopedia

[[{{{1}}}British Columbia{{{2}}}|BC]] • [[{{{1}}}Alberta{{{2}}}|AB]] • [[{{{1}}}Saskatchewan{{{2}}}|SK]] • [[{{{1}}}Manitoba{{{2}}}|MB]] • [[{{{1}}}Ontario{{{2}}}|ON]] • [[{{{1}}}Quebec{{{2}}}|QC]] • [[{{{1}}}New Brunswick{{{2}}}|NB]] • [[{{{1}}}Nova Scotia{{{2}}}|NS]] • [[{{{1}}}Prince Edward Island{{{2}}}|PEI]] • [[{{{1}}}Newfoundland and Labrador{{{2}}}|NL]] • [[{{{1}}}Yukon{{{2}}}|YU]] • [[{{{1}}}Northwest Territories{{{2}}}|NT]] • [[{{{1}}}Nunavut{{{2}}}|NU]]

  • Use {{subst:User:Tompw/sandbox8a|before stuff|after stuff}}
  • For example, {{subst:User:Tompw/sandbox8|List of general elections%20| }} produces [[List of general elections in British Columbia|BC]] etc.
  • "The":
    • Use {{subst:User:Tompw/sandbox8a|Things in|and stuff|yuthe=yes}} for [[Things in the Yukon and stuff|YU]]
    • Use {{subst:User:Tompw/sandbox8a|Things in|and stuff|ntthe=yes}} for [[Things in the Northwest Territories and stuff|NT]]
    • (the provinces and Nunavut will be the same regardless).
    • When subst'ing this still works. However, you end up with a parser template in the middle of the result, which "ntthe" and/or "yuthe" replaced by "yes" if specififed. For example {{subst:User:Tompw/sandbox8a|Things in|and stuff|yuthe=yes}} produces [[Things in {{#ifeq:yes|yes|the_|}}Yukon and stuff|YU]]. You may want to edit this out by hand.