×
Create a new article
Write your page title here:
We currently have 223 articles on Farthest Frontier. Type your article name above or create one of the articles listed here!



    Farthest Frontier
    (Redirected from Template:P2/doc)
    eesti  Deutsch  dansk  čeština  asturianu  català  Boarisch  English  español  sicilianu  中文(简体)  中文(繁體)  Esperanto  Tiếng Việt  Scots  українська  Zazaki  Türkçe  ไทย  slovenščina  polski  മലയാളം  galego  Ελληνικά  日本語  ქართული  македонски  فارسی  Nederlands  မြန်မာဘာသာ  русский  中文  suomi  العربية  norsk bokmål  norsk  Lëtzebuergesch  српски / srpski  Plattdüütsch  български  한국어  svenska  português do Brasil  hrvatski  ဘာသာ မန်  français  magyar  euskara  עברית  Mirandés  italiano  اردو  português  Bahasa Indonesia  বাংলা  Bahasa Melayu  беларуская (тарашкевіца)  edit

    The templates P1 and P2 simply return the first and second unnamed input parameter respectively. For example:

    • {{P1|foo|bar|baz}} returns foo
    • {{P2|foo|bar|baz}} returns bar

    These templates can be used inside other templates as an alternative to the {{#switch}} parser function, to switch between outputs based on whether the input is "1" or "2":

    • {{P{{{1}}}|output if 1|output if 2}}

    Using {{#switch}}, this syntax is equivalent to

    • {{#switch:{{{1}}}|1=output if 1|2=output if 2}}

    except that the parser function strips whitespace between parameters whereas the templates don't.

    See also[edit source]

    • {{P-1}}, returns the last unnamed parameter


    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.