模板:Infobox election/shortname

出自竹園Wiki
於 2024年3月5日 (二) 12:49 由 Lenlai留言 | 貢獻 所做的修訂 (建立內容為「{{#if:{{{name|}}} |{{#ifeq:{{{link}}}|no |{{{name}}} |{{#ifexist:Template:Party meta/shortname/{{{name|}}} |[[{{{name}}}|{{Template:Party meta/shortname/{{{name|}}}}}]] |{{{name}}} }} }} }}<noinclude> {{documentation|content= This is a subtemplate of {{tl|Infobox election}}, it should not be used directly. == Purpose == This subtemplate takes two inputs, <code>name</code> and <code>link</code>. If link is set to <code>no<…」的新頁面)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋
文檔圖示 模板文檔

This is a subtemplate of {{Infobox election}}, it should not be used directly.

Purpose

This subtemplate takes two inputs, name and link. If link is set to no, then it returns the value of name verbatim. Otherwise, if the corresponding 模板:Tld template exists, it returns [[{{{name}}}|shortname]] where shortname is the output of the 模板:Tld template. If this template does not exist, it returns the value of name verbatim.