Help:Templates with multiple spellings: Difference between revisions

From Viki Poczonkaxles
Jump to navigation Jump to search
Created page with "Templates should be made with subpages for each spelling standard you wish to include. The root page should then have a switch statement which takes an input with either the name itarpcznk or pcznklex, and passes all parameters to a different subpage depending on what the value is ("p" for Pisoweic and "j" for Junaic). An example from Template:Kutigolne_zemla is shown below: <code> <nowiki> {{#switch: {{{pcznklex|}}} | j = {{Kutigolne zemla/junaxles | title1={{{t..."
 
(No difference)

Latest revision as of 14:26, 2 July 2025

Templates should be made with subpages for each spelling standard you wish to include. The root page should then have a switch statement which takes an input with either the name itarpcznk or pcznklex, and passes all parameters to a different subpage depending on what the value is ("p" for Pisoweic and "j" for Junaic).

An example from Template:Kutigolne_zemla is shown below:

{{#switch: {{{pcznklex|}}} | j = {{Kutigolne zemla/junaxles | title1={{{title1}}} | image1={{{image1}}} | caption-image1={{{caption-image1}}} | mysik={{{mysik}}} | sztat={{{sztat}}} | paxles={{{paxles}}} | anolme={{{anolme}}} | karszi={{{karszi}}} | usi_tszas={{{usi_tszas}}} | kot={{{kot}}} | kot_ello={{{kot_ello}}}}} | p = {{Kutigolne zemla/pisowaxles | title1={{{title1}}} | image1={{{image1}}} | caption-image1={{{caption-image1}}} | mysik={{{mysik}}} | sztat={{{sztat}}} | paxles={{{paxles}}} | anolme={{{anolme}}} | karszi={{{karszi}}} | usi_tszas={{{usi_tszas}}} | kot={{{kot}}} | kot_ello={{{kot_ello}}}}} }}